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 30 matching lines...) Expand all Loading... |
41 class BrowserOnlineStateObserver; | 41 class BrowserOnlineStateObserver; |
42 class BrowserShutdownImpl; | 42 class BrowserShutdownImpl; |
43 class BrowserThreadImpl; | 43 class BrowserThreadImpl; |
44 class MediaStreamManager; | 44 class MediaStreamManager; |
45 class ResourceDispatcherHostImpl; | 45 class ResourceDispatcherHostImpl; |
46 class SpeechRecognitionManagerImpl; | 46 class SpeechRecognitionManagerImpl; |
47 class StartupTaskRunner; | 47 class StartupTaskRunner; |
48 class TimeZoneMonitor; | 48 class TimeZoneMonitor; |
49 struct MainFunctionParams; | 49 struct MainFunctionParams; |
50 | 50 |
51 #if defined(OS_LINUX) | 51 #if defined(OS_ANDROID) |
| 52 class ScreenOrientationDelegate; |
| 53 #elif defined(OS_LINUX) |
52 class DeviceMonitorLinux; | 54 class DeviceMonitorLinux; |
53 #elif defined(OS_MACOSX) | 55 #elif defined(OS_MACOSX) |
54 class DeviceMonitorMac; | 56 class DeviceMonitorMac; |
55 #elif defined(OS_WIN) | 57 #elif defined(OS_WIN) |
56 class SystemMessageWindowWin; | 58 class SystemMessageWindowWin; |
57 #endif | 59 #endif |
58 | 60 |
59 // Implements the main browser loop stages called from BrowserMainRunner. | 61 // Implements the main browser loop stages called from BrowserMainRunner. |
60 // See comments in browser_main_parts.h for additional info. | 62 // See comments in browser_main_parts.h for additional info. |
61 class CONTENT_EXPORT BrowserMainLoop { | 63 class CONTENT_EXPORT BrowserMainLoop { |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 scoped_ptr<MediaStreamManager> media_stream_manager_; | 161 scoped_ptr<MediaStreamManager> media_stream_manager_; |
160 // Per-process listener for online state changes. | 162 // Per-process listener for online state changes. |
161 scoped_ptr<BrowserOnlineStateObserver> online_state_observer_; | 163 scoped_ptr<BrowserOnlineStateObserver> online_state_observer_; |
162 #if defined(OS_WIN) | 164 #if defined(OS_WIN) |
163 scoped_ptr<SystemMessageWindowWin> system_message_window_; | 165 scoped_ptr<SystemMessageWindowWin> system_message_window_; |
164 #elif defined(USE_UDEV) | 166 #elif defined(USE_UDEV) |
165 scoped_ptr<DeviceMonitorLinux> device_monitor_linux_; | 167 scoped_ptr<DeviceMonitorLinux> device_monitor_linux_; |
166 #elif defined(OS_MACOSX) && !defined(OS_IOS) | 168 #elif defined(OS_MACOSX) && !defined(OS_IOS) |
167 scoped_ptr<DeviceMonitorMac> device_monitor_mac_; | 169 scoped_ptr<DeviceMonitorMac> device_monitor_mac_; |
168 #endif | 170 #endif |
| 171 #if defined(OS_ANDROID) |
| 172 // Android implementation of ScreenOrientationDelegate |
| 173 scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_; |
| 174 #endif |
169 // The startup task runner is created by CreateStartupTasks() | 175 // The startup task runner is created by CreateStartupTasks() |
170 scoped_ptr<StartupTaskRunner> startup_task_runner_; | 176 scoped_ptr<StartupTaskRunner> startup_task_runner_; |
171 | 177 |
172 // Destroy parts_ before main_message_loop_ (required) and before other | 178 // Destroy parts_ before main_message_loop_ (required) and before other |
173 // classes constructed in content (but after main_thread_). | 179 // classes constructed in content (but after main_thread_). |
174 scoped_ptr<BrowserMainParts> parts_; | 180 scoped_ptr<BrowserMainParts> parts_; |
175 | 181 |
176 // Members initialized in |InitializeMainThread()| --------------------------- | 182 // Members initialized in |InitializeMainThread()| --------------------------- |
177 // This must get destroyed before other threads that are created in parts_. | 183 // This must get destroyed before other threads that are created in parts_. |
178 scoped_ptr<BrowserThreadImpl> main_thread_; | 184 scoped_ptr<BrowserThreadImpl> main_thread_; |
(...skipping 20 matching lines...) Expand all Loading... |
199 | 205 |
200 // This timer initiates trace file saving. | 206 // This timer initiates trace file saving. |
201 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_; | 207 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_; |
202 | 208 |
203 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); | 209 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); |
204 }; | 210 }; |
205 | 211 |
206 } // namespace content | 212 } // namespace content |
207 | 213 |
208 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 214 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
OLD | NEW |