Index: chrome/browser/banners/app_banner_settings_helper.h |
diff --git a/chrome/browser/banners/app_banner_settings_helper.h b/chrome/browser/banners/app_banner_settings_helper.h |
index 8e0e971589ad75acc3160e7f25492d1eaf555671..b71802110e5e5a191c9b656414dbf4e464ee940f 100644 |
--- a/chrome/browser/banners/app_banner_settings_helper.h |
+++ b/chrome/browser/banners/app_banner_settings_helper.h |
@@ -46,6 +46,11 @@ class AppBannerSettingsHelper { |
APP_BANNER_EVENT_NUM_EVENTS, |
}; |
+ enum AppBannerRapporMetric { |
+ WEB, |
+ NATIVE, |
+ }; |
+ |
// The content setting basically records a simplified subset of history. |
// For privacy reasons this needs to be cleared. The ClearHistoryForURLs |
// function removes any information from the banner content settings for the |
@@ -53,6 +58,18 @@ class AppBannerSettingsHelper { |
static void ClearHistoryForURLs(Profile* profile, |
const std::set<GURL>& origin_urls); |
+ // Record a banner installation event, for either a WEB or NATIVE app. |
+ static void RecordBannerInstallEvent( |
+ content::WebContents* web_contents, |
+ const std::string& package_name_or_start_url, |
+ AppBannerRapporMetric rappor_metric); |
+ |
+ // Record a banner dismissal event, for either a WEB or NATIVE app. |
+ static void RecordBannerDismissEvent( |
+ content::WebContents* web_contents, |
+ const std::string& package_name_or_start_url, |
+ AppBannerRapporMetric rappor_metric); |
+ |
static void RecordBannerEvent(content::WebContents* web_contents, |
const GURL& origin_url, |
const std::string& package_name_or_start_url, |