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

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

Issue 2360433002: Memory-monitor for Mac. (Closed)
Patch Set: rebased 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/BUILD.gn ('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 7d2cbd76361245525c74f55b5aa1234c31098c00..dd1e2b1a5e3e48001d5a4523cfad5ca224599c3f 100644
--- a/content/browser/memory/memory_coordinator.h
+++ b/content/browser/memory/memory_coordinator.h
@@ -8,6 +8,7 @@
#include "base/memory/memory_coordinator_client_registry.h"
#include "base/memory/memory_pressure_monitor.h"
#include "base/process/process_handle.h"
+#include "base/time/time.h"
#include "content/common/content_export.h"
#include "content/common/memory_coordinator.mojom.h"
#include "content/public/browser/memory_coordinator_delegate.h"
@@ -56,6 +57,9 @@ class CONTENT_EXPORT MemoryCoordinator {
void RecordMemoryPressure(
base::MemoryPressureMonitor::MemoryPressureLevel level);
+ // Returns the interval between memory checks.
+ virtual base::TimeDelta GetMonitoringInterval() const;
+
// Called when ChildMemoryCoordinator calls AddChild().
virtual void OnChildAdded(int render_process_id) {}
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/memory/memory_coordinator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698