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

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

Issue 2462513002: Add Resume logic of Purge+Suspend to TabManager. (Closed)
Patch Set: Created 4 years, 2 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
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 fdbf094f5d6484b42acebc6937484e856a06a132..8f68c1239dec7c76096869da0df22681c15ff81c 100644
--- a/chrome/browser/memory/tab_manager_web_contents_data.h
+++ b/chrome/browser/memory/tab_manager_web_contents_data.h
@@ -90,6 +90,10 @@ class TabManager::WebContentsData
// MemoryCoordinator.
base::TimeTicks LastPurgeAndSuspendModifiedTime() const;
+ // Sets the timestamp of the last modified time the purge-and-suspend state
+ // of the tab was changed for testing.
+ void SetLastPurgeAndSuspendModifiedTimeForTesting(base::TimeTicks timestamp);
+
// Returns the current state of purge-and-suspend.
// TODO(tasak): remove this after PurgeAndSuspend code is moved into
// MemoryCoordinator.

Powered by Google App Engine
This is Rietveld 408576698