| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 namespace net { | 38 namespace net { |
| 39 class NetworkChangeNotifier; | 39 class NetworkChangeNotifier; |
| 40 } // namespace net | 40 } // namespace net |
| 41 | 41 |
| 42 namespace content { | 42 namespace content { |
| 43 class BrowserMainParts; | 43 class BrowserMainParts; |
| 44 class BrowserOnlineStateObserver; | 44 class BrowserOnlineStateObserver; |
| 45 class BrowserShutdownImpl; | 45 class BrowserShutdownImpl; |
| 46 class BrowserThreadImpl; | 46 class BrowserThreadImpl; |
| 47 class MediaStreamManager; | 47 class MediaStreamManager; |
| 48 class MojoShellContext; |
| 48 class ResourceDispatcherHostImpl; | 49 class ResourceDispatcherHostImpl; |
| 49 class SpeechRecognitionManagerImpl; | 50 class SpeechRecognitionManagerImpl; |
| 50 class StartupTaskRunner; | 51 class StartupTaskRunner; |
| 51 class TimeZoneMonitor; | 52 class TimeZoneMonitor; |
| 52 struct MainFunctionParams; | 53 struct MainFunctionParams; |
| 53 | 54 |
| 54 #if defined(OS_ANDROID) | 55 #if defined(OS_ANDROID) |
| 55 class ScreenOrientationDelegate; | 56 class ScreenOrientationDelegate; |
| 56 #elif defined(OS_LINUX) | 57 #elif defined(OS_LINUX) |
| 57 class DeviceMonitorLinux; | 58 class DeviceMonitorLinux; |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 scoped_ptr<BrowserMainParts> parts_; | 192 scoped_ptr<BrowserMainParts> parts_; |
| 192 | 193 |
| 193 // Members initialized in |InitializeMainThread()| --------------------------- | 194 // Members initialized in |InitializeMainThread()| --------------------------- |
| 194 // This must get destroyed before other threads that are created in parts_. | 195 // This must get destroyed before other threads that are created in parts_. |
| 195 scoped_ptr<BrowserThreadImpl> main_thread_; | 196 scoped_ptr<BrowserThreadImpl> main_thread_; |
| 196 | 197 |
| 197 // Members initialized in |BrowserThreadsStarted()| -------------------------- | 198 // Members initialized in |BrowserThreadsStarted()| -------------------------- |
| 198 scoped_ptr<ResourceDispatcherHostImpl> resource_dispatcher_host_; | 199 scoped_ptr<ResourceDispatcherHostImpl> resource_dispatcher_host_; |
| 199 scoped_ptr<SpeechRecognitionManagerImpl> speech_recognition_manager_; | 200 scoped_ptr<SpeechRecognitionManagerImpl> speech_recognition_manager_; |
| 200 scoped_ptr<TimeZoneMonitor> time_zone_monitor_; | 201 scoped_ptr<TimeZoneMonitor> time_zone_monitor_; |
| 202 scoped_ptr<MojoShellContext> mojo_shell_context_; |
| 201 | 203 |
| 202 // Members initialized in |RunMainMessageLoopParts()| ------------------------ | 204 // Members initialized in |RunMainMessageLoopParts()| ------------------------ |
| 203 scoped_ptr<BrowserProcessSubThread> db_thread_; | 205 scoped_ptr<BrowserProcessSubThread> db_thread_; |
| 204 scoped_ptr<BrowserProcessSubThread> file_user_blocking_thread_; | 206 scoped_ptr<BrowserProcessSubThread> file_user_blocking_thread_; |
| 205 scoped_ptr<BrowserProcessSubThread> file_thread_; | 207 scoped_ptr<BrowserProcessSubThread> file_thread_; |
| 206 scoped_ptr<BrowserProcessSubThread> process_launcher_thread_; | 208 scoped_ptr<BrowserProcessSubThread> process_launcher_thread_; |
| 207 scoped_ptr<BrowserProcessSubThread> cache_thread_; | 209 scoped_ptr<BrowserProcessSubThread> cache_thread_; |
| 208 scoped_ptr<BrowserProcessSubThread> io_thread_; | 210 scoped_ptr<BrowserProcessSubThread> io_thread_; |
| 209 scoped_ptr<base::Thread> indexed_db_thread_; | 211 scoped_ptr<base::Thread> indexed_db_thread_; |
| 210 scoped_ptr<MemoryObserver> memory_observer_; | 212 scoped_ptr<MemoryObserver> memory_observer_; |
| 211 scoped_ptr<base::trace_event::TraceMemoryController> trace_memory_controller_; | 213 scoped_ptr<base::trace_event::TraceMemoryController> trace_memory_controller_; |
| 212 scoped_ptr<base::trace_event::TraceEventSystemStatsMonitor> | 214 scoped_ptr<base::trace_event::TraceEventSystemStatsMonitor> |
| 213 system_stats_monitor_; | 215 system_stats_monitor_; |
| 214 | 216 |
| 215 bool is_tracing_startup_; | 217 bool is_tracing_startup_; |
| 216 base::FilePath startup_trace_file_; | 218 base::FilePath startup_trace_file_; |
| 217 | 219 |
| 218 // This timer initiates trace file saving. | 220 // This timer initiates trace file saving. |
| 219 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_; | 221 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_; |
| 220 | 222 |
| 221 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); | 223 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); |
| 222 }; | 224 }; |
| 223 | 225 |
| 224 } // namespace content | 226 } // namespace content |
| 225 | 227 |
| 226 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 228 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
| OLD | NEW |