| Index: chrome/browser/memory/tab_manager.h
|
| diff --git a/chrome/browser/memory/tab_manager.h b/chrome/browser/memory/tab_manager.h
|
| index e681782791bfda6063401bb0f54e6c55ecca55f1..995bc3e8f9182b7e920fee5e7bd4f14aed6c65c1 100644
|
| --- a/chrome/browser/memory/tab_manager.h
|
| +++ b/chrome/browser/memory/tab_manager.h
|
| @@ -28,6 +28,7 @@
|
| #include "chrome/browser/memory/tab_stats.h"
|
| #include "chrome/browser/ui/browser_tab_strip_tracker.h"
|
| #include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
|
| +#include "content/public/browser/memory_coordinator_delegate.h"
|
|
|
| class BrowserList;
|
| class GURL;
|
| @@ -65,7 +66,8 @@ class TabManagerDelegate;
|
| // Note that the browser tests are only active for platforms that use
|
| // TabManager (CrOS only for now) and need to be adjusted accordingly if
|
| // support for new platforms is added.
|
| -class TabManager : public TabStripModelObserver {
|
| +class TabManager : public TabStripModelObserver,
|
| + public content::MemoryCoordinatorDelegate {
|
| public:
|
| // Needs to be public for DEFINE_WEB_CONTENTS_USER_DATA_KEY.
|
| class WebContentsData;
|
| @@ -147,6 +149,9 @@ class TabManager : public TabStripModelObserver {
|
| // Sets/clears the auto-discardable state of the tab.
|
| void SetTabAutoDiscardableState(content::WebContents* contents, bool state);
|
|
|
| + // MemoryCoordinatorDelegate implementation.
|
| + bool CanSuspendBackgroundedRenderer(int render_process_id) override;
|
| +
|
| // Returns true if |first| is considered less desirable to be killed than
|
| // |second|.
|
| static bool CompareTabStats(const TabStats& first, const TabStats& second);
|
|
|