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

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

Issue 2550623002: Add MemoryCoordinator::GetGlobalMemoryState() (Closed)
Patch Set: Created 4 years 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 | « no previous file | content/browser/memory/memory_coordinator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/memory/memory_coordinator.h
diff --git a/content/browser/memory/memory_coordinator.h b/content/browser/memory/memory_coordinator.h
index 7d2cbd76361245525c74f55b5aa1234c31098c00..8ed1951b1ef30a9f663cf27580c1380ef6c07b7d 100644
--- a/content/browser/memory/memory_coordinator.h
+++ b/content/browser/memory/memory_coordinator.h
@@ -59,7 +59,15 @@ class CONTENT_EXPORT MemoryCoordinator {
// Called when ChildMemoryCoordinator calls AddChild().
virtual void OnChildAdded(int render_process_id) {}
+ // Returns the global memory state.
+ virtual base::MemoryState GetGlobalMemoryState() const;
+
+ // Returns the browser's current memory state. Note that the current state
+ // could be different from the global memory state as the browser won't be
+ // suspended.
virtual base::MemoryState GetCurrentMemoryState() const;
+
+ // Sets the global memory state for testing.
virtual void SetCurrentMemoryStateForTesting(base::MemoryState memory_state);
protected:
« no previous file with comments | « no previous file | content/browser/memory/memory_coordinator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698