OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SCORE_H_ | 5 #ifndef CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SCORE_H_ |
6 #define CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SCORE_H_ | 6 #define CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SCORE_H_ |
7 | 7 |
8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 static double GetDecayPoints(); | 69 static double GetDecayPoints(); |
70 static double GetNavigationPoints(); | 70 static double GetNavigationPoints(); |
71 static double GetUserInputPoints(); | 71 static double GetUserInputPoints(); |
72 static double GetVisibleMediaPoints(); | 72 static double GetVisibleMediaPoints(); |
73 static double GetHiddenMediaPoints(); | 73 static double GetHiddenMediaPoints(); |
74 static double GetWebAppInstalledPoints(); | 74 static double GetWebAppInstalledPoints(); |
75 static double GetFirstDailyEngagementPoints(); | 75 static double GetFirstDailyEngagementPoints(); |
76 static double GetBootstrapPoints(); | 76 static double GetBootstrapPoints(); |
77 static double GetMediumEngagementBoundary(); | 77 static double GetMediumEngagementBoundary(); |
78 static double GetHighEngagementBoundary(); | 78 static double GetHighEngagementBoundary(); |
| 79 static double GetMinimumEngagementIncrement(); |
79 | 80 |
80 // Update the default engagement settings via variations. | 81 // Update the default engagement settings via variations. |
81 static void UpdateFromVariations(const char* param_name); | 82 static void UpdateFromVariations(const char* param_name); |
82 | 83 |
83 // The SiteEngagementScore does not take ownership of |clock|. It is the | 84 // The SiteEngagementScore does not take ownership of |clock|. It is the |
84 // responsibility of the caller to make sure |clock| outlives this | 85 // responsibility of the caller to make sure |clock| outlives this |
85 // SiteEngagementScore. | 86 // SiteEngagementScore. |
86 SiteEngagementScore(base::Clock* clock, | 87 SiteEngagementScore(base::Clock* clock, |
87 const base::DictionaryValue& score_dict); | 88 const base::DictionaryValue& score_dict); |
88 ~SiteEngagementScore(); | 89 ~SiteEngagementScore(); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 base::Time last_engagement_time_; | 169 base::Time last_engagement_time_; |
169 | 170 |
170 // The last time the site with this score was launched from an installed | 171 // The last time the site with this score was launched from an installed |
171 // shortcut. | 172 // shortcut. |
172 base::Time last_shortcut_launch_time_; | 173 base::Time last_shortcut_launch_time_; |
173 | 174 |
174 DISALLOW_COPY_AND_ASSIGN(SiteEngagementScore); | 175 DISALLOW_COPY_AND_ASSIGN(SiteEngagementScore); |
175 }; | 176 }; |
176 | 177 |
177 #endif // CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SCORE_H_ | 178 #endif // CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SCORE_H_ |
OLD | NEW |