X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=Source%2FWebCore%2Finspector%2FInjectedScript.h;h=adcb208e7db905877b05a2440dbd3d5e8c71d7b9;hb=2daae5fd11344eaa88a0d92b0f6d65f8d2255c00;hp=e165e9cc880c688f916df1b768581d3ab611fab6;hpb=87bdf0060a247bfbe668342b87e0874182e0ffa9;p=android-x86%2Fexternal-webkit.git diff --git a/Source/WebCore/inspector/InjectedScript.h b/Source/WebCore/inspector/InjectedScript.h index e165e9cc8..adcb208e7 100644 --- a/Source/WebCore/inspector/InjectedScript.h +++ b/Source/WebCore/inspector/InjectedScript.h @@ -50,7 +50,7 @@ typedef String ErrorString; class InjectedScript { public: - InjectedScript() { } + InjectedScript(); ~InjectedScript() { } bool hasNoValue() const { return m_injectedScriptObject.hasNoValue(); } @@ -58,7 +58,7 @@ public: void evaluate(ErrorString*, const String& expression, const String& objectGroup, bool includeCommandLineAPI, RefPtr* result); void evaluateOn(ErrorString*, const String& objectId, const String& expression, RefPtr* result); void evaluateOnCallFrame(ErrorString*, const String& callFrameId, const String& expression, const String& objectGroup, bool includeCommandLineAPI, RefPtr* result); - void getProperties(ErrorString*, const String& objectId, bool ignoreHasOwnProperty, bool abbreviate, RefPtr* result); + void getProperties(ErrorString*, const String& objectId, bool ignoreHasOwnProperty, RefPtr* result); Node* nodeForObjectId(const String& objectId); void setPropertyValue(ErrorString*, const String& objectId, const String& propertyName, const String& expression); void releaseObject(const String& objectId); @@ -75,7 +75,8 @@ public: private: friend InjectedScript InjectedScriptManager::injectedScriptFor(ScriptState*); - explicit InjectedScript(ScriptObject); + typedef bool (*InspectedStateAccessCheck)(ScriptState*); + InjectedScript(ScriptObject, InspectedStateAccessCheck); bool canAccessInspectedWindow(); void makeCall(ScriptFunctionCall&, RefPtr* result); @@ -83,6 +84,7 @@ private: ScriptValue nodeAsScriptValue(Node*); ScriptObject m_injectedScriptObject; + InspectedStateAccessCheck m_inspectedStateAccessCheck; }; } // namespace WebCore