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

Unified Diff: third_party/WebKit/Source/core/loader/EmptyClients.cpp

Issue 2754673002: [scheduler] Split suspendable tq from unthrottled tq. (Closed)
Patch Set: Created 3 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
Index: third_party/WebKit/Source/core/loader/EmptyClients.cpp
diff --git a/third_party/WebKit/Source/core/loader/EmptyClients.cpp b/third_party/WebKit/Source/core/loader/EmptyClients.cpp
index 0a7bb3fc802df4bde36fc93b9cdda3d59510a34f..fb85a1932fa052ffb2ba5a0492ed51daff8f4964 100644
--- a/third_party/WebKit/Source/core/loader/EmptyClients.cpp
+++ b/third_party/WebKit/Source/core/loader/EmptyClients.cpp
@@ -76,6 +76,7 @@ class EmptyFrameScheduler : public WebFrameScheduler {
RefPtr<WebTaskRunner> loadingTaskRunner() override;
RefPtr<WebTaskRunner> timerTaskRunner() override;
RefPtr<WebTaskRunner> unthrottledTaskRunner() override;
+ RefPtr<WebTaskRunner> suspendableTaskRunner() override;
};
RefPtr<WebTaskRunner> EmptyFrameScheduler::loadingTaskRunner() {
@@ -90,6 +91,10 @@ RefPtr<WebTaskRunner> EmptyFrameScheduler::unthrottledTaskRunner() {
return Platform::current()->mainThread()->getWebTaskRunner();
}
+RefPtr<WebTaskRunner> EmptyFrameScheduler::suspendableTaskRunner() {
+ return Platform::current()->mainThread()->getWebTaskRunner();
+}
+
PopupMenu* EmptyChromeClient::openPopupMenu(LocalFrame&, HTMLSelectElement&) {
return new EmptyPopupMenu();
}

Powered by Google App Engine
This is Rietveld 408576698