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

Unified Diff: content/browser/browser_main_loop.h

Issue 2094583002: Add MemoryCoordinator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/DEPS ('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 62ba7ac9e030c8d1a27665a72a270d5da7186438..d05d176e7c3f2a0505ec7f60aec07453c3b8b78e 100644
--- a/content/browser/browser_main_loop.h
+++ b/content/browser/browser_main_loop.h
@@ -50,6 +50,10 @@ class MidiManager;
} // namespace midi
} // namespace media
+namespace memory_coordinator {
+class MemoryCoordinator;
+} // namespace memory_coordinator
+
namespace mojo {
namespace edk {
class ScopedIPCSupport;
@@ -143,6 +147,10 @@ class CONTENT_EXPORT BrowserMainLoop {
void StopStartupTracingTimer();
+ memory_coordinator::MemoryCoordinator* memory_coordinator() const {
+ return memory_coordinator_.get();
+ }
+
#if defined(OS_MACOSX) && !defined(OS_IOS)
media::DeviceMonitorMac* device_monitor_mac() const {
return device_monitor_mac_.get();
@@ -249,6 +257,7 @@ class CONTENT_EXPORT BrowserMainLoop {
// Members initialized in |PreCreateThreads()| -------------------------------
// Torn down in ShutdownThreadsAndCleanUp.
std::unique_ptr<base::MemoryPressureMonitor> memory_pressure_monitor_;
+ std::unique_ptr<memory_coordinator::MemoryCoordinator> memory_coordinator_;
// Members initialized in |CreateThreads()| ----------------------------------
std::unique_ptr<BrowserProcessSubThread> db_thread_;
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698