| 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 68eeb0af60081363cff86ba0a444529b64eb888f..0e67b7193bb982ef6326824fa498f8ab7122e5e6 100644
|
| --- a/chrome/browser/engagement/site_engagement_service.h
|
| +++ b/chrome/browser/engagement/site_engagement_service.h
|
| @@ -57,6 +57,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);
|
| @@ -139,6 +143,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.
|
|
|