OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_BANNERS_APP_BANNER_METRICS_H_ | 5 #ifndef CHROME_BROWSER_BANNERS_APP_BANNER_METRICS_H_ |
6 #define CHROME_BROWSER_BANNERS_APP_BANNER_METRICS_H_ | 6 #define CHROME_BROWSER_BANNERS_APP_BANNER_METRICS_H_ |
7 | 7 |
| 8 #include "chrome/browser/installable/installable_logging.h" |
| 9 |
8 namespace banners { | 10 namespace banners { |
9 | 11 |
10 // This enum backs a UMA histogram, so it should be treated as append-only. | 12 // This enum backs a UMA histogram, so it should be treated as append-only. |
11 enum DisplayEvent { | 13 enum DisplayEvent { |
12 DISPLAY_EVENT_MIN = 0, | 14 DISPLAY_EVENT_MIN = 0, |
13 DISPLAY_EVENT_BANNER_REQUESTED = 1, | 15 DISPLAY_EVENT_BANNER_REQUESTED = 1, |
14 DISPLAY_EVENT_BLOCKED_PREVIOUSLY = 2, | 16 DISPLAY_EVENT_BLOCKED_PREVIOUSLY = 2, |
15 DISPLAY_EVENT_PROMOTED_TOO_MANY_OTHERS = 3, | 17 DISPLAY_EVENT_PROMOTED_TOO_MANY_OTHERS = 3, |
16 DISPLAY_EVENT_CREATED = 4, | 18 DISPLAY_EVENT_CREATED = 4, |
17 DISPLAY_EVENT_INSTALLED_PREVIOUSLY = 5, | 19 DISPLAY_EVENT_INSTALLED_PREVIOUSLY = 5, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 BEFORE_INSTALL_EVENT_PROMPT_NOT_CALLED_AFTER_PREVENT_DEFAULT = 6, | 73 BEFORE_INSTALL_EVENT_PROMPT_NOT_CALLED_AFTER_PREVENT_DEFAULT = 6, |
72 BEFORE_INSTALL_EVENT_MAX = 7, | 74 BEFORE_INSTALL_EVENT_MAX = 7, |
73 }; | 75 }; |
74 | 76 |
75 extern const char kDismissEventHistogram[]; | 77 extern const char kDismissEventHistogram[]; |
76 extern const char kDisplayEventHistogram[]; | 78 extern const char kDisplayEventHistogram[]; |
77 extern const char kInstallEventHistogram[]; | 79 extern const char kInstallEventHistogram[]; |
78 extern const char kMinutesHistogram[]; | 80 extern const char kMinutesHistogram[]; |
79 extern const char kUserResponseHistogram[]; | 81 extern const char kUserResponseHistogram[]; |
80 extern const char kBeforeInstallEventHistogram[]; | 82 extern const char kBeforeInstallEventHistogram[]; |
| 83 extern const char kInstallableStatusCodeHistogram[]; |
81 | 84 |
82 void TrackDismissEvent(int event); | 85 void TrackDismissEvent(int event); |
83 void TrackDisplayEvent(int event); | 86 void TrackDisplayEvent(int event); |
84 void TrackInstallEvent(int event); | 87 void TrackInstallEvent(int event); |
85 void TrackMinutesFromFirstVisitToBannerShown(int minutes); | 88 void TrackMinutesFromFirstVisitToBannerShown(int minutes); |
86 void TrackUserResponse(int event); | 89 void TrackUserResponse(int event); |
87 void TrackBeforeInstallEvent(int event); | 90 void TrackBeforeInstallEvent(int event); |
| 91 void TrackInstallableStatusCode(InstallableStatusCode code); |
88 | 92 |
89 }; // namespace banners | 93 }; // namespace banners |
90 | 94 |
91 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_METRICS_H_ | 95 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_METRICS_H_ |
OLD | NEW |