| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #elif defined(OS_LINUX) && defined(USE_UDEV) | 45 #elif defined(OS_LINUX) && defined(USE_UDEV) |
| 46 class DeviceMonitorLinux; | 46 class DeviceMonitorLinux; |
| 47 #endif | 47 #endif |
| 48 class UserInputMonitor; | 48 class UserInputMonitor; |
| 49 #if defined(OS_MACOSX) | 49 #if defined(OS_MACOSX) |
| 50 class DeviceMonitorMac; | 50 class DeviceMonitorMac; |
| 51 #endif | 51 #endif |
| 52 } // namespace media | 52 } // namespace media |
| 53 | 53 |
| 54 namespace midi { | 54 namespace midi { |
| 55 class MidiManager; | 55 class MidiService; |
| 56 } // namespace midi | 56 } // namespace midi |
| 57 | 57 |
| 58 namespace mojo { | 58 namespace mojo { |
| 59 namespace edk { | 59 namespace edk { |
| 60 class ScopedIPCSupport; | 60 class ScopedIPCSupport; |
| 61 } // namespace edk | 61 } // namespace edk |
| 62 } // namespace mojo | 62 } // namespace mojo |
| 63 | 63 |
| 64 namespace net { | 64 namespace net { |
| 65 class NetworkChangeNotifier; | 65 class NetworkChangeNotifier; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 media::AudioManager* audio_manager() const { return audio_manager_.get(); } | 138 media::AudioManager* audio_manager() const { return audio_manager_.get(); } |
| 139 MediaStreamManager* media_stream_manager() const { | 139 MediaStreamManager* media_stream_manager() const { |
| 140 return media_stream_manager_.get(); | 140 return media_stream_manager_.get(); |
| 141 } | 141 } |
| 142 media::UserInputMonitor* user_input_monitor() const { | 142 media::UserInputMonitor* user_input_monitor() const { |
| 143 return user_input_monitor_.get(); | 143 return user_input_monitor_.get(); |
| 144 } | 144 } |
| 145 device::TimeZoneMonitor* time_zone_monitor() const { | 145 device::TimeZoneMonitor* time_zone_monitor() const { |
| 146 return time_zone_monitor_.get(); | 146 return time_zone_monitor_.get(); |
| 147 } | 147 } |
| 148 midi::MidiManager* midi_manager() const { return midi_manager_.get(); } | 148 midi::MidiService* midi_service() const { return midi_service_.get(); } |
| 149 base::Thread* indexed_db_thread() const { return indexed_db_thread_.get(); } | 149 base::Thread* indexed_db_thread() const { return indexed_db_thread_.get(); } |
| 150 | 150 |
| 151 bool is_tracing_startup_for_duration() const { | 151 bool is_tracing_startup_for_duration() const { |
| 152 return is_tracing_startup_for_duration_; | 152 return is_tracing_startup_for_duration_; |
| 153 } | 153 } |
| 154 | 154 |
| 155 const base::FilePath& startup_trace_file() const { | 155 const base::FilePath& startup_trace_file() const { |
| 156 return startup_trace_file_; | 156 return startup_trace_file_; |
| 157 } | 157 } |
| 158 | 158 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 std::unique_ptr<base::Thread> indexed_db_thread_; | 284 std::unique_ptr<base::Thread> indexed_db_thread_; |
| 285 std::unique_ptr<ServiceManagerContext> service_manager_context_; | 285 std::unique_ptr<ServiceManagerContext> service_manager_context_; |
| 286 std::unique_ptr<mojo::edk::ScopedIPCSupport> mojo_ipc_support_; | 286 std::unique_ptr<mojo::edk::ScopedIPCSupport> mojo_ipc_support_; |
| 287 | 287 |
| 288 // |user_input_monitor_| has to outlive |audio_manager_|, so declared first. | 288 // |user_input_monitor_| has to outlive |audio_manager_|, so declared first. |
| 289 std::unique_ptr<media::UserInputMonitor> user_input_monitor_; | 289 std::unique_ptr<media::UserInputMonitor> user_input_monitor_; |
| 290 // AudioThread needs to outlive |audio_manager_|. | 290 // AudioThread needs to outlive |audio_manager_|. |
| 291 std::unique_ptr<AudioManagerThread> audio_thread_; | 291 std::unique_ptr<AudioManagerThread> audio_thread_; |
| 292 media::ScopedAudioManagerPtr audio_manager_; | 292 media::ScopedAudioManagerPtr audio_manager_; |
| 293 | 293 |
| 294 std::unique_ptr<midi::MidiManager> midi_manager_; | 294 std::unique_ptr<midi::MidiService> midi_service_; |
| 295 | 295 |
| 296 #if defined(OS_WIN) | 296 #if defined(OS_WIN) |
| 297 std::unique_ptr<media::SystemMessageWindowWin> system_message_window_; | 297 std::unique_ptr<media::SystemMessageWindowWin> system_message_window_; |
| 298 #elif defined(OS_LINUX) && defined(USE_UDEV) | 298 #elif defined(OS_LINUX) && defined(USE_UDEV) |
| 299 std::unique_ptr<media::DeviceMonitorLinux> device_monitor_linux_; | 299 std::unique_ptr<media::DeviceMonitorLinux> device_monitor_linux_; |
| 300 #elif defined(OS_MACOSX) && !defined(OS_IOS) | 300 #elif defined(OS_MACOSX) && !defined(OS_IOS) |
| 301 std::unique_ptr<media::DeviceMonitorMac> device_monitor_mac_; | 301 std::unique_ptr<media::DeviceMonitorMac> device_monitor_mac_; |
| 302 #endif | 302 #endif |
| 303 #if defined(USE_OZONE) | 303 #if defined(USE_OZONE) |
| 304 std::unique_ptr<ui::ClientNativePixmapFactory> client_native_pixmap_factory_; | 304 std::unique_ptr<ui::ClientNativePixmapFactory> client_native_pixmap_factory_; |
| 305 #endif | 305 #endif |
| 306 | 306 |
| 307 std::unique_ptr<LoaderDelegateImpl> loader_delegate_; | 307 std::unique_ptr<LoaderDelegateImpl> loader_delegate_; |
| 308 std::unique_ptr<ResourceDispatcherHostImpl> resource_dispatcher_host_; | 308 std::unique_ptr<ResourceDispatcherHostImpl> resource_dispatcher_host_; |
| 309 std::unique_ptr<MediaStreamManager> media_stream_manager_; | 309 std::unique_ptr<MediaStreamManager> media_stream_manager_; |
| 310 std::unique_ptr<SpeechRecognitionManagerImpl> speech_recognition_manager_; | 310 std::unique_ptr<SpeechRecognitionManagerImpl> speech_recognition_manager_; |
| 311 std::unique_ptr<device::TimeZoneMonitor> time_zone_monitor_; | 311 std::unique_ptr<device::TimeZoneMonitor> time_zone_monitor_; |
| 312 scoped_refptr<SaveFileManager> save_file_manager_; | 312 scoped_refptr<SaveFileManager> save_file_manager_; |
| 313 | 313 |
| 314 // DO NOT add members here. Add them to the right categories above. | 314 // DO NOT add members here. Add them to the right categories above. |
| 315 | 315 |
| 316 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); | 316 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); |
| 317 }; | 317 }; |
| 318 | 318 |
| 319 } // namespace content | 319 } // namespace content |
| 320 | 320 |
| 321 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 321 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
| OLD | NEW |