Extensions: suspend extension's scripts when V8 is paused
This CL replaced sync script execution API with async.
Async API suspends extension's scripts when V8 is paused at breakpoint or when nested event loop is running for modal dialogs otherwise scripts are executed synchronously.
API provides guarantees of execution order (first in - first execute, per frame).
BUG=410289
[email protected]
Review URL: https://codereview.chromium.org/878513005
Cr-Commit-Position: refs/heads/master@{#319425}
diff --git a/extensions/renderer/scripts_run_info.h b/extensions/renderer/scripts_run_info.h
index e577cc32..957671fb 100644
--- a/extensions/renderer/scripts_run_info.h
+++ b/extensions/renderer/scripts_run_info.h
@@ -32,6 +32,8 @@
size_t num_css;
// The number of JS scripts injected.
size_t num_js;
+ // The number of blocked JS scripts injected.
+ size_t num_blocking_js;
// A map of extension ids to executing script paths.
ExecutingScriptsMap executing_scripts;
// The elapsed time since the ScriptsRunInfo was constructed.