1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_SYNC_USER_SELECTABLE_SYNC_TYPE_H_ 6 #define CHROME_BROWSER_SYNC_USER_SELECTABLE_SYNC_TYPE_H_ 7 8 namespace browser_sync { 9 namespace user_selectable_type { 10 11 // An enumeration of the sync datatypes that are explicitly exposed to the user 12 // via checkboxes in the "Advanced Sync Preferences" dialog. Used solely for the 13 // purposes of UMA histogram logging of the datatypes explicitly selected by 14 // users when sync is configured on a machine. This is a subset of the sync 15 // types listed in sync/internal_api/public/base/model_type.h. 16 // 17 // Note: New sync datatypes must be added to the end of this list. Adding them 18 // anywhere else will result in incorrect histogram logging. 19 20 // THIS ENUM IS MEANT SOLELY FOR THE PURPOSE OF HISTOGRAM LOGGING. IF YOU ARE 21 // LOOKING TO MODIFY SYNC FUNCTIONALITY AND NEED A LIST OF SYNC TYPES, USE 22 // syncer::ModelType. 23 24 enum UserSelectableSyncType { 25 BOOKMARKS = 0, 26 PREFERENCES = 1, 27 PASSWORDS = 2, 28 AUTOFILL = 3, 29 THEMES = 4, 30 TYPED_URLS = 5, 31 EXTENSIONS = 6, 32 PROXY_TABS = 7, 33 APPS = 8, 34 SYNCED_NOTIFICATIONS = 9, 35 36 // The datatypes below are implicitly synced, and are not exposed via user 37 // selectable checkboxes. 38 39 // AUTOFILL_PROFILE, 40 // NIGORI, 41 // DICTIONARY 42 // SEARCH_ENGINES, 43 // APP_SETTINGS, 44 // EXTENSION_SETTINGS, 45 // APP_NOTIFICATIONS, 46 // DEVICE_INFO, 47 // EXPERIMENTS, 48 // PRIORITY_PREFERENCES, 49 // SESSIONS, 50 // HISTORY_DELETE_DIRECTIVES, 51 // FAVICON_IMAGES, 52 // FAVICON_TRACKING, 53 54 // Number of sync datatypes exposed to the user via checboxes in the UI. 55 SELECTABLE_DATATYPE_COUNT = 10, 56 }; 57 58 } // namespace user_selectable_type 59 } // namespace browser_sync 60 61 #endif // CHROME_BROWSER_SYNC_USER_SELECTABLE_SYNC_TYPE_H_ 62