Revert "Reland c91b178b07b0d - Delete dead signin code (SigninGlobalError)"
[chromium-blink-merge.git] / chrome / browser / banners / app_banner_metrics.h
blob7c78179292431eb75d2f6addcdc56bd0dacea0ca
1 // Copyright 2015 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.
5 #ifndef CHROME_BROWSER_BANNERS_APP_BANNER_METRICS_H_
6 #define CHROME_BROWSER_BANNERS_APP_BANNER_METRICS_H_
8 namespace banners {
10 // Keep in sync with the values defined in histograms.xml.
11 enum DisplayEvent {
12 DISPLAY_EVENT_MIN = 0,
13 DISPLAY_EVENT_BANNER_REQUESTED = 1,
14 DISPLAY_EVENT_BLOCKED_PREVIOUSLY = 2,
15 DISPLAY_EVENT_PROMOTED_TOO_MANY_OTHERS = 3,
16 DISPLAY_EVENT_CREATED = 4,
17 DISPLAY_EVENT_INSTALLED_PREVIOUSLY = 5,
18 DISPLAY_EVENT_IGNORED_PREVIOUSLY = 6,
19 DISPLAY_EVENT_LACKS_SERVICE_WORKER = 7,
20 DISPLAY_EVENT_NOT_VISITED_ENOUGH = 8,
21 DISPLAY_EVENT_NATIVE_APP_BANNER_REQUESTED = 9,
22 DISPLAY_EVENT_WEB_APP_BANNER_REQUESTED = 10,
23 DISPLAY_EVENT_NATIVE_APP_BANNER_CREATED = 11,
24 DISPLAY_EVENT_WEB_APP_BANNER_CREATED = 12,
25 DISPLAY_EVENT_MAX = 13,
28 enum InstallEvent {
29 INSTALL_EVENT_MIN = 20,
30 INSTALL_EVENT_NATIVE_APP_INSTALL_TRIGGERED = 21,
31 INSTALL_EVENT_NATIVE_APP_INSTALL_STARTED = 22,
32 INSTALL_EVENT_NATIVE_APP_INSTALL_COMPLETED = 23,
33 INSTALL_EVENT_WEB_APP_INSTALLED = 24,
34 INSTALL_EVENT_MAX = 25,
37 enum DismissEvent {
38 DISMISS_EVENT_MIN = 40,
39 DISMISS_EVENT_ERROR = 41,
40 DISMISS_EVENT_APP_OPEN = 42,
41 DISMISS_EVENT_BANNER_CLICK = 43,
42 DISMISS_EVENT_BANNER_SWIPE = 44,
43 DISMISS_EVENT_CLOSE_BUTTON = 45,
44 DISMISS_EVENT_INSTALL_TIMEOUT = 46,
45 DISMISS_EVENT_DISMISSED = 47,
46 DISMISS_EVENT_MAX = 48,
49 enum UserResponse {
50 USER_RESPONSE_MIN = 0,
51 USER_RESPONSE_NATIVE_APP_ACCEPTED = 1,
52 USER_RESPONSE_WEB_APP_ACCEPTED = 2,
53 USER_RESPONSE_NATIVE_APP_DISMISSED = 3,
54 USER_RESPONSE_WEB_APP_DISMISSED = 4,
55 USER_RESPONSE_NATIVE_APP_IGNORED = 5,
56 USER_RESPONSE_WEB_APP_IGNORED = 6,
57 USER_RESPONSE_MAX = 7,
60 void TrackDismissEvent(int event);
61 void TrackDisplayEvent(int event);
62 void TrackInstallEvent(int event);
63 void TrackUserResponse(int event);
65 }; // namespace banners
67 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_METRICS_H_