Move {Did,Will}Evaluate*Script() call out of Script::RunScriptOnWorker()
This CL moves WorkerReportingProxy::{Will,Did}Evaluate{Classic,Module}Script() calls from Script::RunScriptOnWorker() to its call site in WorkerGlobalScope, to ensure they are only called for worker top-level scripts. While currently Script::RunScriptOnWorker() is only called for worker top-level scripts, RunScriptOnWorker() will be called for other scripts in subsequent CLs for crbug/1111134. This CL also merges DidEvaluate{Classic,Module}Script() into DidEvaluateTopLevelScript(). This CL doesn't change the behavior, except for the trace in ServiceWorkerGlobalScopeProxy. The trace is renamed and now added in module script cases. Bug: 1111134 Change-Id: I5a05d56577f7f87bd62aff71ee63e57f1957255b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2327354 Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org> Reviewed-by:Kinuko Yasuda <kinuko@chromium.org> Reviewed-by:
Hiroki Nakagawa <nhiroki@chromium.org> Reviewed-by:
Dominic Farolino <dom@chromium.org> Reviewed-by:
Kenichi Ishibashi <bashi@chromium.org> Cr-Commit-Position: refs/heads/master@{#794519}
Showing
Please register or sign in to comment