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

Unified Diff: content/browser/memory/memory_coordinator.h

Issue 2482783002: Add StateOn{Moderate,Critical}NotificationReceived metrics (Closed)
Patch Set: Remove std::move() Created 4 years, 1 month 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/browser_main_loop.cc ('k') | content/browser/memory/memory_coordinator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/memory/memory_coordinator.h
diff --git a/content/browser/memory/memory_coordinator.h b/content/browser/memory/memory_coordinator.h
index 682f1ba628142c1a9a001c14a97179a1c8b5c3a9..a62fdcd31c3d9a49c47bdfd30a327ecfa5842981 100644
--- a/content/browser/memory/memory_coordinator.h
+++ b/content/browser/memory/memory_coordinator.h
@@ -6,6 +6,7 @@
#define CONTENT_BROWSER_MEMORY_MEMORY_COORDINATOR_H_
#include "base/memory/memory_coordinator_client_registry.h"
+#include "base/memory/memory_pressure_monitor.h"
#include "base/process/process_handle.h"
#include "content/common/content_export.h"
#include "content/common/memory_coordinator.mojom.h"
@@ -52,6 +53,11 @@ class CONTENT_EXPORT MemoryCoordinator {
// if the process is not tracked by this coordinator.
mojom::MemoryState GetMemoryState(int render_process_id) const;
+ // Records memory pressure notifications. Called by MemoryPressureMonitor.
+ // TODO(bashi): Remove this when MemoryPressureMonitor is retired.
+ void RecordMemoryPressure(
+ base::MemoryPressureMonitor::MemoryPressureLevel level);
+
// Called when ChildMemoryCoordinator calls AddChild().
virtual void OnChildAdded(int render_process_id) {}
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/memory/memory_coordinator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698