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

Unified Diff: webkit/glue/webframe_impl.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 | « webkit/glue/webframe.h ('k') | webkit/glue/webframe_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webframe_impl.h
diff --git a/webkit/glue/webframe_impl.h b/webkit/glue/webframe_impl.h
index f91c06c7703f6b5e7af8ff4bd38963893e11729d..dfa226a749cce8dd3a2a558ccdb1822d98e5999f 100644
--- a/webkit/glue/webframe_impl.h
+++ b/webkit/glue/webframe_impl.h
@@ -121,6 +121,12 @@ class WebFrameImpl : public WebFrame, public base::RefCounted<WebFrameImpl> {
virtual NPObject* GetWindowNPObject();
+#if USE(V8)
+ // Returns the V8 context for this frame, or an empty handle if there is
+ // none.
+ virtual v8::Local<v8::Context> GetScriptContext();
+#endif
+
virtual void GetContentAsPlainText(int max_chars, std::wstring* text) const;
virtual bool Find(
int request_id,
« no previous file with comments | « webkit/glue/webframe.h ('k') | webkit/glue/webframe_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698