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