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

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

Issue 2553553002: memory coordinator: Throttle foreground renderers on SUSPENDED state (Closed)
Patch Set: Fix unittests 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 2f169ee02a9c6cbf3ac7338f078ae13384e2ea81..4934bb8494cdbe31e9cf44336ef3877030ab00d8 100644
--- a/content/browser/memory/memory_coordinator.h
+++ b/content/browser/memory/memory_coordinator.h
@@ -80,9 +80,6 @@ class CONTENT_EXPORT MemoryCoordinator {
// for testing.
void OnConnectionError(int render_process_id);
- // Returns true when a given renderer can be throttled.
- bool CanThrottleRenderer(int render_process_id);
-
// Returns true when a given renderer can be suspended.
bool CanSuspendRenderer(int render_process_id);
@@ -94,6 +91,7 @@ class CONTENT_EXPORT MemoryCoordinator {
~ChildInfo();
mojom::MemoryState memory_state;
+ bool is_visible = false;
std::unique_ptr<MemoryCoordinatorHandleImpl> handle;
};
« 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