| Index: chrome/browser/memory/tab_manager_web_contents_data.h
|
| diff --git a/chrome/browser/memory/tab_manager_web_contents_data.h b/chrome/browser/memory/tab_manager_web_contents_data.h
|
| index 4830b773f7fdd896f0aac3f4b97ed167e3bee23c..c24598293100339d45cac1997233491d94c38255 100644
|
| --- a/chrome/browser/memory/tab_manager_web_contents_data.h
|
| +++ b/chrome/browser/memory/tab_manager_web_contents_data.h
|
| @@ -72,6 +72,13 @@ class TabManager::WebContentsData
|
| // |test_tick_clock_| for more details.
|
| void set_test_tick_clock(base::TickClock* test_tick_clock);
|
|
|
| + // Returns the auto-discardable state of the tab.
|
| + // See tab_manager.h for more information.
|
| + bool IsAutoDiscardable();
|
| +
|
| + // Sets/clears the auto-discardable state of the tab.
|
| + void SetAutoDiscardableState(bool state);
|
| +
|
| private:
|
| // Needed to access tab_data_.
|
| FRIEND_TEST_ALL_PREFIXES(TabManagerWebContentsDataTest, CopyState);
|
| @@ -99,6 +106,8 @@ class TabManager::WebContentsData
|
| base::TimeTicks last_inactive_time_;
|
| // Site Engagement score (set to -1 if not available).
|
| double engagement_score_;
|
| + // Is tab eligible for auto discarding? Defaults to true.
|
| + bool is_auto_discardable;
|
| };
|
|
|
| // Returns either the system's clock or the test clock. See |test_tick_clock_|
|
|
|