Index: third_party/WebKit/Source/bindings/core/v8/ScriptController.h |
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptController.h b/third_party/WebKit/Source/bindings/core/v8/ScriptController.h |
index cd40a2315964bbd8b642d962b7d355c6de998ee4..f4c26a03b37d7cc57251074f4d411a1ee1b09695 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptController.h |
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptController.h |
@@ -47,6 +47,7 @@ |
namespace blink { |
+class CompiledScript; |
class DOMWrapperWorld; |
class Element; |
class KURL; |
@@ -91,6 +92,12 @@ class CORE_EXPORT ScriptController final |
const ScriptSourceCode&, |
AccessControlStatus = NotSharableCrossOrigin); |
+ // The same, but separated into two phases. |
+ // compileScriptInMainWorld may return nullptr. |
+ CompiledScript* compileScriptInMainWorld(const ScriptSourceCode&, |
+ AccessControlStatus); |
+ void executeScriptInMainWorld(const CompiledScript&); |
+ |
// Executes JavaScript in an isolated world. The script gets its own global |
// scope, its own prototypes for intrinsic JavaScript objects (String, Array, |
// and so-on), and its own wrappers for all DOM nodes and DOM constructors. |