OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_FEATURES_H_ |
| 6 #define COMPONENTS_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_FEATURES_H_ |
| 7 |
| 8 #include "base/feature_list.h" |
| 9 #include "components/subresource_filter/core/common/activation_state.h" |
| 10 |
| 11 namespace subresource_filter { |
| 12 |
| 13 // The master toggle to enable/disable the Safe Browsing Subresource Filter. |
| 14 extern const base::Feature kSafeBrowsingSubresourceFilter; |
| 15 |
| 16 // Name/values of the variation parameter controlling maximum activation state. |
| 17 extern const char kActivationStateParameterName[]; |
| 18 extern const char kActivationStateDryRun[]; |
| 19 extern const char kActivationStateEnabled[]; |
| 20 |
| 21 // Returns the maximum degree to which subresource filtering should be activated |
| 22 // on any RenderFrame. This will be ActivationState::DISABLED unless the feature |
| 23 // is enabled and variation parameters prescribe a higher activation state. |
| 24 ActivationState GetMaximumActivationState(); |
| 25 |
| 26 } // namespace subresource_filter |
| 27 |
| 28 #endif // COMPONENTS_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_FEATURES_H_ |
OLD | NEW |