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

Unified Diff: chrome/browser/memory/tab_manager.h

Issue 2095413002: TabManagerDelegate: Better prioritize ARC processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync to ToT Created 4 years, 5 months 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
« no previous file with comments | « chrome/browser/chromeos/arc/arc_process_service.cc ('k') | chrome/browser/memory/tab_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/memory/tab_manager.h
diff --git a/chrome/browser/memory/tab_manager.h b/chrome/browser/memory/tab_manager.h
index 53793adef8ee733b2b2560f9576f05c211578df4..0f750d35d12d009e6dbdf756a5c28a84ff8de781 100644
--- a/chrome/browser/memory/tab_manager.h
+++ b/chrome/browser/memory/tab_manager.h
@@ -124,7 +124,6 @@ class TabManager : public TabStripModelObserver {
// thread.
TabStatsList GetUnsortedTabStats();
- // Add/remove observers.
void AddObserver(TabManagerObserver* observer);
void RemoveObserver(TabManagerObserver* observer);
@@ -138,6 +137,10 @@ class TabManager : public TabStripModelObserver {
// Sets/clears the auto-discardable state of the tab.
void SetTabAutoDiscardableState(content::WebContents* contents, bool state);
+ // Returns true if |first| is considered less desirable to be killed than
+ // |second|.
+ static bool CompareTabStats(const TabStats& first, const TabStats& second);
+
private:
FRIEND_TEST_ALL_PREFIXES(TabManagerTest, AutoDiscardable);
FRIEND_TEST_ALL_PREFIXES(TabManagerTest, CanOnlyDiscardOnce);
@@ -260,10 +263,6 @@ class TabManager : public TabStripModelObserver {
// creating one if needed.
WebContentsData* GetWebContentsData(content::WebContents* contents) const;
- // Returns true if |first| is considered less desirable to be killed than
- // |second|.
- static bool CompareTabStats(TabStats first, TabStats second);
-
// Returns either the system's clock or the test clock. See |test_tick_clock_|
// for more details.
base::TimeTicks NowTicks() const;
« no previous file with comments | « chrome/browser/chromeos/arc/arc_process_service.cc ('k') | chrome/browser/memory/tab_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698