| 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" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/timer/timer.h" | 13 #include "base/timer/timer.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "content/browser/browser_process_sub_thread.h" | 15 #include "content/browser/browser_process_sub_thread.h" |
| 16 #include "content/public/browser/browser_main_runner.h" | 16 #include "content/public/browser/browser_main_runner.h" |
| 17 #include "media/audio/audio_manager.h" |
| 17 | 18 |
| 18 #if defined(USE_AURA) | 19 #if defined(USE_AURA) |
| 19 namespace aura { | 20 namespace aura { |
| 20 class Env; | 21 class Env; |
| 21 } | 22 } |
| 22 #endif | 23 #endif |
| 23 | 24 |
| 24 namespace base { | 25 namespace base { |
| 25 class CommandLine; | 26 class CommandLine; |
| 26 class FilePath; | 27 class FilePath; |
| 27 class HighResolutionTimerManager; | 28 class HighResolutionTimerManager; |
| 28 class MessageLoop; | 29 class MessageLoop; |
| 29 class PowerMonitor; | 30 class PowerMonitor; |
| 30 class SystemMonitor; | 31 class SystemMonitor; |
| 31 class MemoryPressureMonitor; | 32 class MemoryPressureMonitor; |
| 32 namespace trace_event { | 33 namespace trace_event { |
| 33 class TraceEventSystemStatsMonitor; | 34 class TraceEventSystemStatsMonitor; |
| 34 } // namespace trace_event | 35 } // namespace trace_event |
| 35 } // namespace base | 36 } // namespace base |
| 36 | 37 |
| 37 namespace IPC { | 38 namespace IPC { |
| 38 class ScopedIPCSupport; | 39 class ScopedIPCSupport; |
| 39 } | 40 } |
| 40 | 41 |
| 41 namespace media { | 42 namespace media { |
| 42 class AudioManager; | |
| 43 #if defined(OS_WIN) | 43 #if defined(OS_WIN) |
| 44 class SystemMessageWindowWin; | 44 class SystemMessageWindowWin; |
| 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 midi { | 52 namespace midi { |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 std::unique_ptr<BrowserProcessSubThread> cache_thread_; | 253 std::unique_ptr<BrowserProcessSubThread> cache_thread_; |
| 254 std::unique_ptr<BrowserProcessSubThread> io_thread_; | 254 std::unique_ptr<BrowserProcessSubThread> io_thread_; |
| 255 | 255 |
| 256 // Members initialized in |BrowserThreadsStarted()| -------------------------- | 256 // Members initialized in |BrowserThreadsStarted()| -------------------------- |
| 257 std::unique_ptr<base::Thread> indexed_db_thread_; | 257 std::unique_ptr<base::Thread> indexed_db_thread_; |
| 258 std::unique_ptr<MojoShellContext> mojo_shell_context_; | 258 std::unique_ptr<MojoShellContext> mojo_shell_context_; |
| 259 std::unique_ptr<IPC::ScopedIPCSupport> mojo_ipc_support_; | 259 std::unique_ptr<IPC::ScopedIPCSupport> mojo_ipc_support_; |
| 260 | 260 |
| 261 // |user_input_monitor_| has to outlive |audio_manager_|, so declared first. | 261 // |user_input_monitor_| has to outlive |audio_manager_|, so declared first. |
| 262 std::unique_ptr<media::UserInputMonitor> user_input_monitor_; | 262 std::unique_ptr<media::UserInputMonitor> user_input_monitor_; |
| 263 std::unique_ptr<media::AudioManager> audio_manager_; | 263 // AudioThread needs to outlive |audio_manager_|. |
| 264 std::unique_ptr<base::Thread> audio_thread_; |
| 265 media::ScopedAudioManagerPtr audio_manager_; |
| 264 | 266 |
| 265 std::unique_ptr<media::midi::MidiManager> midi_manager_; | 267 std::unique_ptr<media::midi::MidiManager> midi_manager_; |
| 266 | 268 |
| 267 #if defined(OS_WIN) | 269 #if defined(OS_WIN) |
| 268 std::unique_ptr<media::SystemMessageWindowWin> system_message_window_; | 270 std::unique_ptr<media::SystemMessageWindowWin> system_message_window_; |
| 269 #elif defined(OS_LINUX) && defined(USE_UDEV) | 271 #elif defined(OS_LINUX) && defined(USE_UDEV) |
| 270 std::unique_ptr<media::DeviceMonitorLinux> device_monitor_linux_; | 272 std::unique_ptr<media::DeviceMonitorLinux> device_monitor_linux_; |
| 271 #elif defined(OS_MACOSX) && !defined(OS_IOS) | 273 #elif defined(OS_MACOSX) && !defined(OS_IOS) |
| 272 std::unique_ptr<media::DeviceMonitorMac> device_monitor_mac_; | 274 std::unique_ptr<media::DeviceMonitorMac> device_monitor_mac_; |
| 273 #endif | 275 #endif |
| 274 #if defined(USE_OZONE) | 276 #if defined(USE_OZONE) |
| 275 std::unique_ptr<ui::ClientNativePixmapFactory> client_native_pixmap_factory_; | 277 std::unique_ptr<ui::ClientNativePixmapFactory> client_native_pixmap_factory_; |
| 276 #endif | 278 #endif |
| 277 | 279 |
| 278 std::unique_ptr<ResourceDispatcherHostImpl> resource_dispatcher_host_; | 280 std::unique_ptr<ResourceDispatcherHostImpl> resource_dispatcher_host_; |
| 279 std::unique_ptr<MediaStreamManager> media_stream_manager_; | 281 std::unique_ptr<MediaStreamManager> media_stream_manager_; |
| 280 std::unique_ptr<SpeechRecognitionManagerImpl> speech_recognition_manager_; | 282 std::unique_ptr<SpeechRecognitionManagerImpl> speech_recognition_manager_; |
| 281 std::unique_ptr<TimeZoneMonitor> time_zone_monitor_; | 283 std::unique_ptr<TimeZoneMonitor> time_zone_monitor_; |
| 282 | 284 |
| 283 // DO NOT add members here. Add them to the right categories above. | 285 // DO NOT add members here. Add them to the right categories above. |
| 284 | 286 |
| 285 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); | 287 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); |
| 286 }; | 288 }; |
| 287 | 289 |
| 288 } // namespace content | 290 } // namespace content |
| 289 | 291 |
| 290 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 292 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
| OLD | NEW |