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

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

Issue 2360433002: Memory-monitor for Mac. (Closed)
Patch Set: Created 4 years, 3 months 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.
+ virtual bool GetSystemMemoryPressure(int* mem_pressure);
+
private:
friend struct base::DefaultSingletonTraits<MemoryMonitorDelegate>;

Powered by Google App Engine
This is Rietveld 408576698