| 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" | 
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" | 
| 12 #include "base/timer/timer.h" | 12 #include "base/timer/timer.h" | 
| 13 #include "content/browser/browser_process_sub_thread.h" | 13 #include "content/browser/browser_process_sub_thread.h" | 
| 14 #include "content/public/browser/browser_main_runner.h" | 14 #include "content/public/browser/browser_main_runner.h" | 
| 15 | 15 | 
| 16 namespace base { | 16 namespace base { | 
| 17 class CommandLine; | 17 class CommandLine; | 
| 18 class FilePath; | 18 class FilePath; | 
| 19 class HighResolutionTimerManager; | 19 class HighResolutionTimerManager; | 
| 20 class MessageLoop; | 20 class MessageLoop; | 
| 21 class PowerMonitor; | 21 class PowerMonitor; | 
| 22 class SystemMonitor; | 22 class SystemMonitor; | 
| 23 class MemoryPressureMonitor; | 23 class MemoryPressureMonitor; | 
| 24 namespace trace_event { | 24 namespace trace_event { | 
| 25 class TraceMemoryController; | 25 class TraceMemoryController; | 
| 26 class TraceEventSystemStatsMonitor; | 26 class TraceEventSystemStatsMonitor; | 
| 27 }  // namespace trace_event | 27 }  // namespace trace_event | 
| 28 }  // namespace base | 28 }  // namespace base | 
| 29 | 29 | 
|  | 30 namespace IPC { | 
|  | 31 class ScopedIPCSupport; | 
|  | 32 } | 
|  | 33 | 
| 30 namespace media { | 34 namespace media { | 
| 31 class AudioManager; | 35 class AudioManager; | 
| 32 class UserInputMonitor; | 36 class UserInputMonitor; | 
| 33 namespace midi { | 37 namespace midi { | 
| 34 class MidiManager; | 38 class MidiManager; | 
| 35 }  // namespace midi | 39 }  // namespace midi | 
| 36 }  // namespace media | 40 }  // namespace media | 
| 37 | 41 | 
| 38 namespace net { | 42 namespace net { | 
| 39 class NetworkChangeNotifier; | 43 class NetworkChangeNotifier; | 
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 234   scoped_ptr<BrowserProcessSubThread> db_thread_; | 238   scoped_ptr<BrowserProcessSubThread> db_thread_; | 
| 235   scoped_ptr<BrowserProcessSubThread> file_user_blocking_thread_; | 239   scoped_ptr<BrowserProcessSubThread> file_user_blocking_thread_; | 
| 236   scoped_ptr<BrowserProcessSubThread> file_thread_; | 240   scoped_ptr<BrowserProcessSubThread> file_thread_; | 
| 237   scoped_ptr<BrowserProcessSubThread> process_launcher_thread_; | 241   scoped_ptr<BrowserProcessSubThread> process_launcher_thread_; | 
| 238   scoped_ptr<BrowserProcessSubThread> cache_thread_; | 242   scoped_ptr<BrowserProcessSubThread> cache_thread_; | 
| 239   scoped_ptr<BrowserProcessSubThread> io_thread_; | 243   scoped_ptr<BrowserProcessSubThread> io_thread_; | 
| 240 | 244 | 
| 241   // Members initialized in |BrowserThreadsStarted()| -------------------------- | 245   // Members initialized in |BrowserThreadsStarted()| -------------------------- | 
| 242   scoped_ptr<base::Thread> indexed_db_thread_; | 246   scoped_ptr<base::Thread> indexed_db_thread_; | 
| 243   scoped_ptr<MojoShellContext> mojo_shell_context_; | 247   scoped_ptr<MojoShellContext> mojo_shell_context_; | 
|  | 248   scoped_ptr<IPC::ScopedIPCSupport> mojo_ipc_support_; | 
| 244 | 249 | 
| 245   // |user_input_monitor_| has to outlive |audio_manager_|, so declared first. | 250   // |user_input_monitor_| has to outlive |audio_manager_|, so declared first. | 
| 246   scoped_ptr<media::UserInputMonitor> user_input_monitor_; | 251   scoped_ptr<media::UserInputMonitor> user_input_monitor_; | 
| 247   scoped_ptr<media::AudioManager> audio_manager_; | 252   scoped_ptr<media::AudioManager> audio_manager_; | 
| 248 | 253 | 
| 249   scoped_ptr<media::midi::MidiManager> midi_manager_; | 254   scoped_ptr<media::midi::MidiManager> midi_manager_; | 
| 250 | 255 | 
| 251 #if defined(USE_UDEV) | 256 #if defined(USE_UDEV) | 
| 252   scoped_ptr<DeviceMonitorLinux> device_monitor_linux_; | 257   scoped_ptr<DeviceMonitorLinux> device_monitor_linux_; | 
| 253 #elif defined(OS_MACOSX) && !defined(OS_IOS) | 258 #elif defined(OS_MACOSX) && !defined(OS_IOS) | 
| 254   scoped_ptr<DeviceMonitorMac> device_monitor_mac_; | 259   scoped_ptr<DeviceMonitorMac> device_monitor_mac_; | 
| 255 #endif | 260 #endif | 
| 256 #if defined(USE_OZONE) | 261 #if defined(USE_OZONE) | 
| 257   scoped_ptr<ui::ClientNativePixmapFactory> client_native_pixmap_factory_; | 262   scoped_ptr<ui::ClientNativePixmapFactory> client_native_pixmap_factory_; | 
| 258 #endif | 263 #endif | 
| 259 | 264 | 
| 260   scoped_ptr<ResourceDispatcherHostImpl> resource_dispatcher_host_; | 265   scoped_ptr<ResourceDispatcherHostImpl> resource_dispatcher_host_; | 
| 261   scoped_ptr<MediaStreamManager> media_stream_manager_; | 266   scoped_ptr<MediaStreamManager> media_stream_manager_; | 
| 262   scoped_ptr<SpeechRecognitionManagerImpl> speech_recognition_manager_; | 267   scoped_ptr<SpeechRecognitionManagerImpl> speech_recognition_manager_; | 
| 263   scoped_ptr<TimeZoneMonitor> time_zone_monitor_; | 268   scoped_ptr<TimeZoneMonitor> time_zone_monitor_; | 
| 264 | 269 | 
| 265   // DO NOT add members here. Add them to the right categories above. | 270   // DO NOT add members here. Add them to the right categories above. | 
| 266 | 271 | 
| 267   DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); | 272   DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); | 
| 268 }; | 273 }; | 
| 269 | 274 | 
| 270 }  // namespace content | 275 }  // namespace content | 
| 271 | 276 | 
| 272 #endif  // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 277 #endif  // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 
| OLD | NEW | 
|---|