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

Unified Diff: content/public/renderer/render_view_observer.h

Issue 684143002: Invalidate the previous frame when the window object is cleared. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use RenderViewObserver::WillReleaseScriptContext Created 6 years, 1 month 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
Index: content/public/renderer/render_view_observer.h
diff --git a/content/public/renderer/render_view_observer.h b/content/public/renderer/render_view_observer.h
index 4c7aba0529f4b275e4dcbb1e4e755fd690407832..6e31a3bb7779f549941acd0d802667511308e7a4 100644
--- a/content/public/renderer/render_view_observer.h
+++ b/content/public/renderer/render_view_observer.h
@@ -11,6 +11,7 @@
#include "ipc/ipc_listener.h"
#include "ipc/ipc_sender.h"
#include "third_party/WebKit/public/platform/WebVector.h"
+#include "v8/include/v8.h"
class GURL;
@@ -77,6 +78,9 @@ class CONTENT_EXPORT RenderViewObserver : public IPC::Listener,
const blink::WebFormElement& form) {}
virtual void DidCreateDataSource(blink::WebLocalFrame* frame,
blink::WebDataSource* ds) {}
+ virtual void WillReleaseScriptContext(blink::WebLocalFrame* frame,
+ v8::Handle<v8::Context> context,
+ int world_id) {}
virtual void PrintPage(blink::WebLocalFrame* frame, bool user_initiated) {}
virtual void FocusedNodeChanged(const blink::WebNode& node) {}
virtual void DidChangeScrollOffset(blink::WebLocalFrame* frame) {}

Powered by Google App Engine
This is Rietveld 408576698