Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(695)

Unified Diff: webkit/glue/webframe.h

Issue 147124: Add notifications for when V8Proxy creates or destroys a V8 Context. (Closed)
Patch Set: roll deps Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | webkit/glue/webframe_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webframe.h
diff --git a/webkit/glue/webframe.h b/webkit/glue/webframe.h
index 1a6ae347cc71b7c4894ff58de431b438f58f63ab..90ba5a3a41e241b1bd968fb2fa6508262e549482 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 WebAppCacheContext;
@@ -31,6 +32,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 {
@@ -70,6 +78,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;
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | webkit/glue/webframe_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698