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

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: Fix some test failures 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..2509f0700422663758adf393c82ac0e40cf501bd 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
+ // DETERMINISTIC_LOADING policy.
+ virtual void setDocumentParsingInBackground(bool) {}
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/web/tests/VirtualTimeTest.cpp ('k') | third_party/WebKit/public/platform/WebViewScheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698