diff options
Diffstat (limited to 'WebCore/bindings/v8/ScriptController.h')
-rw-r--r-- | WebCore/bindings/v8/ScriptController.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/WebCore/bindings/v8/ScriptController.h b/WebCore/bindings/v8/ScriptController.h index 17703b5..47acf35 100644 --- a/WebCore/bindings/v8/ScriptController.h +++ b/WebCore/bindings/v8/ScriptController.h @@ -49,6 +49,7 @@ namespace WebCore { class ScriptState; class String; class Widget; + class XSSAuditor; class ScriptController { public: @@ -64,11 +65,17 @@ namespace WebCore { // as a string. ScriptValue evaluate(const ScriptSourceCode&); + // Executes JavaScript in a new world associated with the web frame. 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. + void evaluateInNewWorld(const Vector<ScriptSourceCode>&, int extensionGroup); + // Executes JavaScript in a new context associated with the web frame. The // script gets its own global scope and its own prototypes for intrinsic // JavaScript objects (String, Array, and so-on). It shares the wrappers for // all DOM nodes and DOM constructors. - void evaluateInNewContext(const Vector<ScriptSourceCode>&); + void evaluateInNewContext(const Vector<ScriptSourceCode>&, int extensionGroup); // JSC has a WindowShell object, but for V8, the ScriptController // is the WindowShell. @@ -81,6 +88,8 @@ namespace WebCore { ScriptState* state() const { return m_scriptState.get(); } + XSSAuditor* xssAuditor() { return m_XSSAuditor.get(); } + void collectGarbage(); // Creates a property of the global object of a frame. @@ -160,6 +169,8 @@ namespace WebCore { #if ENABLE(NETSCAPE_PLUGIN_API) NPObject* m_windowScriptNPObject; #endif + // The XSSAuditor associated with this ScriptController. + OwnPtr<XSSAuditor> m_XSSAuditor; }; } // namespace WebCore |