OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 // Safe Browsing preferences and some basic utility functions for using them. | 5 // Safe Browsing preferences and some basic utility functions for using them. |
6 | 6 |
7 #ifndef COMPONENTS_SAFE_BROWSING_DB_SAFE_BROWSING_PREFS_H_ | 7 #ifndef COMPONENTS_SAFE_BROWSING_DB_SAFE_BROWSING_PREFS_H_ |
8 #define COMPONENTS_SAFE_BROWSING_DB_SAFE_BROWSING_PREFS_H_ | 8 #define COMPONENTS_SAFE_BROWSING_DB_SAFE_BROWSING_PREFS_H_ |
9 | 9 |
10 #include "base/feature_list.h" | 10 #include "base/feature_list.h" |
11 | 11 |
12 class PrefService; | 12 class PrefService; |
13 | 13 |
14 namespace prefs { | 14 namespace prefs { |
15 // Boolean that tell us whether Safe Browsing extended reporting is enabled. | 15 // Boolean that tell us whether Safe Browsing extended reporting is enabled. |
16 extern const char kSafeBrowsingExtendedReportingEnabled[]; | 16 extern const char kSafeBrowsingExtendedReportingEnabled[]; |
17 | 17 |
18 // Boolean indicating whether Safe Browsing Scout reporting is enabled, which | 18 // Boolean indicating whether Safe Browsing Scout reporting is enabled, which |
19 // collects data for malware detection. | 19 // collects data for malware detection. |
20 extern const char kSafeBrowsingScoutReportingEnabled[]; | 20 extern const char kSafeBrowsingScoutReportingEnabled[]; |
21 | 21 |
22 // Boolean indicating whether the Scout reporting workflow is enabled. This | 22 // Boolean indicating whether the Scout reporting workflow is enabled. This |
23 // affects which of SafeBrowsingExtendedReporting or SafeBrowsingScoutReporting | 23 // affects which of SafeBrowsingExtendedReporting or SafeBrowsingScoutReporting |
24 // is used. | 24 // is used. |
25 extern const char kSafeBrowsingScoutGroupSelected[]; | 25 extern const char kSafeBrowsingScoutGroupSelected[]; |
| 26 |
| 27 // Boolean indicating whether the user has ever seen a security interstitial |
| 28 // containing the legacy Extended Reporting opt-in. |
| 29 extern const char kSafeBrowsingSawInterstitialExtendedReporting[]; |
| 30 |
| 31 // Boolean indicating whether the user has ever seen a security interstitial |
| 32 // containing the new Scout opt-in. |
| 33 extern const char kSafeBrowsingSawInterstitialScoutReporting[]; |
26 } | 34 } |
27 | 35 |
28 namespace safe_browsing { | 36 namespace safe_browsing { |
29 | 37 |
30 // Command-line switch for changing the scout_group_selected preference. Should | 38 // Command-line switch for changing the scout_group_selected preference. Should |
31 // be set to either 'true' or 'false'. Primarily for testing purposes. | 39 // be set to either 'true' or 'false'. Primarily for testing purposes. |
32 // TODO: this is temporary (crbug.com/662944) | 40 // TODO: this is temporary (crbug.com/662944) |
33 extern const char kSwitchForceScoutGroup[]; | 41 extern const char kSwitchForceScoutGroup[]; |
34 | 42 |
35 // When this feature is enabled, the Scout opt-in text will be displayed as of | 43 // When this feature is enabled, the Scout opt-in text will be displayed as of |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 bool on_show_pref_value); | 142 bool on_show_pref_value); |
135 | 143 |
136 // Called to indicate that a security interstitial is about to be shown to the | 144 // Called to indicate that a security interstitial is about to be shown to the |
137 // user. This may trigger the user to begin seeing the Scout opt-in text | 145 // user. This may trigger the user to begin seeing the Scout opt-in text |
138 // depending on their experiment state. | 146 // depending on their experiment state. |
139 void UpdatePrefsBeforeSecurityInterstitial(PrefService* prefs); | 147 void UpdatePrefsBeforeSecurityInterstitial(PrefService* prefs); |
140 | 148 |
141 } // namespace safe_browsing | 149 } // namespace safe_browsing |
142 | 150 |
143 #endif // COMPONENTS_SAFE_BROWSING_DB_SAFE_BROWSING_PREFS_H_ | 151 #endif // COMPONENTS_SAFE_BROWSING_DB_SAFE_BROWSING_PREFS_H_ |
OLD | NEW |