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

Unified Diff: components/offline_pages/offline_page_item.h

Issue 1993953002: [Offline pages] Adding expiration capability to OfflinePageModel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing Created 4 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
« no previous file with comments | « no previous file | components/offline_pages/offline_page_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/offline_pages/offline_page_item.h
diff --git a/components/offline_pages/offline_page_item.h b/components/offline_pages/offline_page_item.h
index 7bbb48ad34980f46ef3a9df719d8c59fbf462a20..469c822212d4b9a5ecdf582c834920baebb3489b 100644
--- a/components/offline_pages/offline_page_item.h
+++ b/components/offline_pages/offline_page_item.h
@@ -55,6 +55,9 @@ struct OfflinePageItem {
// Gets a URL of the file under |file_path|.
GURL GetOfflineURL() const;
+ // Returns whether the offline page is expired.
+ bool IsExpired() const;
+
// The URL of the page.
GURL url;
// The primary key/ID for this page in offline pages internal database.
@@ -75,6 +78,8 @@ struct OfflinePageItem {
base::Time creation_time;
// The time when the offline archive was last accessed.
base::Time last_access_time;
+ // The time when the offline page was expired.
+ base::Time expiration_time;
// Number of times that the offline archive has been accessed.
int access_count;
// Flags about the state and behavior of the offline page.
« no previous file with comments | « no previous file | components/offline_pages/offline_page_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698