Index: content/public/browser/web_contents.h |
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h |
index d5ed42f6d334f41ecffa91cfae4295cad4a7a23f..643e993b2b5d7fdfd88d0eacb78fc29f3454127b 100644 |
--- a/content/public/browser/web_contents.h |
+++ b/content/public/browser/web_contents.h |
@@ -351,9 +351,12 @@ class WebContents : public PageNavigator, |
// 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 WebContent was made active (either when it |
+ // was created or shown with WasShown()). If the tab has been restored from a |
jam
2015/05/18 15:31:37
undo this comment change. content doesn't know abo
Georges Khalil
2015/05/19 19:32:16
Done.
|
+ // previous session, this will return the last time it was made active in the |
+ // previous session instead of the tab creation time. |
virtual base::Time GetLastActiveTime() const = 0; |
+ virtual void SetLastActiveTime(base::Time last_active_time) = 0; |
// Invoked when the WebContents becomes shown/hidden. |
virtual void WasShown() = 0; |