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

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: Addressed grt's comments. 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_WIN)
26 class MemoryPressureMonitorMac; 26 class MemoryPressureMonitor;
27 } // namespace win
27 #endif 28 #endif
28 namespace trace_event { 29 namespace trace_event {
29 class TraceMemoryController; 30 class TraceMemoryController;
30 class TraceEventSystemStatsMonitor; 31 class TraceEventSystemStatsMonitor;
31 } // namespace trace_event 32 } // namespace trace_event
32 } // namespace base 33 } // namespace base
33 34
34 namespace media { 35 namespace media {
35 class AudioManager; 36 class AudioManager;
36 class MidiManager; 37 class MidiManager;
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 scoped_ptr<DeviceMonitorLinux> device_monitor_linux_; 176 scoped_ptr<DeviceMonitorLinux> device_monitor_linux_;
176 #elif defined(OS_MACOSX) && !defined(OS_IOS) 177 #elif defined(OS_MACOSX) && !defined(OS_IOS)
177 scoped_ptr<DeviceMonitorMac> device_monitor_mac_; 178 scoped_ptr<DeviceMonitorMac> device_monitor_mac_;
178 #endif 179 #endif
179 #if defined(OS_ANDROID) 180 #if defined(OS_ANDROID)
180 // Android implementation of ScreenOrientationDelegate 181 // Android implementation of ScreenOrientationDelegate
181 scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_; 182 scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_;
182 #endif 183 #endif
183 #if defined(OS_CHROMEOS) 184 #if defined(OS_CHROMEOS)
184 scoped_ptr<base::MemoryPressureMonitorChromeOS> memory_pressure_monitor_; 185 scoped_ptr<base::MemoryPressureMonitorChromeOS> memory_pressure_monitor_;
185 #elif defined(OS_MACOSX) && !defined(OS_IOS) 186 #elif (defined(OS_MACOSX) && !defined(OS_IOS)) || defined(OS_WIN)
186 scoped_ptr<base::MemoryPressureMonitorMac> memory_pressure_monitor_; 187 scoped_ptr<base::MemoryPressureMonitor> memory_pressure_monitor_;
187 #endif 188 #endif
188 // The startup task runner is created by CreateStartupTasks() 189 // The startup task runner is created by CreateStartupTasks()
189 scoped_ptr<StartupTaskRunner> startup_task_runner_; 190 scoped_ptr<StartupTaskRunner> startup_task_runner_;
190 191
191 // Destroy parts_ before main_message_loop_ (required) and before other 192 // Destroy parts_ before main_message_loop_ (required) and before other
192 // classes constructed in content (but after main_thread_). 193 // classes constructed in content (but after main_thread_).
193 scoped_ptr<BrowserMainParts> parts_; 194 scoped_ptr<BrowserMainParts> parts_;
194 195
195 // Members initialized in |InitializeMainThread()| --------------------------- 196 // Members initialized in |InitializeMainThread()| ---------------------------
196 // This must get destroyed before other threads that are created in parts_. 197 // This must get destroyed before other threads that are created in parts_.
(...skipping 22 matching lines...) Expand all
219 220
220 // This timer initiates trace file saving. 221 // This timer initiates trace file saving.
221 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_; 222 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_;
222 223
223 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); 224 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop);
224 }; 225 };
225 226
226 } // namespace content 227 } // namespace content
227 228
228 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 229 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698