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

Unified Diff: content/browser/browser_main_loop.h

Issue 800603002: Move MemoryPressureObserverChromeOS instantiation from Chrome to Content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moving again Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/chrome_browser_main_chromeos.cc ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main_loop.h
diff --git a/content/browser/browser_main_loop.h b/content/browser/browser_main_loop.h
index 188aa3209d31e0043cd7e6fb247dd70fba4bb413..4a87f872a6e88226b2c0122fa2e6d27e1a3df85e 100644
--- a/content/browser/browser_main_loop.h
+++ b/content/browser/browser_main_loop.h
@@ -20,6 +20,9 @@ class HighResolutionTimerManager;
class MessageLoop;
class PowerMonitor;
class SystemMonitor;
+#if defined(OS_CHROMEOS)
Charlie Reis 2014/12/15 21:52:09 This belongs with the OS-specific blocks below.
Mr4D (OOO till 08-26) 2014/12/15 22:21:46 Note: base::MemoryPressureObserverChromeOS. The O
Charlie Reis 2014/12/15 22:50:26 Ah, no, I missed the base:: part. Apologies!
+class MemoryPressureObserverChromeOS;
+#endif
namespace debug {
class TraceMemoryController;
class TraceEventSystemStatsMonitor;
@@ -115,6 +118,12 @@ class CONTENT_EXPORT BrowserMainLoop {
return device_monitor_mac_.get();
}
#endif
+#if defined(OS_CHROMEOS)
+ // Return the MemoryPressureObserver which might be NULL.
+ base::MemoryPressureObserverChromeOS* memory_pressure_observer() {
+ return memory_pressure_observer_.get();
+ }
+#endif
private:
class MemoryObserver;
@@ -172,6 +181,9 @@ class CONTENT_EXPORT BrowserMainLoop {
// Android implementation of ScreenOrientationDelegate
scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_;
#endif
+#if defined(OS_CHROMEOS)
+ scoped_ptr<base::MemoryPressureObserverChromeOS> memory_pressure_observer_;
+#endif
// The startup task runner is created by CreateStartupTasks()
scoped_ptr<StartupTaskRunner> startup_task_runner_;
« no previous file with comments | « chrome/browser/chromeos/chrome_browser_main_chromeos.cc ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698