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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/drive_backend_constants.cc

Issue 371873003: [SyncFS] Implement methods to handle TrackerIDSet by FileID (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Work for nits Created 6 years, 5 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 2013 The Chromium Authors. All rights reserved. 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 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 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants. h" 5 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants. h"
6 6
7 namespace sync_file_system { 7 namespace sync_file_system {
8 namespace drive_backend { 8 namespace drive_backend {
9 9
10 const char kSyncRootFolderTitle[] = "Chrome Syncable FileSystem"; 10 const char kSyncRootFolderTitle[] = "Chrome Syncable FileSystem";
11 const char kSyncRootFolderTitleDev[] = "Chrome Syncable FileSystem Dev"; 11 const char kSyncRootFolderTitleDev[] = "Chrome Syncable FileSystem Dev";
12 const char kMimeTypeOctetStream[] = "application/octet-stream"; 12 const char kMimeTypeOctetStream[] = "application/octet-stream";
13 13
14 const base::FilePath::CharType kDatabaseName[] = 14 const base::FilePath::CharType kDatabaseName[] =
15 FILE_PATH_LITERAL("DriveMetadata_v2"); 15 FILE_PATH_LITERAL("DriveMetadata_v2");
16 16
17 const char kDatabaseVersionKey[] = "VERSION"; 17 const char kDatabaseVersionKey[] = "VERSION";
18 const int64 kCurrentDatabaseVersion = 3; 18 const int64 kCurrentDatabaseVersion = 3;
19 const char kServiceMetadataKey[] = "SERVICE"; 19 const char kServiceMetadataKey[] = "SERVICE";
20 const char kFileMetadataKeyPrefix[] = "FILE: "; 20 const char kFileMetadataKeyPrefix[] = "FILE: ";
21 const char kFileTrackerKeyPrefix[] = "TRACKER: "; 21 const char kFileTrackerKeyPrefix[] = "TRACKER: ";
22 22
23 const char kAppRootIDByAppIDKeyPrefix[] = "APP_ROOT: "; 23 const char kAppRootIDByAppIDKeyPrefix[] = "APP_ROOT: ";
24 const char kActiveIDByFileIDKeyPrefix[] = "ACTIVE_FILE: ";
25 const char kTrackerIDByFileIDKeyPrefix[] = "TRACKER_FILE: ";
26 const char kMultiTrackerByFileIDKeyPrefix[] = "MULTI_FILE: ";
24 const char kDirtyIDKeyPrefix[] = "DIRTY: "; 27 const char kDirtyIDKeyPrefix[] = "DIRTY: ";
25 const char kDemotedDirtyIDKeyPrefix[] = "DEMOTED_DIRTY: "; 28 const char kDemotedDirtyIDKeyPrefix[] = "DEMOTED_DIRTY: ";
26 29
27 const int kMaxRetry = 5; 30 const int kMaxRetry = 5;
28 const int64 kListChangesRetryDelaySeconds = 60 * 60; 31 const int64 kListChangesRetryDelaySeconds = 60 * 60;
29 32
30 const int64 kInvalidTrackerID = 0; 33 const int64 kInvalidTrackerID = 0;
31 34
32 } // namespace drive_backend 35 } // namespace drive_backend
33 } // namespace sync_file_system 36 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698