| 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 19 matching lines...) Expand all Loading... |
| 30 class AudioManager; | 30 class AudioManager; |
| 31 class MidiManager; | 31 class MidiManager; |
| 32 class UserInputMonitor; | 32 class UserInputMonitor; |
| 33 } // namespace media | 33 } // namespace media |
| 34 | 34 |
| 35 namespace net { | 35 namespace net { |
| 36 class NetworkChangeNotifier; | 36 class NetworkChangeNotifier; |
| 37 } // namespace net | 37 } // namespace net |
| 38 | 38 |
| 39 namespace content { | 39 namespace content { |
| 40 class AudioMirroringManager; | |
| 41 class BrowserMainParts; | 40 class BrowserMainParts; |
| 42 class BrowserOnlineStateObserver; | 41 class BrowserOnlineStateObserver; |
| 43 class BrowserShutdownImpl; | 42 class BrowserShutdownImpl; |
| 44 class BrowserThreadImpl; | 43 class BrowserThreadImpl; |
| 45 class MediaStreamManager; | 44 class MediaStreamManager; |
| 46 class ResourceDispatcherHostImpl; | 45 class ResourceDispatcherHostImpl; |
| 47 class SpeechRecognitionManagerImpl; | 46 class SpeechRecognitionManagerImpl; |
| 48 class StartupTaskRunner; | 47 class StartupTaskRunner; |
| 49 class TimeZoneMonitor; | 48 class TimeZoneMonitor; |
| 50 struct MainFunctionParams; | 49 struct MainFunctionParams; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // Perform the default message loop run logic. | 84 // Perform the default message loop run logic. |
| 86 void RunMainMessageLoopParts(); | 85 void RunMainMessageLoopParts(); |
| 87 | 86 |
| 88 // Performs the shutdown sequence, starting with PostMainMessageLoopRun | 87 // Performs the shutdown sequence, starting with PostMainMessageLoopRun |
| 89 // through stopping threads to PostDestroyThreads. | 88 // through stopping threads to PostDestroyThreads. |
| 90 void ShutdownThreadsAndCleanUp(); | 89 void ShutdownThreadsAndCleanUp(); |
| 91 | 90 |
| 92 int GetResultCode() const { return result_code_; } | 91 int GetResultCode() const { return result_code_; } |
| 93 | 92 |
| 94 media::AudioManager* audio_manager() const { return audio_manager_.get(); } | 93 media::AudioManager* audio_manager() const { return audio_manager_.get(); } |
| 95 AudioMirroringManager* audio_mirroring_manager() const { | |
| 96 return audio_mirroring_manager_.get(); | |
| 97 } | |
| 98 MediaStreamManager* media_stream_manager() const { | 94 MediaStreamManager* media_stream_manager() const { |
| 99 return media_stream_manager_.get(); | 95 return media_stream_manager_.get(); |
| 100 } | 96 } |
| 101 media::UserInputMonitor* user_input_monitor() const { | 97 media::UserInputMonitor* user_input_monitor() const { |
| 102 return user_input_monitor_.get(); | 98 return user_input_monitor_.get(); |
| 103 } | 99 } |
| 104 media::MidiManager* midi_manager() const { return midi_manager_.get(); } | 100 media::MidiManager* midi_manager() const { return midi_manager_.get(); } |
| 105 base::Thread* indexed_db_thread() const { return indexed_db_thread_.get(); } | 101 base::Thread* indexed_db_thread() const { return indexed_db_thread_.get(); } |
| 106 | 102 |
| 107 bool is_tracing_startup() const { return is_tracing_startup_; } | 103 bool is_tracing_startup() const { return is_tracing_startup_; } |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // Members initialized in |MainMessageLoopStart()| --------------------------- | 149 // Members initialized in |MainMessageLoopStart()| --------------------------- |
| 154 scoped_ptr<base::MessageLoop> main_message_loop_; | 150 scoped_ptr<base::MessageLoop> main_message_loop_; |
| 155 scoped_ptr<base::SystemMonitor> system_monitor_; | 151 scoped_ptr<base::SystemMonitor> system_monitor_; |
| 156 scoped_ptr<base::PowerMonitor> power_monitor_; | 152 scoped_ptr<base::PowerMonitor> power_monitor_; |
| 157 scoped_ptr<base::HighResolutionTimerManager> hi_res_timer_manager_; | 153 scoped_ptr<base::HighResolutionTimerManager> hi_res_timer_manager_; |
| 158 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; | 154 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; |
| 159 // user_input_monitor_ has to outlive audio_manager_, so declared first. | 155 // user_input_monitor_ has to outlive audio_manager_, so declared first. |
| 160 scoped_ptr<media::UserInputMonitor> user_input_monitor_; | 156 scoped_ptr<media::UserInputMonitor> user_input_monitor_; |
| 161 scoped_ptr<media::AudioManager> audio_manager_; | 157 scoped_ptr<media::AudioManager> audio_manager_; |
| 162 scoped_ptr<media::MidiManager> midi_manager_; | 158 scoped_ptr<media::MidiManager> midi_manager_; |
| 163 scoped_ptr<AudioMirroringManager> audio_mirroring_manager_; | |
| 164 scoped_ptr<MediaStreamManager> media_stream_manager_; | 159 scoped_ptr<MediaStreamManager> media_stream_manager_; |
| 165 // Per-process listener for online state changes. | 160 // Per-process listener for online state changes. |
| 166 scoped_ptr<BrowserOnlineStateObserver> online_state_observer_; | 161 scoped_ptr<BrowserOnlineStateObserver> online_state_observer_; |
| 167 #if defined(OS_WIN) | 162 #if defined(OS_WIN) |
| 168 scoped_ptr<SystemMessageWindowWin> system_message_window_; | 163 scoped_ptr<SystemMessageWindowWin> system_message_window_; |
| 169 #elif defined(USE_UDEV) | 164 #elif defined(USE_UDEV) |
| 170 scoped_ptr<DeviceMonitorLinux> device_monitor_linux_; | 165 scoped_ptr<DeviceMonitorLinux> device_monitor_linux_; |
| 171 #elif defined(OS_MACOSX) && !defined(OS_IOS) | 166 #elif defined(OS_MACOSX) && !defined(OS_IOS) |
| 172 scoped_ptr<DeviceMonitorMac> device_monitor_mac_; | 167 scoped_ptr<DeviceMonitorMac> device_monitor_mac_; |
| 173 #endif | 168 #endif |
| (...skipping 30 matching lines...) Expand all Loading... |
| 204 | 199 |
| 205 // This timer initiates trace file saving. | 200 // This timer initiates trace file saving. |
| 206 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_; | 201 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_; |
| 207 | 202 |
| 208 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); | 203 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); |
| 209 }; | 204 }; |
| 210 | 205 |
| 211 } // namespace content | 206 } // namespace content |
| 212 | 207 |
| 213 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 208 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
| OLD | NEW |