Index: content/browser/memory/memory_condition_observer.h |
diff --git a/content/browser/memory/memory_condition_observer.h b/content/browser/memory/memory_condition_observer.h |
index 40982ff7152952db7b10ea637940cc41d2ef9339..a01fb66f76d03c0b760681ab9ced9229bdc24d4d 100644 |
--- a/content/browser/memory/memory_condition_observer.h |
+++ b/content/browser/memory/memory_condition_observer.h |
@@ -30,8 +30,8 @@ class CONTENT_EXPORT MemoryConditionObserver { |
~MemoryConditionObserver(); |
// Schedules a task to update memory condition. The task will be executed |
- // after |delay| has passed. |
- void ScheduleUpdateCondition(base::TimeDelta delay); |
+ // at a given interval. |
+ void ScheduleUpdateCondition(base::TimeDelta interval); |
private: |
FRIEND_TEST_ALL_PREFIXES(MemoryCoordinatorImplTest, CalculateNextCondition); |
@@ -50,6 +50,13 @@ class CONTENT_EXPORT MemoryConditionObserver { |
scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
base::CancelableClosure update_condition_closure_; |
+ // Current available free memory provided by MemoryMonitor. |
+ int current_available_; |
+ |
+ // The maximum value of available free memory. Used to simulate memory |
+ // pressure. |
+ int max_available_; |
+ |
// Sets up parameters for the heuristic. |
void InitializeParameters(); |