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

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

Issue 2109843003: Adds enableVirtualTime and setVirtualTimePolicy To Emulation domain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove frame iteration 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 59bc25ba009fa8c6b36ee7bd47675586dc6adabd..6d11c0f536aa065ccb7234dcabb38459acb8d684 100644
--- a/third_party/WebKit/public/platform/WebFrameScheduler.h
+++ b/third_party/WebKit/public/platform/WebFrameScheduler.h
@@ -13,6 +13,7 @@ namespace blink {
class WebSecurityOrigin;
class WebTaskRunner;
+class WebViewScheduler;
class BLINK_PLATFORM_EXPORT WebFrameScheduler {
public:
@@ -40,6 +41,17 @@ public:
// JavaScript is discouraged. WebFrameScheduler owns the returned
// WebTaskRunner.
virtual WebTaskRunner* unthrottledTaskRunner() { return nullptr; }
+
+ // Returns the parent WebViewScheduler.
+ virtual WebViewScheduler* webViewScheduler() { return nullptr; }
+
+ // Tells the scheduler a resource load has started. The scheduler may make
+ // policy decisions based on this.
+ virtual void incrementPendingResourceLoadCount() { }
+
+ // Tells the scheduler a resource load has started. The scheduler may make
+ // policy decisions based on this.
+ virtual void decrementPendingResourceLoadCount() { }
};
} // 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