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

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: 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)
26 class MemoryPressureMonitorMac; 26 class MemoryPressureMonitorMac;
27 #elif defined(OS_WIN)
28 class MemoryPressureMonitorWin;
27 #endif 29 #endif
28 namespace trace_event { 30 namespace trace_event {
29 class TraceMemoryController; 31 class TraceMemoryController;
30 class TraceEventSystemStatsMonitor; 32 class TraceEventSystemStatsMonitor;
31 } // namespace trace_event 33 } // namespace trace_event
32 } // namespace base 34 } // namespace base
33 35
34 namespace media { 36 namespace media {
35 class AudioManager; 37 class AudioManager;
36 class MidiManager; 38 class MidiManager;
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 scoped_ptr<DeviceMonitorMac> device_monitor_mac_; 179 scoped_ptr<DeviceMonitorMac> device_monitor_mac_;
178 #endif 180 #endif
179 #if defined(OS_ANDROID) 181 #if defined(OS_ANDROID)
180 // Android implementation of ScreenOrientationDelegate 182 // Android implementation of ScreenOrientationDelegate
181 scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_; 183 scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_;
182 #endif 184 #endif
183 #if defined(OS_CHROMEOS) 185 #if defined(OS_CHROMEOS)
184 scoped_ptr<base::MemoryPressureMonitorChromeOS> memory_pressure_monitor_; 186 scoped_ptr<base::MemoryPressureMonitorChromeOS> memory_pressure_monitor_;
185 #elif defined(OS_MACOSX) && !defined(OS_IOS) 187 #elif defined(OS_MACOSX) && !defined(OS_IOS)
186 scoped_ptr<base::MemoryPressureMonitorMac> memory_pressure_monitor_; 188 scoped_ptr<base::MemoryPressureMonitorMac> memory_pressure_monitor_;
189 #elif defined(OS_WIN)
190 scoped_ptr<base::MemoryPressureMonitorWin> memory_pressure_monitor_;
grt (UTC plus 2) 2015/05/05 15:34:00 can some/all of these be scoped_ptr<base::MemoryPr
chrisha 2015/05/05 19:46:13 Yeah, the Windows and Mac ones can be folded. The
187 #endif 191 #endif
188 // The startup task runner is created by CreateStartupTasks() 192 // The startup task runner is created by CreateStartupTasks()
189 scoped_ptr<StartupTaskRunner> startup_task_runner_; 193 scoped_ptr<StartupTaskRunner> startup_task_runner_;
190 194
191 // Destroy parts_ before main_message_loop_ (required) and before other 195 // Destroy parts_ before main_message_loop_ (required) and before other
192 // classes constructed in content (but after main_thread_). 196 // classes constructed in content (but after main_thread_).
193 scoped_ptr<BrowserMainParts> parts_; 197 scoped_ptr<BrowserMainParts> parts_;
194 198
195 // Members initialized in |InitializeMainThread()| --------------------------- 199 // Members initialized in |InitializeMainThread()| ---------------------------
196 // This must get destroyed before other threads that are created in parts_. 200 // This must get destroyed before other threads that are created in parts_.
(...skipping 22 matching lines...) Expand all
219 223
220 // This timer initiates trace file saving. 224 // This timer initiates trace file saving.
221 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_; 225 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_;
222 226
223 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); 227 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop);
224 }; 228 };
225 229
226 } // namespace content 230 } // namespace content
227 231
228 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 232 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698