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

Unified Diff: chrome/browser/banners/app_banner_metrics.h

Issue 929533002: [App banners] Add UMA metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@banner_cleanup
Patch Set: Fixing rebase Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/banners/app_banner_metrics.h
diff --git a/chrome/browser/banners/app_banner_metrics.h b/chrome/browser/banners/app_banner_metrics.h
new file mode 100644
index 0000000000000000000000000000000000000000..3ae191228eebd76c12be6afc33b9f20162932879
--- /dev/null
+++ b/chrome/browser/banners/app_banner_metrics.h
@@ -0,0 +1,52 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_BANNERS_APP_BANNER_METRICS_H_
+#define CHROME_BROWSER_BANNERS_APP_BANNER_METRICS_H_
+
+namespace banners {
+
+// Keep in sync with the values defined in histograms.xml.
+enum DisplayEvent {
+ DISPLAY_EVENT_MIN = 0,
+ DISPLAY_EVENT_BANNER_REQUESTED = 1,
+ DISPLAY_EVENT_BLOCKED_PREVIOUSLY = 2,
+ DISPLAY_EVENT_PROMOTED_TOO_MANY_OTHERS = 3,
+ DISPLAY_EVENT_CREATED = 4,
+ DISPLAY_EVENT_INSTALLED_PREVIOUSLY = 5,
+ DISPLAY_EVENT_IGNORED_PREVIOUSLY = 6,
+ DISPLAY_EVENT_LACKS_SERVICE_WORKER = 7,
+ DISPLAY_EVENT_NOT_VISITED_ENOUGH = 8,
+ DISPLAY_EVENT_MAX = 9,
+};
+
+enum InstallEvent {
+ INSTALL_EVENT_MIN = 20,
+ INSTALL_EVENT_NATIVE_APP_INSTALL_TRIGGERED = 21,
+ INSTALL_EVENT_NATIVE_APP_INSTALL_STARTED = 22,
+ INSTALL_EVENT_NATIVE_APP_INSTALL_COMPLETED = 23,
+ INSTALL_EVENT_WEB_APP_INSTALLED = 24,
+ INSTALL_EVENT_MAX = 25,
+};
+
+enum DismissEvent {
+ DISMISS_EVENT_MIN = 40,
+ DISMISS_EVENT_ERROR = 41,
+ DISMISS_EVENT_APP_OPEN = 42,
+ DISMISS_EVENT_BANNER_CLICK = 43,
+ DISMISS_EVENT_BANNER_SWIPE = 44,
+ DISMISS_EVENT_CLOSE_BUTTON = 45,
+ DISMISS_EVENT_INSTALL_TIMEOUT = 46,
+ DISMISS_EVENT_DISMISSED = 47,
+ DISMISS_EVENT_MAX = 48,
+};
+
+void TrackDismissEvent(int event);
+void TrackDisplayEvent(int event);
+void TrackInstallEvent(int event);
+
+}; // namespace banners
+
+#endif // CHROME_BROWSER_BANNERS_APP_BANNER_METRICS_H_
+
« no previous file with comments | « chrome/browser/android/banners/app_banner_utilities.cc ('k') | chrome/browser/banners/app_banner_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698