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

Unified Diff: content/browser/browser_main_loop.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/browser/browser_main_loop.h
diff --git a/content/browser/browser_main_loop.h b/content/browser/browser_main_loop.h
index 1464de7ced9cb6ae38c160ead17e1a935d9a6474..fdde0f4f141592f9abd7947f6b5efa3dd2a08719 100644
--- a/content/browser/browser_main_loop.h
+++ b/content/browser/browser_main_loop.h
@@ -26,10 +26,11 @@ namespace base {
class CommandLine;
class FilePath;
class HighResolutionTimerManager;
+class MemoryPressureMonitor;
class MessageLoop;
class PowerMonitor;
+class SingleThreadTaskRunner;
class SystemMonitor;
-class MemoryPressureMonitor;
namespace trace_event {
class TraceEventSystemStatsMonitor;
} // namespace trace_event
@@ -277,6 +278,12 @@ class CONTENT_EXPORT BrowserMainLoop {
std::unique_ptr<BrowserProcessSubThread> file_thread_;
std::unique_ptr<BrowserProcessSubThread> process_launcher_thread_;
std::unique_ptr<BrowserProcessSubThread> cache_thread_;
+ scoped_refptr<base::SingleThreadTaskRunner> db_task_runner_;
+ scoped_refptr<base::SingleThreadTaskRunner> file_user_blocking_task_runner_;
+ scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_;
+ scoped_refptr<base::SingleThreadTaskRunner> process_launcher_task_runner_;
+ scoped_refptr<base::SingleThreadTaskRunner> cache_task_runner_;
+ // The IO thread is never redirected to TaskScheduler at this point.
std::unique_ptr<BrowserProcessSubThread> io_thread_;
// Members initialized in |BrowserThreadsStarted()| --------------------------

Powered by Google App Engine
This is Rietveld 408576698