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

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

Issue 2765193002: Prototype for the new UI for the Safe Browsing Subresource Filter. (Closed)
Patch Set: comments Created 3 years, 8 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
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.
19 extern const base::Feature kSafeBrowsingSubresourceFilterExperimentalUI;
20
18 // Name/values of the variation parameter controlling maximum activation level. 21 // Name/values of the variation parameter controlling maximum activation level.
19 extern const char kActivationLevelParameterName[]; 22 extern const char kActivationLevelParameterName[];
20 extern const char kActivationLevelDryRun[]; 23 extern const char kActivationLevelDryRun[];
21 extern const char kActivationLevelEnabled[]; 24 extern const char kActivationLevelEnabled[];
22 extern const char kActivationLevelDisabled[]; 25 extern const char kActivationLevelDisabled[];
23 26
24 extern const char kActivationScopeParameterName[]; 27 extern const char kActivationScopeParameterName[];
25 extern const char kActivationScopeAllSites[]; 28 extern const char kActivationScopeAllSites[];
26 extern const char kActivationScopeActivationList[]; 29 extern const char kActivationScopeActivationList[];
27 extern const char kActivationScopeNoSites[]; 30 extern const char kActivationScopeNoSites[];
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // Returns the ruleset flavor, or the empty string if the default ruleset should 69 // Returns the ruleset flavor, or the empty string if the default ruleset should
67 // be used. 70 // be used.
68 std::string GetRulesetFlavor(); 71 std::string GetRulesetFlavor();
69 72
70 // Returns whether the site of reloaded pages should be whitelisted. 73 // Returns whether the site of reloaded pages should be whitelisted.
71 bool ShouldWhitelistSiteOnReload(); 74 bool ShouldWhitelistSiteOnReload();
72 75
73 } // namespace subresource_filter 76 } // namespace subresource_filter
74 77
75 #endif // COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_FEATURE S_H_ 78 #endif // COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_FEATURE S_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698