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

Unified Diff: webkit/glue/webview_delegate.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/webframeloaderclient_impl.cc ('k') | webkit/port/bindings/v8/v8_proxy.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webview_delegate.h
diff --git a/webkit/glue/webview_delegate.h b/webkit/glue/webview_delegate.h
index bd081c4f220a544c24987bf4789ed6f20981c9a5..94fd4f53662641ac8d9a01d8bbd53f0805cb4ee0 100644
--- a/webkit/glue/webview_delegate.h
+++ b/webkit/glue/webview_delegate.h
@@ -210,6 +210,16 @@ class WebViewDelegate : virtual public WebWidgetDelegate {
virtual void DocumentElementAvailable(WebFrame* webframe) {
}
+ // Notifies that a new script context has been created for this frame.
+ // This is similar to WindowObjectCleared but only called once per frame
+ // context.
+ virtual void DidCreateScriptContext(WebFrame* webframe) {
+ }
+
+ // Notifies that this frame's script context has been destroyed.
+ virtual void DidDestroyScriptContext(WebFrame* webframe) {
+ }
+
// PolicyDelegate ----------------------------------------------------------
// This method is called to notify the delegate, and let it modify a
« no previous file with comments | « webkit/glue/webframeloaderclient_impl.cc ('k') | webkit/port/bindings/v8/v8_proxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698