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