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

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

Issue 2360433002: Memory-monitor for Mac. (Closed)
Patch Set: calculate adjustment based on poll interval; limit calculations to avoid overflow 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
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..f8998361bc9380303ea71587f25f526da0b185d9 100644
--- a/content/browser/memory/memory_coordinator.h
+++ b/content/browser/memory/memory_coordinator.h
@@ -7,6 +7,7 @@
#include "base/memory/memory_coordinator_client_registry.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"
@@ -52,6 +53,9 @@ class CONTENT_EXPORT MemoryCoordinator {
// if the process is not tracked by this coordinator.
mojom::MemoryState GetMemoryState(int render_process_id) const;
+ // Returns the interval between memory checks.
+ virtual base::TimeDelta GetMonitoringInterval() const;
+
// Called when ChildMemoryCoordinator calls AddChild().
virtual void OnChildAdded(int render_process_id) {}

Powered by Google App Engine
This is Rietveld 408576698