[ScriptStreamer] Better histogram tracking of reason scripts aren't streamed

Currently the NotStreamingReason histogram is only recorded if we try to
start streaming a script, and is not updated for various situations where
we cancel streaming a script (e.g., we have a code-cache for the script).

This CL updates the tracking such that we record the reason script streaming
wasn't started, or was suppressed, and then record this in the histogram
when calling GetSource() on the ClassicPendingScript.

As part of this change, the logic for recording these histograms is moved
from ScriptStreamer to ClassicPendingScript. The ScriptStreamer::Type enum is
also moved to PendingScript and renamed ExecutionType, since it is no longer
used by the ScriptStreamer class.

BUG=865098

Change-Id: I20979352c6976e489d051a8432bbc51c39f428b0
Reviewed-on: https://chromium-review.googlesource.com/1142158
Commit-Queue: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: Steven Holte <holte@chromium.org>
Reviewed-by: Daniel Vogelheim <vogelheim@chromium.org>
Reviewed-by: Kouhei Ueno <kouhei@chromium.org>
Reviewed-by: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/master@{#577744}
13 files changed