Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / sync / user_selectable_sync_type.h
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_LIST,
44   // APP_SETTINGS,
45   // EXTENSION_SETTINGS,
46   // APP_NOTIFICATIONS,
47   // DEVICE_INFO,
48   // EXPERIMENTS,
49   // PRIORITY_PREFERENCES,
50   // SESSIONS,
51   // HISTORY_DELETE_DIRECTIVES,
52   // FAVICON_IMAGES,
53   // FAVICON_TRACKING,
54   // ARTICLE,
55
56   // Number of sync datatypes exposed to the user via checboxes in the UI.
57   SELECTABLE_DATATYPE_COUNT = 10,
58 };
59
60 }  // namespace user_selectable_type
61 }  // namespace browser_sync
62
63 #endif  // CHROME_BROWSER_SYNC_USER_SELECTABLE_SYNC_TYPE_H_