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