| 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/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 class StartupTaskRunner; | 63 class StartupTaskRunner; |
| 64 class TimeZoneMonitor; | 64 class TimeZoneMonitor; |
| 65 struct MainFunctionParams; | 65 struct MainFunctionParams; |
| 66 | 66 |
| 67 #if defined(OS_ANDROID) | 67 #if defined(OS_ANDROID) |
| 68 class ScreenOrientationDelegate; | 68 class ScreenOrientationDelegate; |
| 69 #elif defined(OS_MACOSX) | 69 #elif defined(OS_MACOSX) |
| 70 class DeviceMonitorMac; | 70 class DeviceMonitorMac; |
| 71 #elif defined(OS_WIN) | 71 #elif defined(OS_WIN) |
| 72 class SystemMessageWindowWin; | 72 class SystemMessageWindowWin; |
| 73 class ScreenOrientationDelegate; |
| 73 #endif | 74 #endif |
| 74 | 75 |
| 75 // Implements the main browser loop stages called from BrowserMainRunner. | 76 // Implements the main browser loop stages called from BrowserMainRunner. |
| 76 // See comments in browser_main_parts.h for additional info. | 77 // See comments in browser_main_parts.h for additional info. |
| 77 class CONTENT_EXPORT BrowserMainLoop { | 78 class CONTENT_EXPORT BrowserMainLoop { |
| 78 public: | 79 public: |
| 79 // Returns the current instance. This is used to get access to the getters | 80 // Returns the current instance. This is used to get access to the getters |
| 80 // that return objects which are owned by this class. | 81 // that return objects which are owned by this class. |
| 81 static BrowserMainLoop* GetInstance(); | 82 static BrowserMainLoop* GetInstance(); |
| 82 | 83 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 scoped_ptr<base::HighResolutionTimerManager> hi_res_timer_manager_; | 193 scoped_ptr<base::HighResolutionTimerManager> hi_res_timer_manager_; |
| 193 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; | 194 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; |
| 194 | 195 |
| 195 // Per-process listener for online state changes. | 196 // Per-process listener for online state changes. |
| 196 scoped_ptr<BrowserOnlineStateObserver> online_state_observer_; | 197 scoped_ptr<BrowserOnlineStateObserver> online_state_observer_; |
| 197 | 198 |
| 198 scoped_ptr<base::trace_event::TraceEventSystemStatsMonitor> | 199 scoped_ptr<base::trace_event::TraceEventSystemStatsMonitor> |
| 199 system_stats_monitor_; | 200 system_stats_monitor_; |
| 200 | 201 |
| 201 #if defined(OS_WIN) | 202 #if defined(OS_WIN) |
| 203 scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_; |
| 202 scoped_ptr<SystemMessageWindowWin> system_message_window_; | 204 scoped_ptr<SystemMessageWindowWin> system_message_window_; |
| 203 #endif | 205 #endif |
| 204 | 206 |
| 205 #if defined(OS_ANDROID) | 207 #if defined(OS_ANDROID) |
| 206 // Android implementation of ScreenOrientationDelegate | 208 // Android implementation of ScreenOrientationDelegate |
| 207 scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_; | 209 scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_; |
| 208 #endif | 210 #endif |
| 209 | 211 |
| 210 scoped_ptr<MemoryObserver> memory_observer_; | 212 scoped_ptr<MemoryObserver> memory_observer_; |
| 211 | 213 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 scoped_ptr<TimeZoneMonitor> time_zone_monitor_; | 267 scoped_ptr<TimeZoneMonitor> time_zone_monitor_; |
| 266 | 268 |
| 267 // DO NOT add members here. Add them to the right categories above. | 269 // DO NOT add members here. Add them to the right categories above. |
| 268 | 270 |
| 269 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); | 271 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); |
| 270 }; | 272 }; |
| 271 | 273 |
| 272 } // namespace content | 274 } // namespace content |
| 273 | 275 |
| 274 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 276 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
| OLD | NEW |