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

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

Issue 2754673002: [scheduler] Split suspendable tq from unthrottled tq. (Closed)
Patch Set: For the moment make only database access tasks suspendable Created 3 years, 8 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 977d16b07fcf8cc20892c8c0429654784c948cb3..812954ab5784a6d87007177d4d270daf8cdc54ab 100644
--- a/third_party/WebKit/Source/core/loader/EmptyClients.cpp
+++ b/third_party/WebKit/Source/core/loader/EmptyClients.cpp
@@ -75,6 +75,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() {
@@ -89,6 +90,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();
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp ('k') | third_party/WebKit/Source/platform/WebFrameScheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698