pref_names.cc revision 46d4c2bc3267f3f028f39e7e311b0f89aba2e4fd
1// Copyright 2014 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 "components/sync_driver/pref_names.h"
6
7namespace sync_driver {
8
9namespace prefs {
10
11// Set to true when enhanced bookmarks experiment is enabled via Chrome sync.
12const char kEnhancedBookmarksExperimentEnabled[] = "enhanced_bookmarks_enabled";
13
14// Enhanced bookmarks extension id passed via Chrome sync.
15const char kEnhancedBookmarksExtensionId[] = "enhanced_bookmarks_extension_id";
16
17// 64-bit integer serialization of the base::Time when the last sync occurred.
18const char kSyncLastSyncedTime[] = "sync.last_synced_time";
19
20// Boolean specifying whether the user finished setting up sync.
21const char kSyncHasSetupCompleted[] = "sync.has_setup_completed";
22
23// Boolean specifying whether sync has an auth error.
24const char kSyncHasAuthError[] = "sync.has_auth_error";
25
26// Boolean specifying whether to automatically sync all data types (including
27// future ones, as they're added).  If this is true, the following preferences
28// (kSyncBookmarks, kSyncPasswords, etc.) can all be ignored.
29const char kSyncKeepEverythingSynced[] = "sync.keep_everything_synced";
30
31// Booleans specifying whether the user has selected to sync the following
32// datatypes.
33const char kSyncAppList[] = "sync.app_list";
34const char kSyncAppNotifications[] = "sync.app_notifications";
35const char kSyncAppSettings[] = "sync.app_settings";
36const char kSyncApps[] = "sync.apps";
37const char kSyncAutofillProfile[] = "sync.autofill_profile";
38const char kSyncAutofill[] = "sync.autofill";
39const char kSyncBookmarks[] = "sync.bookmarks";
40const char kSyncDictionary[] = "sync.dictionary";
41const char kSyncExtensionSettings[] = "sync.extension_settings";
42const char kSyncExtensions[] = "sync.extensions";
43const char kSyncFaviconImages[] = "sync.favicon_images";
44const char kSyncFaviconTracking[] = "sync.favicon_tracking";
45const char kSyncHistoryDeleteDirectives[] = "sync.history_delete_directives";
46const char kSyncManagedUserSettings[] = "sync.managed_user_settings";
47const char kSyncManagedUserSharedSettings[] =
48    "sync.managed_user_shared_settings";
49const char kSyncManagedUsers[] = "sync.managed_users";
50const char kSyncArticles[] = "sync.articles";
51const char kSyncPasswords[] = "sync.passwords";
52const char kSyncPreferences[] = "sync.preferences";
53const char kSyncPriorityPreferences[] = "sync.priority_preferences";
54const char kSyncSearchEngines[] = "sync.search_engines";
55const char kSyncSessions[] = "sync.sessions";
56const char kSyncSyncedNotificationAppInfo[] =
57    "sync.synced_notification_app_info";
58const char kSyncSyncedNotifications[] = "sync.synced_notifications";
59const char kSyncTabs[] = "sync.tabs";
60const char kSyncThemes[] = "sync.themes";
61const char kSyncTypedUrls[] = "sync.typed_urls";
62
63// Boolean used by enterprise configuration management in order to lock down
64// sync.
65const char kSyncManaged[] = "sync.managed";
66
67// Boolean to prevent sync from automatically starting up.  This is
68// used when sync is disabled by the user via the privacy dashboard.
69const char kSyncSuppressStart[] = "sync.suppress_start";
70
71// A string that can be used to restore sync encryption infrastructure on
72// startup so that the user doesn't need to provide credentials on each start.
73const char kSyncEncryptionBootstrapToken[] = "sync.encryption_bootstrap_token";
74
75// Same as kSyncEncryptionBootstrapToken, but derived from the keystore key,
76// so we don't have to do a GetKey command at restart.
77const char kSyncKeystoreEncryptionBootstrapToken[] =
78    "sync.keystore_encryption_bootstrap_token";
79
80// Boolean tracking whether the user chose to specify a secondary encryption
81// passphrase.
82const char kSyncUsingSecondaryPassphrase[] = "sync.using_secondary_passphrase";
83
84// List of the currently acknowledged set of sync types, used to figure out
85// if a new sync type has rolled out so we can notify the user.
86const char kSyncAcknowledgedSyncTypes[] = "sync.acknowledged_types";
87
88// The GUID session sync will use to identify this client, even across sync
89// disable/enable events.
90const char kSyncSessionsGUID[] = "sync.session_sync_guid";
91
92#if defined(OS_CHROMEOS)
93// A string that is used to store first-time sync startup after once sync is
94// disabled. This will be refreshed every sign-in.
95const char kSyncSpareBootstrapToken[] = "sync.spare_bootstrap_token";
96#endif  // defined(OS_CHROMEOS)
97
98// Stores how many times to try rollback before giving up.
99const char kSyncRemainingRollbackTries[] = "sync.remaining_rollback_tries";
100
101// Stores the timestamp of first sync.
102const char kSyncFirstSyncTime[] = "sync.first_sync_time";
103
104}  // namespace prefs
105
106}  // namespace sync_driver
107