Chromium Code Reviews| 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; | |
|
engedy
2017/04/06 13:50:38
... and also mention that this CL removes the feat
melandory
2017/04/07 09:09:44
Done.
| |
| 23 | |
| 24 // Name/values of the variation parameter controlling maximum activation level. | 21 // Name/values of the variation parameter controlling maximum activation level. |
| 25 extern const char kActivationLevelParameterName[]; | 22 extern const char kActivationLevelParameterName[]; |
| 26 extern const char kActivationLevelDryRun[]; | 23 extern const char kActivationLevelDryRun[]; |
| 27 extern const char kActivationLevelEnabled[]; | 24 extern const char kActivationLevelEnabled[]; |
| 28 extern const char kActivationLevelDisabled[]; | 25 extern const char kActivationLevelDisabled[]; |
| 29 | 26 |
| 30 extern const char kActivationScopeParameterName[]; | 27 extern const char kActivationScopeParameterName[]; |
| 31 extern const char kActivationScopeAllSites[]; | 28 extern const char kActivationScopeAllSites[]; |
| 32 extern const char kActivationScopeActivationList[]; | 29 extern const char kActivationScopeActivationList[]; |
| 33 extern const char kActivationScopeNoSites[]; | 30 extern const char kActivationScopeNoSites[]; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 73 // Returns the ruleset flavor, or the empty string if the default ruleset should | 70 // Returns the ruleset flavor, or the empty string if the default ruleset should |
| 74 // be used. | 71 // be used. |
| 75 std::string GetRulesetFlavor(); | 72 std::string GetRulesetFlavor(); |
| 76 | 73 |
| 77 // Returns whether the site of reloaded pages should be whitelisted. | 74 // Returns whether the site of reloaded pages should be whitelisted. |
| 78 bool ShouldWhitelistSiteOnReload(); | 75 bool ShouldWhitelistSiteOnReload(); |
| 79 | 76 |
| 80 } // namespace subresource_filter | 77 } // namespace subresource_filter |
| 81 | 78 |
| 82 #endif // COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_FEATURE S_H_ | 79 #endif // COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_FEATURE S_H_ |
| OLD | NEW |