| 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;
|
|
|