summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webframe.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/webframe.h')
-rw-r--r--webkit/glue/webframe.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/webkit/glue/webframe.h b/webkit/glue/webframe.h
index 2a7f524..1f5974c 100644
--- a/webkit/glue/webframe.h
+++ b/webkit/glue/webframe.h
@@ -11,6 +11,7 @@
#include "base/string16.h"
#include "skia/ext/bitmap_platform_device.h"
#include "skia/ext/platform_canvas.h"
+#include "webkit/api/public/WebCommon.h"
class GURL;
class WebView;
@@ -30,6 +31,13 @@ struct WebSize;
struct WebURLError;
}
+#if WEBKIT_USING_V8
+namespace v8 {
+ template <class T> class Local;
+ class Context;
+}
+#endif
+
// Every frame in a web page is represented by one WebFrame, including the
// outermost frame.
class WebFrame {
@@ -69,6 +77,12 @@ class WebFrame {
virtual NPObject* GetWindowNPObject() = 0;
+#if WEBKIT_USING_V8
+ // Returns the V8 context for this frame, or an empty handle if there is
+ // none.
+ virtual v8::Local<v8::Context> GetScriptContext() = 0;
+#endif
+
// Loads the given WebURLRequest.
virtual void LoadRequest(const WebKit::WebURLRequest& request) = 0;