| 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" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #endif | 43 #endif |
| 44 class UserInputMonitor; | 44 class UserInputMonitor; |
| 45 #if defined(OS_MACOSX) | 45 #if defined(OS_MACOSX) |
| 46 class DeviceMonitorMac; | 46 class DeviceMonitorMac; |
| 47 #endif | 47 #endif |
| 48 namespace midi { | 48 namespace midi { |
| 49 class MidiManager; | 49 class MidiManager; |
| 50 } // namespace midi | 50 } // namespace midi |
| 51 } // namespace media | 51 } // namespace media |
| 52 | 52 |
| 53 namespace memory_coordinator { | |
| 54 class MemoryCoordinator; | |
| 55 } // namespace memory_coordinator | |
| 56 | |
| 57 namespace mojo { | 53 namespace mojo { |
| 58 namespace edk { | 54 namespace edk { |
| 59 class ScopedIPCSupport; | 55 class ScopedIPCSupport; |
| 60 } // namespace edk | 56 } // namespace edk |
| 61 } // namespace mojo | 57 } // namespace mojo |
| 62 | 58 |
| 63 namespace net { | 59 namespace net { |
| 64 class NetworkChangeNotifier; | 60 class NetworkChangeNotifier; |
| 65 } // namespace net | 61 } // namespace net |
| 66 | 62 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 bool is_tracing_startup_for_duration() const { | 136 bool is_tracing_startup_for_duration() const { |
| 141 return is_tracing_startup_for_duration_; | 137 return is_tracing_startup_for_duration_; |
| 142 } | 138 } |
| 143 | 139 |
| 144 const base::FilePath& startup_trace_file() const { | 140 const base::FilePath& startup_trace_file() const { |
| 145 return startup_trace_file_; | 141 return startup_trace_file_; |
| 146 } | 142 } |
| 147 | 143 |
| 148 void StopStartupTracingTimer(); | 144 void StopStartupTracingTimer(); |
| 149 | 145 |
| 150 memory_coordinator::MemoryCoordinator* memory_coordinator() const { | |
| 151 return memory_coordinator_.get(); | |
| 152 } | |
| 153 | |
| 154 #if defined(OS_MACOSX) && !defined(OS_IOS) | 146 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 155 media::DeviceMonitorMac* device_monitor_mac() const { | 147 media::DeviceMonitorMac* device_monitor_mac() const { |
| 156 return device_monitor_mac_.get(); | 148 return device_monitor_mac_.get(); |
| 157 } | 149 } |
| 158 #endif | 150 #endif |
| 159 | 151 |
| 160 private: | 152 private: |
| 161 class MemoryObserver; | 153 class MemoryObserver; |
| 162 | 154 |
| 163 void InitializeMainThread(); | 155 void InitializeMainThread(); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 // Members initialized in |InitializeMainThread()| --------------------------- | 242 // Members initialized in |InitializeMainThread()| --------------------------- |
| 251 // This must get destroyed before other threads that are created in |parts_|. | 243 // This must get destroyed before other threads that are created in |parts_|. |
| 252 std::unique_ptr<BrowserThreadImpl> main_thread_; | 244 std::unique_ptr<BrowserThreadImpl> main_thread_; |
| 253 | 245 |
| 254 // Members initialized in |CreateStartupTasks()| ----------------------------- | 246 // Members initialized in |CreateStartupTasks()| ----------------------------- |
| 255 std::unique_ptr<StartupTaskRunner> startup_task_runner_; | 247 std::unique_ptr<StartupTaskRunner> startup_task_runner_; |
| 256 | 248 |
| 257 // Members initialized in |PreCreateThreads()| ------------------------------- | 249 // Members initialized in |PreCreateThreads()| ------------------------------- |
| 258 // Torn down in ShutdownThreadsAndCleanUp. | 250 // Torn down in ShutdownThreadsAndCleanUp. |
| 259 std::unique_ptr<base::MemoryPressureMonitor> memory_pressure_monitor_; | 251 std::unique_ptr<base::MemoryPressureMonitor> memory_pressure_monitor_; |
| 260 std::unique_ptr<memory_coordinator::MemoryCoordinator> memory_coordinator_; | |
| 261 | 252 |
| 262 // Members initialized in |CreateThreads()| ---------------------------------- | 253 // Members initialized in |CreateThreads()| ---------------------------------- |
| 263 std::unique_ptr<BrowserProcessSubThread> db_thread_; | 254 std::unique_ptr<BrowserProcessSubThread> db_thread_; |
| 264 std::unique_ptr<BrowserProcessSubThread> file_user_blocking_thread_; | 255 std::unique_ptr<BrowserProcessSubThread> file_user_blocking_thread_; |
| 265 std::unique_ptr<BrowserProcessSubThread> file_thread_; | 256 std::unique_ptr<BrowserProcessSubThread> file_thread_; |
| 266 std::unique_ptr<BrowserProcessSubThread> process_launcher_thread_; | 257 std::unique_ptr<BrowserProcessSubThread> process_launcher_thread_; |
| 267 std::unique_ptr<BrowserProcessSubThread> cache_thread_; | 258 std::unique_ptr<BrowserProcessSubThread> cache_thread_; |
| 268 std::unique_ptr<BrowserProcessSubThread> io_thread_; | 259 std::unique_ptr<BrowserProcessSubThread> io_thread_; |
| 269 | 260 |
| 270 // Members initialized in |BrowserThreadsStarted()| -------------------------- | 261 // Members initialized in |BrowserThreadsStarted()| -------------------------- |
| (...skipping 27 matching lines...) Expand all Loading... |
| 298 std::unique_ptr<TimeZoneMonitor> time_zone_monitor_; | 289 std::unique_ptr<TimeZoneMonitor> time_zone_monitor_; |
| 299 | 290 |
| 300 // DO NOT add members here. Add them to the right categories above. | 291 // DO NOT add members here. Add them to the right categories above. |
| 301 | 292 |
| 302 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); | 293 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); |
| 303 }; | 294 }; |
| 304 | 295 |
| 305 } // namespace content | 296 } // namespace content |
| 306 | 297 |
| 307 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 298 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
| OLD | NEW |