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