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

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

Issue 15663006: drive: Merge 'persistent' and 'tmp' directories to 'files' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 representing Drive files and directories, 5 // Protocol buffer definitions for representing Drive files and directories,
6 // and serializing them for the resource metadata database. 6 // and serializing them for the resource metadata database.
7 7
8 syntax = "proto2"; 8 syntax = "proto2";
9 9
10 option optimize_for = LITE_RUNTIME; 10 option optimize_for = LITE_RUNTIME;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // Container for the header part of ResourceMetadata. 103 // Container for the header part of ResourceMetadata.
104 message ResourceMetadataHeader { 104 message ResourceMetadataHeader {
105 // Monotonically increasing version number, which is changed when 105 // Monotonically increasing version number, which is changed when
106 // incompatible change is made to the DB format. kDBVersion in 106 // incompatible change is made to the DB format. kDBVersion in
107 // drive_resource_metadata_storage.h defines the current version. 107 // drive_resource_metadata_storage.h defines the current version.
108 optional int32 version = 1; 108 optional int32 version = 1;
109 optional int64 largest_changestamp = 2; 109 optional int64 largest_changestamp = 2;
110 } 110 }
111 111
112 // Message to store information of an existing cache file. 112 // Message to store information of an existing cache file.
113 // Cache files are stored in 'tmp' or 'persistent' directory under the
114 // root cache directory. See FileCache::GetCacheRootPath().
115 message FileCacheEntry { 113 message FileCacheEntry {
116 // MD5 of the cache file. "local" if the file is locally modified. 114 // MD5 of the cache file. "local" if the file is locally modified.
117 optional string md5 = 1; 115 optional string md5 = 1;
118 116
119 // True if the file is present locally. 117 // True if the file is present locally.
120 optional bool is_present = 2; 118 optional bool is_present = 2;
121 119
122 // True if the file is pinned (i.e. available offline). 120 // True if the file is pinned (i.e. available offline).
123 optional bool is_pinned = 3; 121 optional bool is_pinned = 3;
124 122
125 // True if the file is dirty (i.e. modified locally). 123 // True if the file is dirty (i.e. modified locally).
126 optional bool is_dirty = 4; 124 optional bool is_dirty = 4;
127 125
128 // True if the file is a mounted archive file. 126 // True if the file is a mounted archive file.
129 optional bool is_mounted = 5; 127 optional bool is_mounted = 5;
130 128
129 // TODO(hashimoto): Remove this block after DB merge. crbug.com/234487
131 // True if the file is in the persistent directory. 130 // True if the file is in the persistent directory.
132 optional bool is_persistent = 6; 131 // optional bool is_persistent = 6;
133 132
134 // When adding a new state, be sure to update TestFileCacheState and test 133 // When adding a new state, be sure to update TestFileCacheState and test
135 // functions defined in drive_test_util.cc. 134 // functions defined in drive_test_util.cc.
136 } 135 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/file_cache.h » ('j') | chrome/browser/chromeos/drive/file_cache.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698