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

Unified Diff: components/offline_items_collection/core/offline_item.h

Issue 2771803004: Glue OfflineContentProvider to the download service (Closed)
Patch Set: Fixing test failure Created 3 years, 9 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: components/offline_items_collection/core/offline_item.h
diff --git a/components/offline_items_collection/core/offline_item.h b/components/offline_items_collection/core/offline_item.h
index a06e8c7d6537f6af115519d64eea946d90132bfe..5c98e94cd2be1a9a577ad37c98d3ac722eeb0ad6 100644
--- a/components/offline_items_collection/core/offline_item.h
+++ b/components/offline_items_collection/core/offline_item.h
@@ -70,6 +70,10 @@ struct OfflineItem {
// items as well as for determining which default icon to use.
OfflineItemFilter filter;
+ // Whether or not this item is transient. Transient items won't show up in
+ // persistent UI spaces and will only show up as notifications.
+ bool is_transient;
+
// TODO(dtrainor): Build out custom per-item icon support.
// Content Metadata.
@@ -86,6 +90,9 @@ struct OfflineItem {
// The last time the underlying offline content was accessed.
base::Time last_accessed_time;
+ // Whether or not this item can be opened after it is done being downloaded.
+ bool is_openable;
+
// Request Metadata.
// ---------------------------------------------------------------------------
// The URL of the top level frame at the time the content was offlined.
@@ -106,6 +113,10 @@ struct OfflineItem {
// paused or interrupted.
bool is_resumable;
+ // Whether or not this OfflineItem can be downloaded using a metered
+ // connection.
+ bool allow_metered;
+
// The current amount of bytes received for this item. This field is not used
// if |state| is COMPLETE.
int64_t received_bytes;

Powered by Google App Engine
This is Rietveld 408576698