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

Unified Diff: content/browser/browser_main_loop.h

Issue 2464233002: Experiment with redirecting all BrowserThreads (but UI/IO) to TaskScheduler (Closed)
Patch Set: Hold the lock while starting!!! Created 4 years 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 b3c357de44f5a9bb3c05ddc55308f3112f631ef4..f74aa4c689d6e1a757d9d71064a1168bcda96886 100644
--- a/content/browser/browser_main_loop.h
+++ b/content/browser/browser_main_loop.h
@@ -26,10 +26,10 @@ namespace base {
class CommandLine;
class FilePath;
class HighResolutionTimerManager;
+class MemoryPressureMonitor;
class MessageLoop;
class PowerMonitor;
class SystemMonitor;
-class MemoryPressureMonitor;
namespace trace_event {
class TraceEventSystemStatsMonitor;
} // namespace trace_event
@@ -273,6 +273,9 @@ class CONTENT_EXPORT BrowserMainLoop {
#endif
// Members initialized in |CreateThreads()| ----------------------------------
+ // Note: some |*_thread_| members below may never be initialized when
+ // redirection to TaskScheduler is enabled. (ref.
+ // ContentBrowserClient::RedirectNonUINonIOBrowserThreadsToTaskScheduler()).
std::unique_ptr<BrowserProcessSubThread> db_thread_;
std::unique_ptr<BrowserProcessSubThread> file_user_blocking_thread_;
std::unique_ptr<BrowserProcessSubThread> file_thread_;

Powered by Google App Engine
This is Rietveld 408576698