OLD | NEW |
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 Drive files and directories. | 5 // Protocol buffer definitions for serializing Drive files and directories. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 option optimize_for = LITE_RUNTIME; | |
10 | |
11 package drive; | 9 package drive; |
12 | 10 |
13 // Represents base::PlatformFileInfo. | 11 // Represents base::PlatformFileInfo. |
14 message PlatformFileInfoProto { | 12 message PlatformFileInfoProto { |
15 optional int64 size = 1; | 13 optional int64 size = 1; |
16 optional bool is_directory = 2; | 14 optional bool is_directory = 2; |
17 optional bool is_symbolic_link = 3; | 15 optional bool is_symbolic_link = 3; |
18 optional int64 last_modified = 4; | 16 optional int64 last_modified = 4; |
19 optional int64 last_accessed = 5; | 17 optional int64 last_accessed = 5; |
20 optional int64 creation_time = 6; | 18 optional int64 creation_time = 6; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 110 |
113 // True if the file is a mounted archive file. | 111 // True if the file is a mounted archive file. |
114 optional bool is_mounted = 5; | 112 optional bool is_mounted = 5; |
115 | 113 |
116 // True if the file is in the persistent directory. | 114 // True if the file is in the persistent directory. |
117 optional bool is_persistent = 6; | 115 optional bool is_persistent = 6; |
118 | 116 |
119 // When adding a new state, be sure to update TestDriveCacheState and test | 117 // When adding a new state, be sure to update TestDriveCacheState and test |
120 // functions defined in drive_test_util.cc. | 118 // functions defined in drive_test_util.cc. |
121 } | 119 } |
OLD | NEW |