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

Unified Diff: content/browser/memory/memory_monitor.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_monitor.h
diff --git a/content/browser/memory/memory_monitor.h b/content/browser/memory/memory_monitor.h
index a9d0f211fe24e83466b31b8113ba51a8119b7f52..7419e5355fddce73f59d61c328ac450bd1159ceb 100644
--- a/content/browser/memory/memory_monitor.h
+++ b/content/browser/memory/memory_monitor.h
@@ -51,6 +51,10 @@ class CONTENT_EXPORT MemoryMonitorDelegate {
// Returns system memory information.
virtual void GetSystemMemoryInfo(base::SystemMemoryInfoKB* mem_info);
+ // Gets the system memory-pressure information. Returns true if successful
+ // or false otherwise.
chrisha 2016/11/14 18:14:31 Expand the comment that this is only defined on so
bcwhite 2016/11/15 23:15:09 Done.
+ virtual bool GetSystemMemoryPressure(int* mem_pressure);
chrisha 2016/11/09 21:21:11 Can't we push this to the MemoryMonitorMacDelegate
bcwhite 2016/11/09 22:46:54 I tried that but it makes tests problematic becaus
+
private:
friend struct base::DefaultSingletonTraits<MemoryMonitorDelegate>;

Powered by Google App Engine
This is Rietveld 408576698