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

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

Issue 1122863005: Create base::win::MemoryPressureMonitor class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and pretty_print to make histograms.xml happy. 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) 23 #if defined(OS_CHROMEOS)
24 class MemoryPressureMonitorChromeOS; 24 class MemoryPressureMonitorChromeOS;
25 #elif defined(OS_MACOSX) 25 #elif (defined(OS_MACOSX) && !defined(OS_IOS)) || defined(OS_WIN)
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 UserInputMonitor; 36 class UserInputMonitor;
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 scoped_ptr<DeviceMonitorLinux> device_monitor_linux_; 177 scoped_ptr<DeviceMonitorLinux> device_monitor_linux_;
178 #elif defined(OS_MACOSX) && !defined(OS_IOS) 178 #elif defined(OS_MACOSX) && !defined(OS_IOS)
179 scoped_ptr<DeviceMonitorMac> device_monitor_mac_; 179 scoped_ptr<DeviceMonitorMac> device_monitor_mac_;
180 #endif 180 #endif
181 #if defined(OS_ANDROID) 181 #if defined(OS_ANDROID)
182 // Android implementation of ScreenOrientationDelegate 182 // Android implementation of ScreenOrientationDelegate
183 scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_; 183 scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_;
184 #endif 184 #endif
185 #if defined(OS_CHROMEOS) 185 #if defined(OS_CHROMEOS)
186 scoped_ptr<base::MemoryPressureMonitorChromeOS> memory_pressure_monitor_; 186 scoped_ptr<base::MemoryPressureMonitorChromeOS> memory_pressure_monitor_;
187 #elif defined(OS_MACOSX) && !defined(OS_IOS) 187 #elif (defined(OS_MACOSX) && !defined(OS_IOS)) || defined(OS_WIN)
188 scoped_ptr<base::MemoryPressureMonitorMac> memory_pressure_monitor_; 188 scoped_ptr<base::MemoryPressureMonitor> memory_pressure_monitor_;
189 #endif 189 #endif
190 // The startup task runner is created by CreateStartupTasks() 190 // The startup task runner is created by CreateStartupTasks()
191 scoped_ptr<StartupTaskRunner> startup_task_runner_; 191 scoped_ptr<StartupTaskRunner> startup_task_runner_;
192 192
193 // Destroy parts_ before main_message_loop_ (required) and before other 193 // Destroy parts_ before main_message_loop_ (required) and before other
194 // classes constructed in content (but after main_thread_). 194 // classes constructed in content (but after main_thread_).
195 scoped_ptr<BrowserMainParts> parts_; 195 scoped_ptr<BrowserMainParts> parts_;
196 196
197 // Members initialized in |InitializeMainThread()| --------------------------- 197 // Members initialized in |InitializeMainThread()| ---------------------------
198 // This must get destroyed before other threads that are created in parts_. 198 // This must get destroyed before other threads that are created in parts_.
(...skipping 22 matching lines...) Expand all
221 221
222 // This timer initiates trace file saving. 222 // This timer initiates trace file saving.
223 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_; 223 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_;
224 224
225 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); 225 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop);
226 }; 226 };
227 227
228 } // namespace content 228 } // namespace content
229 229
230 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 230 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698