Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Side by Side Diff: chrome/browser/banners/app_banner_metrics.h

Issue 2122783002: Add metrics for app banner preventDefault() and prompt(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 namespace banners { 8 namespace banners {
9 9
10 // Keep in sync with the values defined in histograms.xml. 10 // Keep in sync with the values defined in histograms.xml.
11 enum DisplayEvent { 11 enum DisplayEvent {
12 DISPLAY_EVENT_MIN = 0, 12 DISPLAY_EVENT_MIN = 0,
13 DISPLAY_EVENT_BANNER_REQUESTED = 1, 13 DISPLAY_EVENT_BANNER_REQUESTED = 1,
14 DISPLAY_EVENT_BLOCKED_PREVIOUSLY = 2, 14 DISPLAY_EVENT_BLOCKED_PREVIOUSLY = 2,
15 DISPLAY_EVENT_PROMOTED_TOO_MANY_OTHERS = 3, 15 DISPLAY_EVENT_PROMOTED_TOO_MANY_OTHERS = 3,
16 DISPLAY_EVENT_CREATED = 4, 16 DISPLAY_EVENT_CREATED = 4,
17 DISPLAY_EVENT_INSTALLED_PREVIOUSLY = 5, 17 DISPLAY_EVENT_INSTALLED_PREVIOUSLY = 5,
18 DISPLAY_EVENT_IGNORED_PREVIOUSLY = 6, 18 DISPLAY_EVENT_IGNORED_PREVIOUSLY = 6,
19 DISPLAY_EVENT_LACKS_SERVICE_WORKER = 7, 19 DISPLAY_EVENT_LACKS_SERVICE_WORKER = 7,
20 DISPLAY_EVENT_NOT_VISITED_ENOUGH = 8, 20 DISPLAY_EVENT_NOT_VISITED_ENOUGH = 8,
21 DISPLAY_EVENT_NATIVE_APP_BANNER_REQUESTED = 9, 21 DISPLAY_EVENT_NATIVE_APP_BANNER_REQUESTED = 9,
22 DISPLAY_EVENT_WEB_APP_BANNER_REQUESTED = 10, 22 DISPLAY_EVENT_WEB_APP_BANNER_REQUESTED = 10,
23 DISPLAY_EVENT_NATIVE_APP_BANNER_CREATED = 11, 23 DISPLAY_EVENT_NATIVE_APP_BANNER_CREATED = 11,
24 DISPLAY_EVENT_WEB_APP_BANNER_CREATED = 12, 24 DISPLAY_EVENT_WEB_APP_BANNER_CREATED = 12,
25 DISPLAY_EVENT_MAX = 13, 25 DISPLAY_EVENT_CANCELED_BY_PAGE = 13,
26 DISPLAY_EVENT_PROMPTED_BY_PAGE = 14,
27 DISPLAY_EVENT_MAX = 15,
26 }; 28 };
27 29
28 enum InstallEvent { 30 enum InstallEvent {
29 INSTALL_EVENT_MIN = 20, 31 INSTALL_EVENT_MIN = 20,
30 INSTALL_EVENT_NATIVE_APP_INSTALL_TRIGGERED = 21, 32 INSTALL_EVENT_NATIVE_APP_INSTALL_TRIGGERED = 21,
31 INSTALL_EVENT_NATIVE_APP_INSTALL_STARTED = 22, 33 INSTALL_EVENT_NATIVE_APP_INSTALL_STARTED = 22,
32 INSTALL_EVENT_NATIVE_APP_INSTALL_COMPLETED = 23, 34 INSTALL_EVENT_NATIVE_APP_INSTALL_COMPLETED = 23,
33 INSTALL_EVENT_WEB_APP_INSTALLED = 24, 35 INSTALL_EVENT_WEB_APP_INSTALLED = 24,
34 INSTALL_EVENT_MAX = 25, 36 INSTALL_EVENT_MAX = 25,
35 }; 37 };
(...skipping 29 matching lines...) Expand all
65 67
66 void TrackDismissEvent(int event); 68 void TrackDismissEvent(int event);
67 void TrackDisplayEvent(int event); 69 void TrackDisplayEvent(int event);
68 void TrackInstallEvent(int event); 70 void TrackInstallEvent(int event);
69 void TrackMinutesFromFirstVisitToBannerShown(int minutes); 71 void TrackMinutesFromFirstVisitToBannerShown(int minutes);
70 void TrackUserResponse(int event); 72 void TrackUserResponse(int event);
71 73
72 }; // namespace banners 74 }; // namespace banners
73 75
74 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_METRICS_H_ 76 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698