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

Unified Diff: chrome/browser/sessions/session_restore_delegate.h

Issue 1131373003: [Session restore] Add MRU logic to loading of background pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/sessions/session_restore_delegate.h
diff --git a/chrome/browser/sessions/session_restore_delegate.h b/chrome/browser/sessions/session_restore_delegate.h
index 63e40eee210d704ca7d36d75915e4dabbf15cf72..0484c527a2e868fd9544f3118821a74fc616409e 100644
--- a/chrome/browser/sessions/session_restore_delegate.h
+++ b/chrome/browser/sessions/session_restore_delegate.h
@@ -22,7 +22,8 @@ class SessionRestoreDelegate {
RestoredTab(content::WebContents* contents,
bool is_active,
bool is_app,
- bool is_pinned);
+ bool is_pinned,
+ base::TimeTicks last_activation_time);
sky 2015/05/12 21:25:30 If you push this to the WebContents, do you need i
Georges Khalil 2015/05/15 16:55:30 Good catch. Pushing to WebContents was added at t
bool operator<(const RestoredTab& right) const;
@@ -31,6 +32,9 @@ class SessionRestoreDelegate {
bool is_app() const { return is_app_; }
bool is_internal_page() const { return is_internal_page_; }
bool is_pinned() const { return is_pinned_; }
+ base::TimeTicks last_activation_time() const {
+ return last_activation_time_;
+ }
private:
content::WebContents* contents_;
@@ -38,6 +42,7 @@ class SessionRestoreDelegate {
bool is_app_; // Browser window is an app.
bool is_internal_page_; // Internal web UI page, like NTP or Settings.
bool is_pinned_;
+ base::TimeTicks last_activation_time_;
};
static void RestoreTabs(const std::vector<RestoredTab>& tabs,

Powered by Google App Engine
This is Rietveld 408576698