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

Unified Diff: content/browser/memory/memory_monitor.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/memory/memory_coordinator_impl.cc ('k') | content/browser/memory/memory_monitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..17bb0f14f97e1f9bb7502ca253305d2390373235 100644
--- a/content/browser/memory/memory_monitor.h
+++ b/content/browser/memory/memory_monitor.h
@@ -51,6 +51,11 @@ 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. The meaning of the returned integer is very much
+ // OS specific.
+ virtual bool GetSystemMemoryPressure(int* mem_pressure);
+
private:
friend struct base::DefaultSingletonTraits<MemoryMonitorDelegate>;
« no previous file with comments | « content/browser/memory/memory_coordinator_impl.cc ('k') | content/browser/memory/memory_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698