Index: chrome/browser/engagement/site_engagement_service.h |
diff --git a/chrome/browser/engagement/site_engagement_service.h b/chrome/browser/engagement/site_engagement_service.h |
index c97eb4abfa7bfa1aaf3887eb7886d66ced363286..0da49e2b78e5bc603aa0c2cf8ca33c3f800dfbb2 100644 |
--- a/chrome/browser/engagement/site_engagement_service.h |
+++ b/chrome/browser/engagement/site_engagement_service.h |
@@ -111,6 +111,9 @@ class SiteEngagementService : public KeyedService, |
// Returns a map of all stored origins and their engagement scores. |
std::map<GURL, double> GetScoreMap() const; |
+ // Update the engagement score of |url| for a notification interaction. |
+ void HandleNotificationInteraction(const GURL& url); |
+ |
// Returns whether the engagement service has enough data to make meaningful |
// decisions. Clients should avoid using engagement in their heuristic until |
// this is true. |
@@ -151,6 +154,8 @@ class SiteEngagementService : public KeyedService, |
FRIEND_TEST_ALL_PREFIXES(SiteEngagementServiceTest, GetMedianEngagement); |
FRIEND_TEST_ALL_PREFIXES(SiteEngagementServiceTest, GetTotalNavigationPoints); |
FRIEND_TEST_ALL_PREFIXES(SiteEngagementServiceTest, GetTotalUserInputPoints); |
+ FRIEND_TEST_ALL_PREFIXES(SiteEngagementServiceTest, |
+ GetTotalNotificationPoints); |
FRIEND_TEST_ALL_PREFIXES(SiteEngagementServiceTest, RestrictedToHTTPAndHTTPS); |
FRIEND_TEST_ALL_PREFIXES(SiteEngagementServiceTest, LastShortcutLaunch); |
FRIEND_TEST_ALL_PREFIXES(SiteEngagementServiceTest, NotificationPermission); |