drive_backend_constants.cc revision 116680a4aac90f2aa7413d9095a592090648e557
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. 4 5#include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.h" 6 7namespace sync_file_system { 8namespace drive_backend { 9 10const char kSyncRootFolderTitle[] = "Chrome Syncable FileSystem"; 11const char kSyncRootFolderTitleDev[] = "Chrome Syncable FileSystem Dev"; 12const char kMimeTypeOctetStream[] = "application/octet-stream"; 13 14const base::FilePath::CharType kDatabaseName[] = 15 FILE_PATH_LITERAL("DriveMetadata_v2"); 16 17const char kDatabaseVersionKey[] = "VERSION"; 18const int64 kCurrentDatabaseVersion = 3; 19const int64 kDatabaseOnDiskVersion = 4; 20const char kServiceMetadataKey[] = "SERVICE"; 21const char kFileMetadataKeyPrefix[] = "FILE: "; 22const char kFileTrackerKeyPrefix[] = "TRACKER: "; 23 24const char kAppRootIDByAppIDKeyPrefix[] = "APP_ROOT: "; 25const char kActiveTrackerIDByFileIDKeyPrefix[] = "ACTIVE_FILE: "; 26const char kTrackerIDByFileIDKeyPrefix[] = "TRACKER_FILE: "; 27const char kMultiTrackerByFileIDKeyPrefix[] = "MULTI_FILE: "; 28const char kActiveTrackerIDByParentAndTitleKeyPrefix[] = "ACTIVE_PATH: "; 29const char kTrackerIDByParentAndTitleKeyPrefix[] = "TRACKER_PATH: "; 30const char kMultiBackingParentAndTitleKeyPrefix[] = "MULTI_PATH: "; 31const char kDirtyIDKeyPrefix[] = "DIRTY: "; 32const char kDemotedDirtyIDKeyPrefix[] = "DEMOTED_DIRTY: "; 33 34const int kMaxRetry = 5; 35const int64 kListChangesRetryDelaySeconds = 60 * 60; 36 37const int64 kInvalidTrackerID = 0; 38 39} // namespace drive_backend 40} // namespace sync_file_system 41