search_engine_type.h 3.2 KB

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