| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 // |
| 5 // Offline page item protocol for storage and exchanging of offline page |
| 6 // metadata. |
| 7 |
| 8 syntax = "proto2"; |
| 9 |
| 10 option optimize_for = LITE_RUNTIME; |
| 11 option retain_unknown_fields = true; |
| 12 |
| 13 package offline_pages; |
| 14 |
| 15 message OfflinePageEntry { |
| 16 // URL of the offline page. |
| 17 optional string url = 1; |
| 18 |
| 19 // Bookmark ID of the offline page, this is deprecated in favor of the |
| 20 // more generic ClientID below. No new pages should have this field. |
| 21 optional int64 deprecated_bookmark_id = 2 [default = -1]; |
| 22 |
| 23 // Offline ID of the page. Every page entry has a unique offline_id. |
| 24 optional int64 offline_id = 10; |
| 25 |
| 26 // Version of the offline page metadata. |
| 27 optional int32 version = 3; |
| 28 |
| 29 // Path to the offline archive. |
| 30 optional string file_path = 4; |
| 31 |
| 32 // Size of the offline archive. |
| 33 optional int64 file_size = 5; |
| 34 |
| 35 // Creation time of the offline archive. |
| 36 optional int64 creation_time = 6; |
| 37 |
| 38 // Last access time of the offline archive. |
| 39 optional int64 last_access_time = 7; |
| 40 |
| 41 // Number of times that the offline archive has been accessed. |
| 42 optional int32 access_count = 8; |
| 43 |
| 44 // Flags about the state and behavior of the offline page. |
| 45 enum Flags { |
| 46 // No flag is set. |
| 47 NONE = 0; |
| 48 // Indicates that the page is marked for deletion. The real deletion will |
| 49 // occur soon, after which the undo will not be possible. |
| 50 MARKED_FOR_DELETION = 1; |
| 51 }; |
| 52 |
| 53 // Flags for the offline page. |
| 54 optional Flags flags = 9; |
| 55 |
| 56 // Information about this offline page in the namespace/id of the client that |
| 57 // requested that it be saved. Useful for reverse lookups. |
| 58 |
| 59 // Namespace (e.g. client name) to separate the (possibly identical) ids |
| 60 // from two different clients. |
| 61 optional string client_id_name_space = 11; |
| 62 // Identifier that has meaning for clients of the offline page API. |
| 63 // This is provided by consumers of the offline pages API and is opaque to us. |
| 64 optional string client_id = 12; |
| 65 } |
| OLD | NEW |