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

Side by Side Diff: components/sync_driver/pref_names.cc

Issue 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. Created 4 years, 4 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
« no previous file with comments | « components/sync_driver/pref_names.h ('k') | components/sync_driver/protocol_event_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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 "build/build_config.h"
6 #include "components/sync_driver/pref_names.h"
7
8 namespace sync_driver {
9
10 namespace prefs {
11
12 // 64-bit integer serialization of the base::Time when the last sync occurred.
13 const char kSyncLastSyncedTime[] = "sync.last_synced_time";
14
15 // 64-bit integer serialization of the base::Time of the last sync poll.
16 const char kSyncLastPollTime[] = "sync.last_poll_time";
17
18 // Boolean specifying whether the user finished setting up sync at least once.
19 const char kSyncFirstSetupComplete[] = "sync.has_setup_completed";
20
21 // Boolean specifying whether sync has an auth error.
22 const char kSyncHasAuthError[] = "sync.has_auth_error";
23
24 // Boolean specifying whether to automatically sync all data types (including
25 // future ones, as they're added). If this is true, the following preferences
26 // (kSyncBookmarks, kSyncPasswords, etc.) can all be ignored.
27 const char kSyncKeepEverythingSynced[] = "sync.keep_everything_synced";
28
29 // Booleans specifying whether the user has selected to sync the following
30 // datatypes.
31 const char kSyncAppList[] = "sync.app_list";
32 const char kSyncAppNotifications[] = "sync.app_notifications";
33 const char kSyncAppSettings[] = "sync.app_settings";
34 const char kSyncApps[] = "sync.apps";
35 const char kSyncArcPackage[] = "sync.arc_package";
36 const char kSyncArticles[] = "sync.articles";
37 const char kSyncAutofillProfile[] = "sync.autofill_profile";
38 const char kSyncAutofillWallet[] = "sync.autofill_wallet";
39 const char kSyncAutofillWalletMetadata[] = "sync.autofill_wallet_metadata";
40 const char kSyncAutofill[] = "sync.autofill";
41 const char kSyncBookmarks[] = "sync.bookmarks";
42 const char kSyncDeviceInfo[] = "sync.device_info";
43 const char kSyncDictionary[] = "sync.dictionary";
44 const char kSyncExtensionSettings[] = "sync.extension_settings";
45 const char kSyncExtensions[] = "sync.extensions";
46 const char kSyncFaviconImages[] = "sync.favicon_images";
47 const char kSyncFaviconTracking[] = "sync.favicon_tracking";
48 const char kSyncHistoryDeleteDirectives[] = "sync.history_delete_directives";
49 const char kSyncPasswords[] = "sync.passwords";
50 const char kSyncPreferences[] = "sync.preferences";
51 const char kSyncPriorityPreferences[] = "sync.priority_preferences";
52 const char kSyncSearchEngines[] = "sync.search_engines";
53 const char kSyncSessions[] = "sync.sessions";
54 const char kSyncSupervisedUserSettings[] = "sync.managed_user_settings";
55 const char kSyncSupervisedUserSharedSettings[] =
56 "sync.managed_user_shared_settings";
57 const char kSyncSupervisedUserWhitelists[] =
58 "sync.managed_user_whitelists";
59 const char kSyncSupervisedUsers[] = "sync.managed_users";
60 const char kSyncSyncedNotificationAppInfo[] =
61 "sync.synced_notification_app_info";
62 const char kSyncSyncedNotifications[] = "sync.synced_notifications";
63 const char kSyncTabs[] = "sync.tabs";
64 const char kSyncThemes[] = "sync.themes";
65 const char kSyncTypedUrls[] = "sync.typed_urls";
66 const char kSyncWifiCredentials[] = "sync.wifi_credentials";
67
68 // Boolean used by enterprise configuration management in order to lock down
69 // sync.
70 const char kSyncManaged[] = "sync.managed";
71
72 // Boolean to prevent sync from automatically starting up. This is
73 // used when sync is disabled by the user via the privacy dashboard.
74 const char kSyncSuppressStart[] = "sync.suppress_start";
75
76 // A string that can be used to restore sync encryption infrastructure on
77 // startup so that the user doesn't need to provide credentials on each start.
78 const char kSyncEncryptionBootstrapToken[] = "sync.encryption_bootstrap_token";
79
80 // Same as kSyncEncryptionBootstrapToken, but derived from the keystore key,
81 // so we don't have to do a GetKey command at restart.
82 const char kSyncKeystoreEncryptionBootstrapToken[] =
83 "sync.keystore_encryption_bootstrap_token";
84
85 // The GUID session sync will use to identify this client, even across sync
86 // disable/enable events.
87 const char kSyncSessionsGUID[] = "sync.session_sync_guid";
88
89 #if defined(OS_CHROMEOS)
90 // A string that is used to store first-time sync startup after once sync is
91 // disabled. This will be refreshed every sign-in.
92 const char kSyncSpareBootstrapToken[] = "sync.spare_bootstrap_token";
93 #endif // defined(OS_CHROMEOS)
94
95 // Stores the timestamp of first sync.
96 const char kSyncFirstSyncTime[] = "sync.first_sync_time";
97
98 // Stores whether a platform specific passphrase error prompt has been shown to
99 // the user (e.g. an Android system notification). Used for out of band prompts
100 // that we only want to use once.
101 const char kSyncPassphrasePrompted[] = "sync.passphrase_prompted";
102
103 // Stores how many times received MEMORY_PRESSURE_LEVEL_CRITICAL.
104 const char kSyncMemoryPressureWarningCount[] = "sync.memory_warning_count";
105
106 // Stores if sync shutdown cleanly.
107 const char kSyncShutdownCleanly[] = "sync.shutdown_cleanly";
108
109 // Dictionary of last seen invalidation versions for each model type.
110 const char kSyncInvalidationVersions[] = "sync.invalidation_versions";
111
112 // The product version from the last restart of Chrome.
113 const char kSyncLastRunVersion[] = "sync.last_run_version";
114
115 // Flag indicating that passphrase encryption transition is in progress.
116 // Transition involves multiple steps and should continue across restarts.
117 const char kSyncPassphraseEncryptionTransitionInProgress[] =
118 "sync.passphrase_encryption_transition_in_progress";
119
120 // Updated Nigori state after user entering passphrase. This Nigori state should
121 // be persisted across restarts and passed to backend when it is initialized
122 // after directory cleanup. Preference contains base64 encoded serialized
123 // sync_pb::NigoriSpecifics.
124 const char kSyncNigoriStateForPassphraseTransition[] =
125 "sync.nigori_state_for_passphrase_transition";
126
127 } // namespace prefs
128
129 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync_driver/pref_names.h ('k') | components/sync_driver/protocol_event_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698