| 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 13 matching lines...) Expand all Loading... |
| 24 class MemoryPressureMonitorChromeOS; | 24 class MemoryPressureMonitorChromeOS; |
| 25 #endif | 25 #endif |
| 26 namespace trace_event { | 26 namespace trace_event { |
| 27 class TraceMemoryController; | 27 class TraceMemoryController; |
| 28 class TraceEventSystemStatsMonitor; | 28 class TraceEventSystemStatsMonitor; |
| 29 } // namespace trace_event | 29 } // namespace trace_event |
| 30 } // namespace base | 30 } // namespace base |
| 31 | 31 |
| 32 namespace media { | 32 namespace media { |
| 33 class AudioManager; | 33 class AudioManager; |
| 34 class UserInputMonitor; |
| 35 namespace midi { |
| 34 class MidiManager; | 36 class MidiManager; |
| 35 class UserInputMonitor; | 37 } // namespace midi |
| 36 } // namespace media | 38 } // namespace media |
| 37 | 39 |
| 38 namespace net { | 40 namespace net { |
| 39 class NetworkChangeNotifier; | 41 class NetworkChangeNotifier; |
| 40 } // namespace net | 42 } // namespace net |
| 41 | 43 |
| 42 namespace content { | 44 namespace content { |
| 43 class BrowserMainParts; | 45 class BrowserMainParts; |
| 44 class BrowserOnlineStateObserver; | 46 class BrowserOnlineStateObserver; |
| 45 class BrowserShutdownImpl; | 47 class BrowserShutdownImpl; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 97 |
| 96 int GetResultCode() const { return result_code_; } | 98 int GetResultCode() const { return result_code_; } |
| 97 | 99 |
| 98 media::AudioManager* audio_manager() const { return audio_manager_.get(); } | 100 media::AudioManager* audio_manager() const { return audio_manager_.get(); } |
| 99 MediaStreamManager* media_stream_manager() const { | 101 MediaStreamManager* media_stream_manager() const { |
| 100 return media_stream_manager_.get(); | 102 return media_stream_manager_.get(); |
| 101 } | 103 } |
| 102 media::UserInputMonitor* user_input_monitor() const { | 104 media::UserInputMonitor* user_input_monitor() const { |
| 103 return user_input_monitor_.get(); | 105 return user_input_monitor_.get(); |
| 104 } | 106 } |
| 105 media::MidiManager* midi_manager() const { return midi_manager_.get(); } | 107 media::midi::MidiManager* midi_manager() const { return midi_manager_.get(); } |
| 106 base::Thread* indexed_db_thread() const { return indexed_db_thread_.get(); } | 108 base::Thread* indexed_db_thread() const { return indexed_db_thread_.get(); } |
| 107 | 109 |
| 108 bool is_tracing_startup() const { return is_tracing_startup_; } | 110 bool is_tracing_startup() const { return is_tracing_startup_; } |
| 109 | 111 |
| 110 const base::FilePath& startup_trace_file() const { | 112 const base::FilePath& startup_trace_file() const { |
| 111 return startup_trace_file_; | 113 return startup_trace_file_; |
| 112 } | 114 } |
| 113 | 115 |
| 114 void StopStartupTracingTimer(); | 116 void StopStartupTracingTimer(); |
| 115 | 117 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 158 |
| 157 // Members initialized in |MainMessageLoopStart()| --------------------------- | 159 // Members initialized in |MainMessageLoopStart()| --------------------------- |
| 158 scoped_ptr<base::MessageLoop> main_message_loop_; | 160 scoped_ptr<base::MessageLoop> main_message_loop_; |
| 159 scoped_ptr<base::SystemMonitor> system_monitor_; | 161 scoped_ptr<base::SystemMonitor> system_monitor_; |
| 160 scoped_ptr<base::PowerMonitor> power_monitor_; | 162 scoped_ptr<base::PowerMonitor> power_monitor_; |
| 161 scoped_ptr<base::HighResolutionTimerManager> hi_res_timer_manager_; | 163 scoped_ptr<base::HighResolutionTimerManager> hi_res_timer_manager_; |
| 162 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; | 164 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; |
| 163 // user_input_monitor_ has to outlive audio_manager_, so declared first. | 165 // user_input_monitor_ has to outlive audio_manager_, so declared first. |
| 164 scoped_ptr<media::UserInputMonitor> user_input_monitor_; | 166 scoped_ptr<media::UserInputMonitor> user_input_monitor_; |
| 165 scoped_ptr<media::AudioManager> audio_manager_; | 167 scoped_ptr<media::AudioManager> audio_manager_; |
| 166 scoped_ptr<media::MidiManager> midi_manager_; | 168 scoped_ptr<media::midi::MidiManager> midi_manager_; |
| 167 scoped_ptr<MediaStreamManager> media_stream_manager_; | 169 scoped_ptr<MediaStreamManager> media_stream_manager_; |
| 168 // Per-process listener for online state changes. | 170 // Per-process listener for online state changes. |
| 169 scoped_ptr<BrowserOnlineStateObserver> online_state_observer_; | 171 scoped_ptr<BrowserOnlineStateObserver> online_state_observer_; |
| 170 #if defined(OS_WIN) | 172 #if defined(OS_WIN) |
| 171 scoped_ptr<SystemMessageWindowWin> system_message_window_; | 173 scoped_ptr<SystemMessageWindowWin> system_message_window_; |
| 172 #elif defined(USE_UDEV) | 174 #elif defined(USE_UDEV) |
| 173 scoped_ptr<DeviceMonitorLinux> device_monitor_linux_; | 175 scoped_ptr<DeviceMonitorLinux> device_monitor_linux_; |
| 174 #elif defined(OS_MACOSX) && !defined(OS_IOS) | 176 #elif defined(OS_MACOSX) && !defined(OS_IOS) |
| 175 scoped_ptr<DeviceMonitorMac> device_monitor_mac_; | 177 scoped_ptr<DeviceMonitorMac> device_monitor_mac_; |
| 176 #endif | 178 #endif |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 | 217 |
| 216 // This timer initiates trace file saving. | 218 // This timer initiates trace file saving. |
| 217 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_; | 219 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_; |
| 218 | 220 |
| 219 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); | 221 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); |
| 220 }; | 222 }; |
| 221 | 223 |
| 222 } // namespace content | 224 } // namespace content |
| 223 | 225 |
| 224 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 226 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
| OLD | NEW |