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

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

Issue 2564623004: memory coordinator: Throttle background renderers on Android (Closed)
Patch Set: naming 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 4934bb8494cdbe31e9cf44336ef3877030ab00d8..9ee0512172fc74fdc04d380115b0093323f2330d 100644
--- a/content/browser/memory/memory_coordinator.h
+++ b/content/browser/memory/memory_coordinator.h
@@ -100,7 +100,7 @@ class CONTENT_EXPORT MemoryCoordinator {
ChildInfoMap& children() { return children_; }
-private:
+ private:
#if !defined(OS_MACOSX)
FRIEND_TEST_ALL_PREFIXES(MemoryCoordinatorTest, HandleAdded);
FRIEND_TEST_ALL_PREFIXES(MemoryCoordinatorTest, CanSuspendRenderer);
@@ -108,6 +108,12 @@ private:
#endif
FRIEND_TEST_ALL_PREFIXES(MemoryCoordinatorTest,
ChildRemovedOnConnectionError);
+ FRIEND_TEST_ALL_PREFIXES(MemoryCoordinatorTest, SetChildMemoryState);
+
+ // Called by SetChildMemoryState() to determine a child memory state based on
+ // the current status of the child process.
+ mojom::MemoryState OverrideGlobalState(mojom::MemoryState memroy_state,
+ const ChildInfo& child);
void SetDelegateForTesting(
std::unique_ptr<MemoryCoordinatorDelegate> delegate);
« 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