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

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

Issue 2633253002: Split content script injections into multiple tasks (Closed)
Patch Set: Inject document_idle scripts before window.onload Created 3 years, 10 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
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 f221082d038c4a336f4d03646495ab20b4b05cdb..94effb8c75437846cf0f992e02747536f1e1406e 100644
--- a/third_party/WebKit/public/web/WebFrameClient.h
+++ b/third_party/WebKit/public/web/WebFrameClient.h
@@ -395,6 +395,10 @@ class BLINK_EXPORT WebFrameClient {
virtual void runScriptsAtDocumentReady(WebLocalFrame*, bool documentIsEmpty) {
}
+ // The frame's window.onload event is about to fire. This method may delay
+ // window.onload by incrementing LoadEventDelayCount.
+ virtual void runScriptsAtDocumentIdle(WebLocalFrame*) {}
+
// The 'load' event was dispatched.
virtual void didHandleOnloadEvents(WebLocalFrame*) {}

Powered by Google App Engine
This is Rietveld 408576698