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

Side by Side Diff: chrome/browser/sync_file_system/sync_file_system.proto

Issue 13929012: SyncFS: Add resource type field into DriveMetadata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/sync_file_system/drive_file_sync_service.cc ('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 Syncable FileSystem. 5 // Protocol buffer definitions for 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; 11 package sync_file_system;
12 12
13 message DriveMetadata { 13 message DriveMetadata {
14 required string resource_id = 1; 14 required string resource_id = 1;
15 required string md5_checksum = 2; 15 required string md5_checksum = 2;
16 required bool conflicted = 3; 16 required bool conflicted = 3;
17 17
18 // When true, indicates that the remote file identified by |resource_id| 18 // When true, indicates that the remote file identified by |resource_id|
19 // should be fetched for solving the conflict (resolve-to-remote resolution). 19 // should be fetched for solving the conflict (resolve-to-remote resolution).
20 required bool to_be_fetched = 4; 20 required bool to_be_fetched = 4;
21
22 enum ResourceType {
23 RESOURCE_TYPE_FILE = 0;
24 RESOURCE_TYPE_FOLDER = 1;
25 }
26
27 optional ResourceType type = 5 [default = RESOURCE_TYPE_FILE];
21 } 28 }
OLDNEW
« no previous file with comments | « chrome/browser/sync_file_system/drive_file_sync_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698