OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Offline page item protocol for storage and exchanging of offline page | 5 // Offline page item protocol for storage and exchanging of offline page |
6 // metadata. | 6 // metadata. |
7 | 7 |
8 syntax = "proto2"; | 8 syntax = "proto2"; |
9 | 9 |
10 option optimize_for = LITE_RUNTIME; | 10 option optimize_for = LITE_RUNTIME; |
(...skipping 18 matching lines...) Expand all Loading... |
29 optional int64 file_size = 5; | 29 optional int64 file_size = 5; |
30 | 30 |
31 // Creation time of the offline archive. | 31 // Creation time of the offline archive. |
32 optional int64 creation_time = 6; | 32 optional int64 creation_time = 6; |
33 | 33 |
34 // Last access time of the offline archive. | 34 // Last access time of the offline archive. |
35 optional int64 last_access_time = 7; | 35 optional int64 last_access_time = 7; |
36 | 36 |
37 // Number of times that the offline archive has been accessed. | 37 // Number of times that the offline archive has been accessed. |
38 optional int32 access_count = 8; | 38 optional int32 access_count = 8; |
| 39 |
| 40 // Flags about the state and behavior of the offline page. |
| 41 enum Flags { |
| 42 // No flag is set. |
| 43 NONE = 0; |
| 44 // Indicates that the page is marked for deletion. The real deletion will |
| 45 // occur soon, after which the undo will not be possible. |
| 46 MARKED_FOR_DELETION = 1; |
| 47 }; |
| 48 |
| 49 // Flags for the offline page. |
| 50 optional Flags flags = 9; |
39 } | 51 } |
OLD | NEW |