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

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

Issue 2518653002: memory coordinator: Set variation parameters if available (Closed)
Patch Set: 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
Index: content/browser/memory/memory_coordinator_impl.h
diff --git a/content/browser/memory/memory_coordinator_impl.h b/content/browser/memory/memory_coordinator_impl.h
index b86cc61be7a0a6aff3e6a712a68279e5168851b2..eac829466a01a98864afa095b3f5fdb02fa9bd78 100644
--- a/content/browser/memory/memory_coordinator_impl.h
+++ b/content/browser/memory/memory_coordinator_impl.h
@@ -97,10 +97,14 @@ class CONTENT_EXPORT MemoryCoordinatorImpl : public MemoryCoordinator,
base::MemoryState current_state_ = MemoryState::NORMAL;
base::TimeTicks last_state_change_;
+ // Sets up parameters for the heuristic.
+ void InitializeParameters();
+
// Validates parameters defined below.
bool ValidateParameters();
// Parameters to control the heuristic.
+ MemoryCoordinatorV0Params params_;
// The median size of a renderer on the current platform. This is used to
// convert the amount of free memory to an expected number of new renderers

Powered by Google App Engine
This is Rietveld 408576698