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

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

Issue 18591004: [SyncFS] Implement MetadataDatabase initialization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: +test verification Created 7 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 | Annotate | Revision Log
OLDNEW
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 KIND_UNSUPPORTED = 0; 14 KIND_UNSUPPORTED = 0;
15 KIND_FILE = 1; 15 KIND_FILE = 1;
16 KIND_FOLDER = 2; 16 KIND_FOLDER = 2;
17 } 17 }
18 18
19 message ServiceMetadata { 19 message ServiceMetadata {
20 optional int64 largest_change_id = 1 [default = 0]; 20 optional int64 largest_change_id = 1;
21 optional string sync_root_folder_id = 2; 21 optional string sync_root_folder_id = 2;
22 } 22 }
23 23
24 message DriveFileMetadata { 24 message DriveFileMetadata {
25 // File ID of the remote file/folder which the DriveFileMetadata tracks. 25 // File ID of the remote file/folder which the DriveFileMetadata tracks.
26 required string file_id = 1; 26 required string file_id = 1;
27 required string parent_folder_id = 2; 27 required string parent_folder_id = 2;
28 28
29 optional string app_id = 3; 29 optional string app_id = 3;
30 optional bool is_app_root = 4; 30 optional bool is_app_root = 4;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // True if the DriveFileMetadata is active. 62 // True if the DriveFileMetadata is active.
63 // Remote file content update should only be applied for active 63 // Remote file content update should only be applied for active
64 // DriveFileMetadata. 64 // DriveFileMetadata.
65 // Active DriveFileMetadata must have a unique title under its parent. 65 // Active DriveFileMetadata must have a unique title under its parent.
66 optional bool active = 8; 66 optional bool active = 8;
67 67
68 // Valid only for folders. 68 // Valid only for folders.
69 // True indicates the folder contents has not yet been fetched. 69 // True indicates the folder contents has not yet been fetched.
70 optional bool needs_folder_listing = 9; 70 optional bool needs_folder_listing = 9;
71 } 71 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698