OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Protocol buffer definitions for representing Drive files and directories, | 5 // Protocol buffer definitions for representing Drive files and directories, |
6 // and serializing them for the resource metadata database. | 6 // and serializing them for the resource metadata database. |
7 | 7 |
8 syntax = "proto2"; | 8 syntax = "proto2"; |
9 | 9 |
10 option optimize_for = LITE_RUNTIME; | 10 option optimize_for = LITE_RUNTIME; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 optional bool shared = 17; | 118 optional bool shared = 17; |
119 | 119 |
120 // File specific information, such as MD5. | 120 // File specific information, such as MD5. |
121 optional FileSpecificInfo file_specific_info = 9; | 121 optional FileSpecificInfo file_specific_info = 9; |
122 | 122 |
123 // Directory specific information, such as changestamp. | 123 // Directory specific information, such as changestamp. |
124 optional DirectorySpecificInfo directory_specific_info = 13; | 124 optional DirectorySpecificInfo directory_specific_info = 13; |
125 | 125 |
126 // Used to remember whether this entry is edited locally or not. | 126 // Used to remember whether this entry is edited locally or not. |
127 enum EditState { | 127 enum EditState { |
128 CLEAN = 0; // No local edit. | 128 CLEAN = 0; // No local edit. |
129 DIRTY = 1; // Edited locally. | 129 DIRTY = 1; // Edited locally. |
130 SYNCING = 2; // Local change is being synced to the server. | 130 SYNCING = 2; // Local change is being synced to the server. |
131 } | 131 } |
132 | 132 |
133 // Indicates whether this entry's metadata is edited locally or not. | 133 // Indicates whether this entry's metadata is edited locally or not. |
134 optional EditState metadata_edit_state = 16; | 134 optional EditState metadata_edit_state = 16; |
135 | 135 |
136 // The time of the last modification. | 136 // The time of the last modification. |
137 optional int64 modification_date = 18; | 137 optional int64 modification_date = 18; |
138 | 138 |
139 // List of new properties which are not synced yet via Drive API. Note, that | 139 // List of new properties which are not synced yet via Drive API. Note, that |
(...skipping 21 matching lines...) Expand all Loading... |
161 | 161 |
162 // True if the file is pinned (i.e. available offline). | 162 // True if the file is pinned (i.e. available offline). |
163 optional bool is_pinned = 3; | 163 optional bool is_pinned = 3; |
164 | 164 |
165 // True if the file is dirty (i.e. modified locally). | 165 // True if the file is dirty (i.e. modified locally). |
166 optional bool is_dirty = 4; | 166 optional bool is_dirty = 4; |
167 | 167 |
168 // When adding a new state, be sure to update TestFileCacheState and test | 168 // When adding a new state, be sure to update TestFileCacheState and test |
169 // functions defined in test_util.cc. | 169 // functions defined in test_util.cc. |
170 } | 170 } |
OLD | NEW |