Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: content/browser/browser_main_loop.h

Issue 1124163003: Rename OS-specific MemoryPressureMonitor implementations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error on ChromeOS. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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)
24 class MemoryPressureMonitorChromeOS;
25 #elif (defined(OS_MACOSX) && !defined(OS_IOS)) || defined(OS_WIN)
26 class MemoryPressureMonitor; 23 class MemoryPressureMonitor;
27 #endif
28 namespace trace_event { 24 namespace trace_event {
29 class TraceMemoryController; 25 class TraceMemoryController;
30 class TraceEventSystemStatsMonitor; 26 class TraceEventSystemStatsMonitor;
31 } // namespace trace_event 27 } // namespace trace_event
32 } // namespace base 28 } // namespace base
33 29
34 namespace media { 30 namespace media {
35 class AudioManager; 31 class AudioManager;
36 class UserInputMonitor; 32 class UserInputMonitor;
37 namespace midi { 33 namespace midi {
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 scoped_ptr<SystemMessageWindowWin> system_message_window_; 171 scoped_ptr<SystemMessageWindowWin> system_message_window_;
176 #elif defined(USE_UDEV) 172 #elif defined(USE_UDEV)
177 scoped_ptr<DeviceMonitorLinux> device_monitor_linux_; 173 scoped_ptr<DeviceMonitorLinux> device_monitor_linux_;
178 #elif defined(OS_MACOSX) && !defined(OS_IOS) 174 #elif defined(OS_MACOSX) && !defined(OS_IOS)
179 scoped_ptr<DeviceMonitorMac> device_monitor_mac_; 175 scoped_ptr<DeviceMonitorMac> device_monitor_mac_;
180 #endif 176 #endif
181 #if defined(OS_ANDROID) 177 #if defined(OS_ANDROID)
182 // Android implementation of ScreenOrientationDelegate 178 // Android implementation of ScreenOrientationDelegate
183 scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_; 179 scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_;
184 #endif 180 #endif
185 #if defined(OS_CHROMEOS) 181
186 scoped_ptr<base::MemoryPressureMonitorChromeOS> memory_pressure_monitor_; 182 // Memory pressure monitor. Created in PreCreateThreads and torn down in
187 #elif (defined(OS_MACOSX) && !defined(OS_IOS)) || defined(OS_WIN) 183 // ShutdownThreadsAndCleanUp.
188 scoped_ptr<base::MemoryPressureMonitor> memory_pressure_monitor_; 184 scoped_ptr<base::MemoryPressureMonitor> memory_pressure_monitor_;
189 #endif 185
190 // The startup task runner is created by CreateStartupTasks() 186 // The startup task runner is created by CreateStartupTasks()
191 scoped_ptr<StartupTaskRunner> startup_task_runner_; 187 scoped_ptr<StartupTaskRunner> startup_task_runner_;
192 188
193 // Destroy parts_ before main_message_loop_ (required) and before other 189 // Destroy parts_ before main_message_loop_ (required) and before other
194 // classes constructed in content (but after main_thread_). 190 // classes constructed in content (but after main_thread_).
195 scoped_ptr<BrowserMainParts> parts_; 191 scoped_ptr<BrowserMainParts> parts_;
196 192
197 // Members initialized in |InitializeMainThread()| --------------------------- 193 // Members initialized in |InitializeMainThread()| ---------------------------
198 // This must get destroyed before other threads that are created in parts_. 194 // This must get destroyed before other threads that are created in parts_.
199 scoped_ptr<BrowserThreadImpl> main_thread_; 195 scoped_ptr<BrowserThreadImpl> main_thread_;
(...skipping 21 matching lines...) Expand all
221 217
222 // This timer initiates trace file saving. 218 // This timer initiates trace file saving.
223 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_; 219 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_;
224 220
225 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); 221 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop);
226 }; 222 };
227 223
228 } // namespace content 224 } // namespace content
229 225
230 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 226 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698