OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 5 #ifndef CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
6 #define CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 6 #define CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/timer/timer.h" | 13 #include "base/timer/timer.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "content/browser/browser_process_sub_thread.h" | 15 #include "content/browser/browser_process_sub_thread.h" |
16 #include "content/public/browser/browser_main_runner.h" | 16 #include "content/public/browser/browser_main_runner.h" |
17 #include "media/audio/audio_manager.h" | 17 #include "media/audio/audio_manager.h" |
18 | 18 |
19 #if defined(USE_AURA) | 19 #if defined(USE_AURA) |
20 namespace aura { | 20 namespace aura { |
21 class Env; | 21 class Env; |
22 } | 22 } |
23 #endif | 23 #endif |
24 | 24 |
25 namespace base { | 25 namespace base { |
26 class CommandLine; | 26 class CommandLine; |
27 class FilePath; | 27 class FilePath; |
28 class HighResolutionTimerManager; | 28 class HighResolutionTimerManager; |
| 29 class MemoryPressureMonitor; |
29 class MessageLoop; | 30 class MessageLoop; |
30 class PowerMonitor; | 31 class PowerMonitor; |
31 class SystemMonitor; | 32 class SystemMonitor; |
32 class MemoryPressureMonitor; | |
33 namespace trace_event { | 33 namespace trace_event { |
34 class TraceEventSystemStatsMonitor; | 34 class TraceEventSystemStatsMonitor; |
35 } // namespace trace_event | 35 } // namespace trace_event |
36 } // namespace base | 36 } // namespace base |
37 | 37 |
38 namespace device { | 38 namespace device { |
39 class TimeZoneMonitor; | 39 class TimeZoneMonitor; |
40 } | 40 } |
41 | 41 |
42 namespace media { | 42 namespace media { |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 | 266 |
267 // Members initialized in |PreCreateThreads()| ------------------------------- | 267 // Members initialized in |PreCreateThreads()| ------------------------------- |
268 // Torn down in ShutdownThreadsAndCleanUp. | 268 // Torn down in ShutdownThreadsAndCleanUp. |
269 std::unique_ptr<base::MemoryPressureMonitor> memory_pressure_monitor_; | 269 std::unique_ptr<base::MemoryPressureMonitor> memory_pressure_monitor_; |
270 #if defined(USE_X11) && !(OS_CHROMEOS) | 270 #if defined(USE_X11) && !(OS_CHROMEOS) |
271 std::unique_ptr<internal::GpuDataManagerVisualProxy> | 271 std::unique_ptr<internal::GpuDataManagerVisualProxy> |
272 gpu_data_manager_visual_proxy_; | 272 gpu_data_manager_visual_proxy_; |
273 #endif | 273 #endif |
274 | 274 |
275 // Members initialized in |CreateThreads()| ---------------------------------- | 275 // Members initialized in |CreateThreads()| ---------------------------------- |
| 276 // Note: some |*_thread_| members below may never be initialized when |
| 277 // redirection to TaskScheduler is enabled. (ref. |
| 278 // ContentBrowserClient::RedirectNonUINonIOBrowserThreadsToTaskScheduler()). |
276 std::unique_ptr<BrowserProcessSubThread> db_thread_; | 279 std::unique_ptr<BrowserProcessSubThread> db_thread_; |
277 std::unique_ptr<BrowserProcessSubThread> file_user_blocking_thread_; | 280 std::unique_ptr<BrowserProcessSubThread> file_user_blocking_thread_; |
278 std::unique_ptr<BrowserProcessSubThread> file_thread_; | 281 std::unique_ptr<BrowserProcessSubThread> file_thread_; |
279 std::unique_ptr<BrowserProcessSubThread> process_launcher_thread_; | 282 std::unique_ptr<BrowserProcessSubThread> process_launcher_thread_; |
280 std::unique_ptr<BrowserProcessSubThread> cache_thread_; | 283 std::unique_ptr<BrowserProcessSubThread> cache_thread_; |
281 std::unique_ptr<BrowserProcessSubThread> io_thread_; | 284 std::unique_ptr<BrowserProcessSubThread> io_thread_; |
282 | 285 |
283 // Members initialized in |BrowserThreadsStarted()| -------------------------- | 286 // Members initialized in |BrowserThreadsStarted()| -------------------------- |
284 std::unique_ptr<base::Thread> indexed_db_thread_; | 287 std::unique_ptr<base::Thread> indexed_db_thread_; |
285 std::unique_ptr<ServiceManagerContext> service_manager_context_; | 288 std::unique_ptr<ServiceManagerContext> service_manager_context_; |
(...skipping 26 matching lines...) Expand all Loading... |
312 scoped_refptr<SaveFileManager> save_file_manager_; | 315 scoped_refptr<SaveFileManager> save_file_manager_; |
313 | 316 |
314 // DO NOT add members here. Add them to the right categories above. | 317 // DO NOT add members here. Add them to the right categories above. |
315 | 318 |
316 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); | 319 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); |
317 }; | 320 }; |
318 | 321 |
319 } // namespace content | 322 } // namespace content |
320 | 323 |
321 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 324 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
OLD | NEW |