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/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "content/browser/browser_process_sub_thread.h" | 11 #include "content/browser/browser_process_sub_thread.h" |
12 #include "content/public/browser/browser_main_runner.h" | 12 #include "content/public/browser/browser_main_runner.h" |
13 | 13 |
14 namespace base { | 14 namespace base { |
15 class CommandLine; | 15 class CommandLine; |
16 class FilePath; | 16 class FilePath; |
17 class HighResolutionTimerManager; | 17 class HighResolutionTimerManager; |
18 class MessageLoop; | 18 class MessageLoop; |
19 class PowerMonitor; | |
20 class SystemMonitor; | 19 class SystemMonitor; |
21 namespace debug { | 20 namespace debug { |
22 class TraceMemoryController; | 21 class TraceMemoryController; |
23 class TraceEventSystemStatsMonitor; | 22 class TraceEventSystemStatsMonitor; |
24 } // namespace debug | 23 } // namespace debug |
25 } // namespace base | 24 } // namespace base |
26 | 25 |
27 namespace media { | 26 namespace media { |
28 class AudioManager; | 27 class AudioManager; |
29 class MidiManager; | 28 class MidiManager; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // Members initialized on construction --------------------------------------- | 131 // Members initialized on construction --------------------------------------- |
133 const MainFunctionParams& parameters_; | 132 const MainFunctionParams& parameters_; |
134 const base::CommandLine& parsed_command_line_; | 133 const base::CommandLine& parsed_command_line_; |
135 int result_code_; | 134 int result_code_; |
136 // True if the non-UI threads were created. | 135 // True if the non-UI threads were created. |
137 bool created_threads_; | 136 bool created_threads_; |
138 | 137 |
139 // Members initialized in |MainMessageLoopStart()| --------------------------- | 138 // Members initialized in |MainMessageLoopStart()| --------------------------- |
140 scoped_ptr<base::MessageLoop> main_message_loop_; | 139 scoped_ptr<base::MessageLoop> main_message_loop_; |
141 scoped_ptr<base::SystemMonitor> system_monitor_; | 140 scoped_ptr<base::SystemMonitor> system_monitor_; |
142 scoped_ptr<base::PowerMonitor> power_monitor_; | |
143 scoped_ptr<base::HighResolutionTimerManager> hi_res_timer_manager_; | 141 scoped_ptr<base::HighResolutionTimerManager> hi_res_timer_manager_; |
144 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; | 142 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; |
145 // user_input_monitor_ has to outlive audio_manager_, so declared first. | 143 // user_input_monitor_ has to outlive audio_manager_, so declared first. |
146 scoped_ptr<media::UserInputMonitor> user_input_monitor_; | 144 scoped_ptr<media::UserInputMonitor> user_input_monitor_; |
147 scoped_ptr<media::AudioManager> audio_manager_; | 145 scoped_ptr<media::AudioManager> audio_manager_; |
148 scoped_ptr<media::MidiManager> midi_manager_; | 146 scoped_ptr<media::MidiManager> midi_manager_; |
149 scoped_ptr<AudioMirroringManager> audio_mirroring_manager_; | 147 scoped_ptr<AudioMirroringManager> audio_mirroring_manager_; |
150 scoped_ptr<MediaStreamManager> media_stream_manager_; | 148 scoped_ptr<MediaStreamManager> media_stream_manager_; |
151 // Per-process listener for online state changes. | 149 // Per-process listener for online state changes. |
152 scoped_ptr<BrowserOnlineStateObserver> online_state_observer_; | 150 scoped_ptr<BrowserOnlineStateObserver> online_state_observer_; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 scoped_ptr<base::debug::TraceEventSystemStatsMonitor> system_stats_monitor_; | 183 scoped_ptr<base::debug::TraceEventSystemStatsMonitor> system_stats_monitor_; |
186 | 184 |
187 bool is_tracing_startup_; | 185 bool is_tracing_startup_; |
188 | 186 |
189 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); | 187 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); |
190 }; | 188 }; |
191 | 189 |
192 } // namespace content | 190 } // namespace content |
193 | 191 |
194 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 192 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
OLD | NEW |