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 #if defined(OS_CHROMEOS) | 23 #if defined(OS_CHROMEOS) |
24 class MemoryPressureMonitorChromeOS; | 24 class MemoryPressureMonitorChromeOS; |
25 #elif defined(OS_MACOSX) | 25 #elif defined(OS_MACOSX) || defined(OS_WIN) |
grt (UTC plus 2)
2015/05/06 13:26:36
? (defined(OS_MACOSX) && !defined(OS_IOS)) || defi
chrisha
2015/05/06 15:09:57
Yeah, this was a case of me simply editing what wa
| |
26 class MemoryPressureMonitorMac; | 26 class MemoryPressureMonitor; |
27 #endif | 27 #endif |
28 namespace trace_event { | 28 namespace trace_event { |
29 class TraceMemoryController; | 29 class TraceMemoryController; |
30 class TraceEventSystemStatsMonitor; | 30 class TraceEventSystemStatsMonitor; |
31 } // namespace trace_event | 31 } // namespace trace_event |
32 } // namespace base | 32 } // namespace base |
33 | 33 |
34 namespace media { | 34 namespace media { |
35 class AudioManager; | 35 class AudioManager; |
36 class MidiManager; | 36 class MidiManager; |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
175 scoped_ptr<DeviceMonitorLinux> device_monitor_linux_; | 175 scoped_ptr<DeviceMonitorLinux> device_monitor_linux_; |
176 #elif defined(OS_MACOSX) && !defined(OS_IOS) | 176 #elif defined(OS_MACOSX) && !defined(OS_IOS) |
177 scoped_ptr<DeviceMonitorMac> device_monitor_mac_; | 177 scoped_ptr<DeviceMonitorMac> device_monitor_mac_; |
178 #endif | 178 #endif |
179 #if defined(OS_ANDROID) | 179 #if defined(OS_ANDROID) |
180 // Android implementation of ScreenOrientationDelegate | 180 // Android implementation of ScreenOrientationDelegate |
181 scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_; | 181 scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_; |
182 #endif | 182 #endif |
183 #if defined(OS_CHROMEOS) | 183 #if defined(OS_CHROMEOS) |
184 scoped_ptr<base::MemoryPressureMonitorChromeOS> memory_pressure_monitor_; | 184 scoped_ptr<base::MemoryPressureMonitorChromeOS> memory_pressure_monitor_; |
185 #elif defined(OS_MACOSX) && !defined(OS_IOS) | 185 #elif (defined(OS_MACOSX) && !defined(OS_IOS)) || defined(OS_WIN) |
186 scoped_ptr<base::MemoryPressureMonitorMac> memory_pressure_monitor_; | 186 scoped_ptr<base::MemoryPressureMonitor> memory_pressure_monitor_; |
187 #endif | 187 #endif |
188 // The startup task runner is created by CreateStartupTasks() | 188 // The startup task runner is created by CreateStartupTasks() |
189 scoped_ptr<StartupTaskRunner> startup_task_runner_; | 189 scoped_ptr<StartupTaskRunner> startup_task_runner_; |
190 | 190 |
191 // Destroy parts_ before main_message_loop_ (required) and before other | 191 // Destroy parts_ before main_message_loop_ (required) and before other |
192 // classes constructed in content (but after main_thread_). | 192 // classes constructed in content (but after main_thread_). |
193 scoped_ptr<BrowserMainParts> parts_; | 193 scoped_ptr<BrowserMainParts> parts_; |
194 | 194 |
195 // Members initialized in |InitializeMainThread()| --------------------------- | 195 // Members initialized in |InitializeMainThread()| --------------------------- |
196 // This must get destroyed before other threads that are created in parts_. | 196 // This must get destroyed before other threads that are created in parts_. |
(...skipping 22 matching lines...) Expand all Loading... | |
219 | 219 |
220 // This timer initiates trace file saving. | 220 // This timer initiates trace file saving. |
221 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_; | 221 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_; |
222 | 222 |
223 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); | 223 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); |
224 }; | 224 }; |
225 | 225 |
226 } // namespace content | 226 } // namespace content |
227 | 227 |
228 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 228 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
OLD | NEW |