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

Side by Side Diff: components/drive/drive.proto

Issue 1243853002: Move chrome/browser/chromeos/drive/drive.proto into components/drive (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 unified diff | Download patch
« no previous file with comments | « components/drive/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « components/drive/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698