Index: public/web/WebFrame.h |
diff --git a/public/web/WebFrame.h b/public/web/WebFrame.h |
index c99fabbe7fb58ce236a96784720648e20cde3a24..6322079a58b617c91dd89ca5f0f638c92e1cd359 100644 |
--- a/public/web/WebFrame.h |
+++ b/public/web/WebFrame.h |
@@ -347,6 +347,12 @@ public: |
// be calling this API. |
virtual v8::Local<v8::Context> mainWorldScriptContext() const = 0; |
+ |
+ // Returns true if the WebFrame currently executing JavaScript has access |
+ // to the given WebFrame, or false otherwise. |
+ BLINK_EXPORT static bool scriptCanAccess(WebFrame*); |
+ |
+ |
// Navigation ---------------------------------------------------------- |
// Reload the current document. |