Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: chrome/browser/banners/app_banner_settings_helper.h

Issue 2259553002: Make AppBannerInfoBar install WebAPK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BANNERS_APP_BANNER_SETTINGS_HELPER_H_ 5 #ifndef CHROME_BROWSER_BANNERS_APP_BANNER_SETTINGS_HELPER_H_
6 #define CHROME_BROWSER_BANNERS_APP_BANNER_SETTINGS_HELPER_H_ 6 #define CHROME_BROWSER_BANNERS_APP_BANNER_SETTINGS_HELPER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 enum AppBannerEvent { 43 enum AppBannerEvent {
44 APP_BANNER_EVENT_COULD_SHOW, 44 APP_BANNER_EVENT_COULD_SHOW,
45 APP_BANNER_EVENT_DID_SHOW, 45 APP_BANNER_EVENT_DID_SHOW,
46 APP_BANNER_EVENT_DID_BLOCK, 46 APP_BANNER_EVENT_DID_BLOCK,
47 APP_BANNER_EVENT_DID_ADD_TO_HOMESCREEN, 47 APP_BANNER_EVENT_DID_ADD_TO_HOMESCREEN,
48 APP_BANNER_EVENT_NUM_EVENTS, 48 APP_BANNER_EVENT_NUM_EVENTS,
49 }; 49 };
50 50
51 enum AppBannerRapporMetric { 51 enum AppBannerRapporMetric {
52 WEB, 52 WEB,
53 WEBAPK,
53 NATIVE, 54 NATIVE,
54 }; 55 };
55 56
56 // BannerEvents record the time that a site was accessed, along with an 57 // BannerEvents record the time that a site was accessed, along with an
57 // engagement weight representing the importance of the access. 58 // engagement weight representing the importance of the access.
58 struct BannerEvent { 59 struct BannerEvent {
59 base::Time time; 60 base::Time time;
60 double engagement; 61 double engagement;
61 }; 62 };
62 63
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 168
168 // Returns true if the app banner trigger condition should use the site 169 // Returns true if the app banner trigger condition should use the site
169 // engagement score instead of the navigation-based heuristic. 170 // engagement score instead of the navigation-based heuristic.
170 static bool ShouldUseSiteEngagementScore(); 171 static bool ShouldUseSiteEngagementScore();
171 172
172 private: 173 private:
173 DISALLOW_IMPLICIT_CONSTRUCTORS(AppBannerSettingsHelper); 174 DISALLOW_IMPLICIT_CONSTRUCTORS(AppBannerSettingsHelper);
174 }; 175 };
175 176
176 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_SETTINGS_HELPER_H_ 177 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_SETTINGS_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698