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

Unified Diff: third_party/WebKit/public/web/WebFrameClient.h

Issue 1642283002: Deal with frame removal by content scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Last nits Created 4 years, 9 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 | « third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebFrameClient.h
diff --git a/third_party/WebKit/public/web/WebFrameClient.h b/third_party/WebKit/public/web/WebFrameClient.h
index 4741cd84d86d1c23dae5217c870f54114f3b428e..09ca836845f7489e6314d4cf762dd12355920dd3 100644
--- a/third_party/WebKit/public/web/WebFrameClient.h
+++ b/third_party/WebKit/public/web/WebFrameClient.h
@@ -298,8 +298,13 @@ public:
virtual void didClearWindowObject(WebLocalFrame* frame) { }
// The document element has been created.
+ // This method may not invalidate the frame, nor execute JavaScript code.
virtual void didCreateDocumentElement(WebLocalFrame*) { }
+ // Like |didCreateDocumentElement|, except this method may run JavaScript
+ // code (and possibly invalidate the frame).
+ virtual void runScriptsAtDocumentElementAvailable(WebLocalFrame*) { }
+
// The page title is available.
virtual void didReceiveTitle(WebLocalFrame* frame, const WebString& title, WebTextDirection direction) { }
@@ -307,8 +312,13 @@ public:
virtual void didChangeIcon(WebLocalFrame*, WebIconURL::Type) { }
// The frame's document finished loading.
+ // This method may not execute JavaScript code.
virtual void didFinishDocumentLoad(WebLocalFrame*, bool documentIsEmpty) { }
+ // Like |didFinishDocumentLoad|, except this method may run JavaScript
+ // code (and possibly invalidate the frame).
+ virtual void runScriptsAtDocumentReady(WebLocalFrame*) { }
+
// The 'load' event was dispatched.
virtual void didHandleOnloadEvents(WebLocalFrame*) { }
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698