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 d2595180054f84897fc6cd4856edd518b8e2c6e2..22c3e1beac76ff2f10a355d4a0a77947a00fcdd8 100644 |
--- a/chrome/browser/engagement/site_engagement_service.h |
+++ b/chrome/browser/engagement/site_engagement_service.h |
@@ -56,6 +56,10 @@ class SiteEngagementScore { |
double Score() const; |
void AddPoints(double points); |
+ // Returns true if the maximum number of points today has been added. Resets |
+ // the number of points added today if the day has changed. |
+ bool MaxPointsPerDayAdded(); |
+ |
// Updates the content settings dictionary |score_dict| with the current score |
// fields. Returns true if |score_dict| changed, otherwise return false. |
bool UpdateScoreDict(base::DictionaryValue* score_dict); |
@@ -138,6 +142,15 @@ class SiteEngagementService : public KeyedService, |
// maximum limits for the day and overall. |
void AddPoints(const GURL& url, double points); |
+ // Returns the number of origins with maximum daily and total engagement |
+ // respectively. |
+ int OriginsWithMaxDailyEngagement(); |
+ int OriginsWithMaxEngagement(); |
+ |
+ // Logs the total number of origins stored by the site engagement service, and |
+ // the total accumulated engagement score. |
+ void RecordStartupUmaStats(); |
+ |
Profile* profile_; |
// The clock used to vend times. |