- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / sync_file_system / sync_file_system.proto
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
3 // found in the LICENSE file.
4 //
5 // Protocol buffer definitions for Syncable FileSystem.
6
7 syntax = "proto2";
8
9 option optimize_for = LITE_RUNTIME;
10
11 package sync_file_system;
12
13 // TODO(tzik): Migrate from DriveMetadat to DriveEntryMetadata and erase this.
14 // http://crbug.com/240165
15 message DriveMetadata {
16   required string resource_id = 1;
17   required string md5_checksum = 2;
18   required bool conflicted = 3;
19
20   // When true, indicates that the remote file identified by |resource_id|
21   // should be fetched for solving the conflict (resolve-to-remote resolution).
22   required bool to_be_fetched = 4;
23
24   enum ResourceType {
25     RESOURCE_TYPE_FILE = 0;
26     RESOURCE_TYPE_FOLDER = 1;
27   }
28
29   optional ResourceType type = 5 [default = RESOURCE_TYPE_FILE];
30 }