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

Unified Diff: content/public/browser/content_browser_client.h

Issue 2464233002: Experiment with redirecting all BrowserThreads (but UI/IO) to TaskScheduler (Closed)
Patch Set: Rely on Thread::using_external_message_loop_ instead of hard-coding BrowserThread::UI Created 4 years, 1 month 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: content/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index 3f7c9ead94d7a15e11e07d1016c3ff86e1d23605..7d6c3ccd5831c3a8d69eedc74b8a9c2b9c257099 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -769,6 +769,10 @@ class CONTENT_EXPORT ContentBrowserClient {
// Returns an instance of MemoryCoordinatorDelegate.
virtual std::unique_ptr<MemoryCoordinatorDelegate>
GetMemoryCoordinatorDelegate();
+
+ // If this returns true, all BrowserThreads (but UI/IO) that support it on
+ // this platform will experimentally be redirected to TaskScheduler.
+ virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler();
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698