Chromium Code Reviews| Index: chrome/browser/memory/tab_manager.h |
| diff --git a/chrome/browser/memory/tab_manager.h b/chrome/browser/memory/tab_manager.h |
| index 1196c08dcdf5d62b2ae05634b0ef3f88caa58292..6962e55a84af34a4fe9c7ee7840421f572552f81 100644 |
| --- a/chrome/browser/memory/tab_manager.h |
| +++ b/chrome/browser/memory/tab_manager.h |
| @@ -159,6 +159,9 @@ class TabManager : public TabStripModelObserver { |
| static int64_t IdFromWebContents(content::WebContents* web_contents); |
| private: |
| + FRIEND_TEST_ALL_PREFIXES(TabManagerTest, |
| + ActivateTabResetPurgeAndSuspendState); |
| + FRIEND_TEST_ALL_PREFIXES(TabManagerTest, NextPurgeAndSuspendState); |
| FRIEND_TEST_ALL_PREFIXES(TabManagerTest, AutoDiscardable); |
| FRIEND_TEST_ALL_PREFIXES(TabManagerTest, CanOnlyDiscardOnce); |
| FRIEND_TEST_ALL_PREFIXES(TabManagerTest, ChildProcessNotifications); |
| @@ -270,6 +273,15 @@ class TabManager : public TabStripModelObserver { |
| RESUMED, |
| SUSPENDED, |
| }; |
| + // Returns WebContents whose contents id matches the given tab-contents-id. |
| + content::WebContents* GetWebContentsByContentsId(int64_t tab_contents_id); |
|
haraken
2016/10/28 06:25:48
GetWebContentsById ?
tasak
2016/10/28 06:53:43
Done.
|
| + |
| + // Determines whether to update purge-and-suspend state and returns the |
| + // next state. |
|
haraken
2016/10/28 06:25:48
Returns the next state of the purge and suspend.
tasak
2016/10/28 06:53:43
Done.
|
| + PurgeAndSuspendState NextPurgeAndSuspendState( |
|
haraken
2016/10/28 06:25:48
GetNextStateOfPurgeAndSuspend ?
tasak
2016/10/28 06:53:43
Done.
|
| + content::WebContents* content, |
| + const base::TimeTicks& current_time, |
| + const base::TimeDelta& purge_and_suspend_threshold) const; |
| // Purges and suspends renderers in backgrounded tabs. |
| void PurgeAndSuspendBackgroundedTabs(); |