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

Unified Diff: third_party/WebKit/public/platform/WebFrameScheduler.h

Issue 2192493002: Let blink scheduler know when background parsing a document (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/platform/WebFrameScheduler.h
diff --git a/third_party/WebKit/public/platform/WebFrameScheduler.h b/third_party/WebKit/public/platform/WebFrameScheduler.h
index 558cecd3323138ee05d38a8c98b6dc47ed62c054..9abc5d27e0965088849a57b99d60daaea942f7db 100644
--- a/third_party/WebKit/public/platform/WebFrameScheduler.h
+++ b/third_party/WebKit/public/platform/WebFrameScheduler.h
@@ -52,6 +52,11 @@ public:
// Tells the scheduler a resource load has stopped. The scheduler may make
// policy decisions based on this.
virtual void didStopLoading(unsigned long identifier) { }
+
+ // Tells the scheduler if we are parsing a document on another thread. This
+ // tells the scheduler not to advance virtual time if it's using the
+ // PAUSE_IF_NETWORK_FETCHES_PENDING policy.
+ virtual void setDocumentParsedInBackground(bool) { }
Mike West 2016/07/29 13:49:08 Nit: "parsed" reads to me as "a document has finis
alex clarke (OOO till 29th) 2016/07/29 14:07:27 Good point. Done.
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698