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

Unified Diff: content/browser/memory/memory_coordinator_impl.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_impl.h
diff --git a/content/browser/memory/memory_coordinator_impl.h b/content/browser/memory/memory_coordinator_impl.h
index f9792a8c67a7acca64f85fd57f6e6942d2f44f00..41e03936a921a526818ed87a15d875e3ead86a48 100644
--- a/content/browser/memory/memory_coordinator_impl.h
+++ b/content/browser/memory/memory_coordinator_impl.h
@@ -10,7 +10,6 @@
#include "base/memory/weak_ptr.h"
#include "base/single_thread_task_runner.h"
#include "base/threading/non_thread_safe.h"
-#include "base/time/time.h"
#include "content/browser/memory/memory_coordinator.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -50,6 +49,7 @@ class CONTENT_EXPORT MemoryCoordinatorImpl : public MemoryCoordinator,
MemoryMonitor* memory_monitor() { return memory_monitor_.get(); }
+ base::TimeDelta GetMonitoringInterval() const override;
base::MemoryState GetCurrentMemoryState() const override;
void SetCurrentMemoryStateForTesting(base::MemoryState memory_state) override;

Powered by Google App Engine
This is Rietveld 408576698