OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 Drive backend of Syncable FileSystem. | 5 // Protocol buffer definitions for Drive backend of Syncable FileSystem. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
10 | 10 |
11 package sync_file_system.drive_backend; | 11 package sync_file_system.drive_backend; |
12 | 12 |
13 enum FileKind { | 13 enum FileKind { |
14 FILE_KIND_UNSUPPORTED = 0; | 14 FILE_KIND_UNSUPPORTED = 0; |
15 FILE_KIND_FILE = 1; | 15 FILE_KIND_FILE = 1; |
16 FILE_KIND_FOLDER = 2; | 16 FILE_KIND_FOLDER = 2; |
17 } | 17 } |
18 | 18 |
19 enum TrackerKind { | 19 enum TrackerKind { |
20 TRACKER_KIND_REGULAR = 0; | 20 TRACKER_KIND_REGULAR = 0; |
21 | |
22 // TODO(tzik): Add TRACKER_KIND_DISABLED_REGULAR and keep all descendants of | |
23 // disabled app-root disabled. Disabled trackers should be excluded from | |
24 // dirty_trackers_ and the sync-engine should not update them. | |
21 TRACKER_KIND_APP_ROOT = 1; | 25 TRACKER_KIND_APP_ROOT = 1; |
22 TRACKER_KIND_DISABLED_APP_ROOT = 2; | 26 TRACKER_KIND_DISABLED_APP_ROOT = 2; |
23 } | 27 } |
24 | 28 |
25 message ServiceMetadata { | 29 message ServiceMetadata { |
26 optional int64 largest_change_id = 1; | 30 optional int64 largest_change_id = 1; |
27 optional int64 sync_root_tracker_id = 2; | 31 optional int64 sync_root_tracker_id = 2; |
28 | 32 |
29 // The sequence number of FileTrackers. Must be positive. | 33 // The sequence number of FileTrackers. Must be positive. |
30 optional int64 next_tracker_id = 3; | 34 optional int64 next_tracker_id = 3; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
75 optional bool dirty = 7; | 79 optional bool dirty = 7; |
76 | 80 |
77 // True if the FileTracker is active. | 81 // True if the FileTracker is active. |
78 // Remote file modification should only be applied to active trackers. | 82 // Remote file modification should only be applied to active trackers. |
79 // Active FileTracker must have a unique title under its parent. | 83 // Active FileTracker must have a unique title under its parent. |
80 optional bool active = 8; | 84 optional bool active = 8; |
81 | 85 |
82 // Valid only for folders. | 86 // Valid only for folders. |
83 // True if the folder contents have not yet been fetched. | 87 // True if the folder contents have not yet been fetched. |
84 optional bool needs_folder_listing = 9; | 88 optional bool needs_folder_listing = 9; |
89 | |
90 // True when the tracker has both remote change and local change. | |
91 // SyncEngine should process this change after all local change was processed. | |
92 optional bool priority_low = 10; | |
kinuko
2013/08/27 13:20:19
Not used in this CL yet?
This name usually does n
tzik
2013/08/30 05:51:57
Reverted.
It's just a merge failure in my local re
| |
85 } | 93 } |
OLD | NEW |