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