| 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 COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_FEATURES_H
_ | 5 #ifndef COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_FEATURES_H
_ |
| 6 #define COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_FEATURES_H
_ | 6 #define COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_FEATURES_H
_ |
| 7 | 7 |
| 8 #include "base/feature_list.h" | 8 #include "base/feature_list.h" |
| 9 #include "components/subresource_filter/core/common/activation_level.h" | 9 #include "components/subresource_filter/core/common/activation_level.h" |
| 10 #include "components/subresource_filter/core/common/activation_list.h" | 10 #include "components/subresource_filter/core/common/activation_list.h" |
| 11 #include "components/subresource_filter/core/common/activation_scope.h" | 11 #include "components/subresource_filter/core/common/activation_scope.h" |
| 12 | 12 |
| 13 namespace subresource_filter { | 13 namespace subresource_filter { |
| 14 | 14 |
| 15 // The master toggle to enable/disable the Safe Browsing Subresource Filter. | 15 // The master toggle to enable/disable the Safe Browsing Subresource Filter. |
| 16 extern const base::Feature kSafeBrowsingSubresourceFilter; | 16 extern const base::Feature kSafeBrowsingSubresourceFilter; |
| 17 | 17 |
| 18 // Enables the new experimental UI for the Subresource Filter. | 18 // Enables the new experimental UI for the Subresource Filter. |
| 19 extern const base::Feature kSafeBrowsingSubresourceFilterExperimentalUI; | 19 extern const base::Feature kSafeBrowsingSubresourceFilterExperimentalUI; |
| 20 | 20 |
| 21 // Guards creation of the SubresourceFilterSafeBrowsingActivationThrottle |
| 22 extern const base::Feature kSubresourceFilterSafeBrowsingActivationThrottle; |
| 23 |
| 21 // Name/values of the variation parameter controlling maximum activation level. | 24 // Name/values of the variation parameter controlling maximum activation level. |
| 22 extern const char kActivationLevelParameterName[]; | 25 extern const char kActivationLevelParameterName[]; |
| 23 extern const char kActivationLevelDryRun[]; | 26 extern const char kActivationLevelDryRun[]; |
| 24 extern const char kActivationLevelEnabled[]; | 27 extern const char kActivationLevelEnabled[]; |
| 25 extern const char kActivationLevelDisabled[]; | 28 extern const char kActivationLevelDisabled[]; |
| 26 | 29 |
| 27 extern const char kActivationScopeParameterName[]; | 30 extern const char kActivationScopeParameterName[]; |
| 28 extern const char kActivationScopeAllSites[]; | 31 extern const char kActivationScopeAllSites[]; |
| 29 extern const char kActivationScopeActivationList[]; | 32 extern const char kActivationScopeActivationList[]; |
| 30 extern const char kActivationScopeNoSites[]; | 33 extern const char kActivationScopeNoSites[]; |
| 31 | 34 |
| 32 extern const char kActivationListsParameterName[]; | 35 extern const char kActivationListsParameterName[]; |
| 33 extern const char kActivationListSocialEngineeringAdsInterstitial[]; | 36 extern const char kActivationListSocialEngineeringAdsInterstitial[]; |
| 34 extern const char kActivationListPhishingInterstitial[]; | 37 extern const char kActivationListPhishingInterstitial[]; |
| 38 extern const char kActivationListSubresourceFilter[]; |
| 35 | 39 |
| 36 extern const char kRulesetFlavorParameterName[]; | 40 extern const char kRulesetFlavorParameterName[]; |
| 37 | 41 |
| 38 extern const char kPerformanceMeasurementRateParameterName[]; | 42 extern const char kPerformanceMeasurementRateParameterName[]; |
| 39 | 43 |
| 40 extern const char kSuppressNotificationsParameterName[]; | 44 extern const char kSuppressNotificationsParameterName[]; |
| 41 | 45 |
| 42 extern const char kWhitelistSiteOnReloadParameterName[]; | 46 extern const char kWhitelistSiteOnReloadParameterName[]; |
| 43 | 47 |
| 44 // Returns the maximum degree to which subresource filtering should be activated | 48 // Returns the maximum degree to which subresource filtering should be activated |
| (...skipping 24 matching lines...) Expand all Loading... |
| 69 // Returns the ruleset flavor, or the empty string if the default ruleset should | 73 // Returns the ruleset flavor, or the empty string if the default ruleset should |
| 70 // be used. | 74 // be used. |
| 71 std::string GetRulesetFlavor(); | 75 std::string GetRulesetFlavor(); |
| 72 | 76 |
| 73 // Returns whether the site of reloaded pages should be whitelisted. | 77 // Returns whether the site of reloaded pages should be whitelisted. |
| 74 bool ShouldWhitelistSiteOnReload(); | 78 bool ShouldWhitelistSiteOnReload(); |
| 75 | 79 |
| 76 } // namespace subresource_filter | 80 } // namespace subresource_filter |
| 77 | 81 |
| 78 #endif // COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_FEATURE
S_H_ | 82 #endif // COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_FEATURE
S_H_ |
| OLD | NEW |