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

Side by Side Diff: components/subresource_filter/core/browser/subresource_filter_features.h

Issue 2022783002: Skeleton of the Safe Browsing Subresource Filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implement RenderFrameObserver::OnDestruct introduced by rebase. Created 4 years, 6 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698