1 // Copyright 2014 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINE_TYPE_H_
6 #define COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINE_TYPE_H_
8 // Enum to record the user's default search engine choice in UMA.
9 // These values are persisted to logs. Entries should not be renumbered and
10 // numeric values should never be reused.
12 // A Java counterpart will be generated for this enum.
13 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.search_engines
14 enum SearchEngineType {
15 // Prepopulated engines.
16 SEARCH_ENGINE_UNKNOWN = -1,
17 SEARCH_ENGINE_OTHER = 0, // At the top in case of future list changes.
18 SEARCH_ENGINE_AOL = 1,
19 SEARCH_ENGINE_ASK = 2,
20 SEARCH_ENGINE_ATLAS = 3,
21 SEARCH_ENGINE_AVG = 4,
22 SEARCH_ENGINE_BAIDU = 5,
23 SEARCH_ENGINE_BABYLON = 6,
24 SEARCH_ENGINE_BING = 7,
25 SEARCH_ENGINE_CONDUIT = 8,
26 SEARCH_ENGINE_DAUM = 9,
27 SEARCH_ENGINE_DELFI = 10,
28 SEARCH_ENGINE_DELTA = 11,
29 SEARCH_ENGINE_FUNMOODS = 12,
30 SEARCH_ENGINE_GOO = 13,
31 SEARCH_ENGINE_GOOGLE = 14,
32 SEARCH_ENGINE_IMINENT = 15,
33 SEARCH_ENGINE_IMESH = 16,
34 SEARCH_ENGINE_IN = 17,
35 SEARCH_ENGINE_INCREDIBAR = 18,
36 SEARCH_ENGINE_KVASIR = 19,
37 SEARCH_ENGINE_LIBERO = 20,
38 SEARCH_ENGINE_MAILRU = 21,
39 SEARCH_ENGINE_NAJDI = 22,
40 SEARCH_ENGINE_NATE = 23,
41 SEARCH_ENGINE_NAVER = 24,
42 SEARCH_ENGINE_NETI = 25,
43 SEARCH_ENGINE_NIGMA = 26,
44 SEARCH_ENGINE_OK = 27,
45 SEARCH_ENGINE_ONET = 28,
46 SEARCH_ENGINE_RAMBLER = 29,
47 SEARCH_ENGINE_SAPO = 30,
48 SEARCH_ENGINE_SEARCHNU = 31,
49 SEARCH_ENGINE_SEARCH_RESULTS = 32,
50 SEARCH_ENGINE_SEZNAM = 33,
51 SEARCH_ENGINE_SNAPDO = 34,
52 SEARCH_ENGINE_SOFTONIC = 35,
53 SEARCH_ENGINE_SOGOU = 36,
54 SEARCH_ENGINE_SOSO = 37,
55 SEARCH_ENGINE_SWEETPACKS = 38,
56 SEARCH_ENGINE_TERRA = 39,
57 SEARCH_ENGINE_TUT = 40,
58 SEARCH_ENGINE_VINDEN = 41,
59 SEARCH_ENGINE_VIRGILIO = 42,
60 SEARCH_ENGINE_WALLA = 43,
61 SEARCH_ENGINE_WP = 44,
62 SEARCH_ENGINE_YAHOO = 45,
63 SEARCH_ENGINE_YANDEX = 46,
64 SEARCH_ENGINE_ZOZNAM = 47,
65 SEARCH_ENGINE_360 = 48,
66 SEARCH_ENGINE_COCCOC = 49,
67 SEARCH_ENGINE_DUCKDUCKGO = 50,
68 SEARCH_ENGINE_PARSIJOO = 51,
69 SEARCH_ENGINE_QWANT = 52,
70 SEARCH_ENGINE_GIVERO = 53,
71 SEARCH_ENGINE_GMX = 54,
72 SEARCH_ENGINE_INFO_COM = 55,
73 SEARCH_ENGINE_METAGER = 56,
74 SEARCH_ENGINE_OCEANHERO = 57,
75 SEARCH_ENGINE_PRIVACYWALL = 58,
76 SEARCH_ENGINE_ECOSIA = 59,
77 SEARCH_ENGINE_PETALSEARCH = 60,
78 SEARCH_ENGINE_STARTER_PACK_BOOKMARKS = 61,
79 SEARCH_ENGINE_STARTER_PACK_HISTORY = 62,
80 SEARCH_ENGINE_STARTER_PACK_TABS = 63,
82 SEARCH_ENGINE_MAX // Bounding value needed for UMA histogram macro.
85 // Enum to record the type of search engine a user used in keyword mode. This
86 // should be kept aligned with the `OmniboxBuiltinEngineType` enum in enums.xml.
87 // Entries should not be renumbered and numeric values should never be reused.
88 enum BuiltinEngineType {
89 KEYWORD_MODE_NON_BUILT_IN = 0,
90 KEYWORD_MODE_PREPOPULATED_ENGINE = 1,
91 KEYWORD_MODE_STARTER_PACK_BOOKMARKS = 2,
92 KEYWORD_MODE_STARTER_PACK_HISTORY = 3,
93 KEYWORD_MODE_STARTER_PACK_TABS = 4,
95 KEYWORD_MODE_ENGINE_TYPE_MAX // Bounding value needed for UMA histogram
99 #endif // COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINE_TYPE_H_