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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata.proto

Issue 10258004: Parent/child fixes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 8 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
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 serializing GData files and directories. 5 // Protocol buffer definitions for serializing GData files and directories.
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 gdata; 11 package gdata;
12 12
13 // Represents base::PlatformFileInfo. 13 // Represents base::PlatformFileInfo.
14 message PlatformFileInfoProto { 14 message PlatformFileInfoProto {
15 optional int64 size = 1; 15 optional int64 size = 1;
16 optional bool is_directory = 2; 16 optional bool is_directory = 2;
17 optional bool is_symbolic_link = 3; 17 optional bool is_symbolic_link = 3;
18 optional int64 last_modified = 4; 18 optional int64 last_modified = 4;
19 optional int64 last_accessed = 5; 19 optional int64 last_accessed = 5;
20 optional int64 creation_time = 6; 20 optional int64 creation_time = 6;
21 } 21 }
22 22
23 // Represents GDataEntry. 23 // Represents GDataEntry.
24 message GDataEntryProto { 24 message GDataEntryProto {
25 optional PlatformFileInfoProto file_info = 1; 25 optional PlatformFileInfoProto file_info = 1;
26 optional string file_name = 2;
27 optional string title = 3; 26 optional string title = 3;
28 optional string resource_id = 4; 27 optional string resource_id = 4;
29 optional string edit_url = 5; 28 optional string edit_url = 5;
30 optional string content_url = 6; 29 optional string content_url = 6;
30 optional string parent_resource_id = 7;
31 } 31 }
32 32
33 // Represents GDataFile. 33 // Represents GDataFile.
34 message GDataFileProto { 34 message GDataFileProto {
35 optional GDataEntryProto gdata_entry = 1; 35 optional GDataEntryProto gdata_entry = 1;
36 optional uint32 kind = 2; 36 optional uint32 kind = 2;
37 optional string thumbnail_url = 3; 37 optional string thumbnail_url = 3;
38 optional string alternate_url = 4; 38 optional string alternate_url = 4;
39 optional string content_mime_type = 5; 39 optional string content_mime_type = 5;
40 optional string etag = 6; 40 optional string etag = 6;
(...skipping 12 matching lines...) Expand all
53 optional string upload_url = 5; 53 optional string upload_url = 5;
54 optional uint32 origin = 6; 54 optional uint32 origin = 6;
55 repeated GDataDirectoryProto child_directories = 7; 55 repeated GDataDirectoryProto child_directories = 7;
56 repeated GDataFileProto child_files = 8; 56 repeated GDataFileProto child_files = 8;
57 } 57 }
58 // Represents GDataRootDirectory. 58 // Represents GDataRootDirectory.
59 message GDataRootDirectoryProto { 59 message GDataRootDirectoryProto {
60 optional GDataDirectoryProto gdata_directory = 1; 60 optional GDataDirectoryProto gdata_directory = 1;
61 optional int32 largest_changestamp = 2; 61 optional int32 largest_changestamp = 2;
62 } 62 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_db_unittest.cc » ('j') | chrome/browser/chromeos/gdata/gdata_files.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698