[Session restore] Add MRU logic to loading of background pages.
This patch adds the notion of last activation time to tabs and when a session restores, background tabs are loaded using MRU.
BUG=472772
Review URL: https://codereview.chromium.org/1131373003
Cr-Commit-Position: refs/heads/master@{#331189}
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index 62f09a8..86ac6751 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -351,9 +351,10 @@
// change.
virtual void NotifyNavigationStateChanged(InvalidateTypes changed_flags) = 0;
- // Get the last time that the WebContents was made active (either when it was
- // created or shown with WasShown()).
+ // Get/Set the last time that the WebContents was made active (either when it
+ // was created or shown with WasShown()).
virtual base::TimeTicks GetLastActiveTime() const = 0;
+ virtual void SetLastActiveTime(base::TimeTicks last_active_time) = 0;
// Invoked when the WebContents becomes shown/hidden.
virtual void WasShown() = 0;