Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / sync_file_system / drive_backend / drive_backend_constants.cc
blob8c96289346232bf6c6eb2185618c94cae5c3b0fc
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
3 // found in the LICENSE file.
5 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.h"
7 namespace sync_file_system {
8 namespace drive_backend {
10 const char kSyncRootFolderTitle[] = "Chrome Syncable FileSystem";
11 const char kMimeTypeOctetStream[] = "application/octet-stream";
13 const base::FilePath::CharType kDatabaseName[] =
14 FILE_PATH_LITERAL("DriveMetadata_v2");
16 const char kDatabaseVersionKey[] = "VERSION";
17 const int64 kCurrentDatabaseVersion = 3;
18 const int64 kDatabaseOnDiskVersion = 4;
19 const char kServiceMetadataKey[] = "SERVICE";
20 const char kFileMetadataKeyPrefix[] = "FILE: ";
21 const char kFileTrackerKeyPrefix[] = "TRACKER: ";
22 const char kLastValidationTimeKey[] = "LAST_VALID";
24 const char kAppRootIDByAppIDKeyPrefix[] = "APP_ROOT: ";
25 const char kActiveTrackerIDByFileIDKeyPrefix[] = "ACTIVE_FILE: ";
26 const char kTrackerIDByFileIDKeyPrefix[] = "TRACKER_FILE: ";
27 const char kMultiTrackerByFileIDKeyPrefix[] = "MULTI_FILE: ";
28 const char kActiveTrackerIDByParentAndTitleKeyPrefix[] = "ACTIVE_PATH: ";
29 const char kTrackerIDByParentAndTitleKeyPrefix[] = "TRACKER_PATH: ";
30 const char kMultiBackingParentAndTitleKeyPrefix[] = "MULTI_PATH: ";
31 const char kDirtyIDKeyPrefix[] = "DIRTY: ";
32 const char kDemotedDirtyIDKeyPrefix[] = "DEMOTED_DIRTY: ";
34 const int kMaxRetry = 5;
35 const int64 kListChangesRetryDelaySeconds = 60 * 60;
37 const int64 kInvalidTrackerID = 0;
39 } // namespace drive_backend
40 } // namespace sync_file_system