| 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 17 matching lines...) Expand all Loading... |
| 28 class HighResolutionTimerManager; | 28 class HighResolutionTimerManager; |
| 29 class MessageLoop; | 29 class MessageLoop; |
| 30 class PowerMonitor; | 30 class PowerMonitor; |
| 31 class SystemMonitor; | 31 class SystemMonitor; |
| 32 class MemoryPressureMonitor; | 32 class MemoryPressureMonitor; |
| 33 namespace trace_event { | 33 namespace trace_event { |
| 34 class TraceEventSystemStatsMonitor; | 34 class TraceEventSystemStatsMonitor; |
| 35 } // namespace trace_event | 35 } // namespace trace_event |
| 36 } // namespace base | 36 } // namespace base |
| 37 | 37 |
| 38 namespace device { |
| 39 class TimeZoneMonitor; |
| 40 } |
| 41 |
| 38 namespace media { | 42 namespace media { |
| 39 #if defined(OS_WIN) | 43 #if defined(OS_WIN) |
| 40 class SystemMessageWindowWin; | 44 class SystemMessageWindowWin; |
| 41 #elif defined(OS_LINUX) && defined(USE_UDEV) | 45 #elif defined(OS_LINUX) && defined(USE_UDEV) |
| 42 class DeviceMonitorLinux; | 46 class DeviceMonitorLinux; |
| 43 #endif | 47 #endif |
| 44 class UserInputMonitor; | 48 class UserInputMonitor; |
| 45 #if defined(OS_MACOSX) | 49 #if defined(OS_MACOSX) |
| 46 class DeviceMonitorMac; | 50 class DeviceMonitorMac; |
| 47 #endif | 51 #endif |
| (...skipping 22 matching lines...) Expand all Loading... |
| 70 class BrowserMainParts; | 74 class BrowserMainParts; |
| 71 class BrowserOnlineStateObserver; | 75 class BrowserOnlineStateObserver; |
| 72 class BrowserThreadImpl; | 76 class BrowserThreadImpl; |
| 73 class LoaderDelegateImpl; | 77 class LoaderDelegateImpl; |
| 74 class MediaStreamManager; | 78 class MediaStreamManager; |
| 75 class MojoShellContext; | 79 class MojoShellContext; |
| 76 class ResourceDispatcherHostImpl; | 80 class ResourceDispatcherHostImpl; |
| 77 class SaveFileManager; | 81 class SaveFileManager; |
| 78 class SpeechRecognitionManagerImpl; | 82 class SpeechRecognitionManagerImpl; |
| 79 class StartupTaskRunner; | 83 class StartupTaskRunner; |
| 80 class TimeZoneMonitor; | |
| 81 struct MainFunctionParams; | 84 struct MainFunctionParams; |
| 82 | 85 |
| 83 #if defined(OS_ANDROID) | 86 #if defined(OS_ANDROID) |
| 84 class ScreenOrientationDelegate; | 87 class ScreenOrientationDelegate; |
| 85 #elif defined(OS_WIN) | 88 #elif defined(OS_WIN) |
| 86 class ScreenOrientationDelegate; | 89 class ScreenOrientationDelegate; |
| 87 #endif | 90 #endif |
| 88 | 91 |
| 89 // Implements the main browser loop stages called from BrowserMainRunner. | 92 // Implements the main browser loop stages called from BrowserMainRunner. |
| 90 // See comments in browser_main_parts.h for additional info. | 93 // See comments in browser_main_parts.h for additional info. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 127 |
| 125 int GetResultCode() const { return result_code_; } | 128 int GetResultCode() const { return result_code_; } |
| 126 | 129 |
| 127 media::AudioManager* audio_manager() const { return audio_manager_.get(); } | 130 media::AudioManager* audio_manager() const { return audio_manager_.get(); } |
| 128 MediaStreamManager* media_stream_manager() const { | 131 MediaStreamManager* media_stream_manager() const { |
| 129 return media_stream_manager_.get(); | 132 return media_stream_manager_.get(); |
| 130 } | 133 } |
| 131 media::UserInputMonitor* user_input_monitor() const { | 134 media::UserInputMonitor* user_input_monitor() const { |
| 132 return user_input_monitor_.get(); | 135 return user_input_monitor_.get(); |
| 133 } | 136 } |
| 134 TimeZoneMonitor* time_zone_monitor() const { | 137 device::TimeZoneMonitor* time_zone_monitor() const { |
| 135 return time_zone_monitor_.get(); | 138 return time_zone_monitor_.get(); |
| 136 } | 139 } |
| 137 media::midi::MidiManager* midi_manager() const { return midi_manager_.get(); } | 140 media::midi::MidiManager* midi_manager() const { return midi_manager_.get(); } |
| 138 base::Thread* indexed_db_thread() const { return indexed_db_thread_.get(); } | 141 base::Thread* indexed_db_thread() const { return indexed_db_thread_.get(); } |
| 139 | 142 |
| 140 bool is_tracing_startup_for_duration() const { | 143 bool is_tracing_startup_for_duration() const { |
| 141 return is_tracing_startup_for_duration_; | 144 return is_tracing_startup_for_duration_; |
| 142 } | 145 } |
| 143 | 146 |
| 144 const base::FilePath& startup_trace_file() const { | 147 const base::FilePath& startup_trace_file() const { |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 std::unique_ptr<media::DeviceMonitorMac> device_monitor_mac_; | 287 std::unique_ptr<media::DeviceMonitorMac> device_monitor_mac_; |
| 285 #endif | 288 #endif |
| 286 #if defined(USE_OZONE) | 289 #if defined(USE_OZONE) |
| 287 std::unique_ptr<ui::ClientNativePixmapFactory> client_native_pixmap_factory_; | 290 std::unique_ptr<ui::ClientNativePixmapFactory> client_native_pixmap_factory_; |
| 288 #endif | 291 #endif |
| 289 | 292 |
| 290 std::unique_ptr<LoaderDelegateImpl> loader_delegate_; | 293 std::unique_ptr<LoaderDelegateImpl> loader_delegate_; |
| 291 std::unique_ptr<ResourceDispatcherHostImpl> resource_dispatcher_host_; | 294 std::unique_ptr<ResourceDispatcherHostImpl> resource_dispatcher_host_; |
| 292 std::unique_ptr<MediaStreamManager> media_stream_manager_; | 295 std::unique_ptr<MediaStreamManager> media_stream_manager_; |
| 293 std::unique_ptr<SpeechRecognitionManagerImpl> speech_recognition_manager_; | 296 std::unique_ptr<SpeechRecognitionManagerImpl> speech_recognition_manager_; |
| 294 std::unique_ptr<TimeZoneMonitor> time_zone_monitor_; | 297 std::unique_ptr<device::TimeZoneMonitor> time_zone_monitor_; |
| 295 scoped_refptr<SaveFileManager> save_file_manager_; | 298 scoped_refptr<SaveFileManager> save_file_manager_; |
| 296 | 299 |
| 297 // DO NOT add members here. Add them to the right categories above. | 300 // DO NOT add members here. Add them to the right categories above. |
| 298 | 301 |
| 299 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); | 302 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); |
| 300 }; | 303 }; |
| 301 | 304 |
| 302 } // namespace content | 305 } // namespace content |
| 303 | 306 |
| 304 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 307 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
| OLD | NEW |