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

Side by Side Diff: components/subresource_filter/core/common/activation_scope.h

Issue 2844063002: Add support for multiple simultaneous subresource_filter::Configurations. (Closed)
Patch Set: Rebase. Created 3 years, 7 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_COMMON_ACTIVATION_SCOPE_H_ 5 #ifndef COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_SCOPE_H_
6 #define COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_SCOPE_H_ 6 #define COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_SCOPE_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 namespace subresource_filter { 10 namespace subresource_filter {
11 11
12 // Defines the scope of triggering the Safe Browsing Subresource Filter. 12 // Defines the scope of triggering the Safe Browsing Subresource Filter.
13 enum class ActivationScope { 13 enum class ActivationScope {
14 NO_SITES, 14 NO_SITES,
15 // Allows to activate Safe Browsing Subresource Filter only on web sites from 15 // Allows to activate Safe Browsing Subresource Filter only on web sites from
16 // the Safe Browsing blacklist. 16 // the Safe Browsing blacklist.
17 ACTIVATION_LIST, 17 ACTIVATION_LIST,
18 // Testing only. Allows to send activation signal to the RenderFrame for each 18 // Testing only. Allows to send activation signal to the RenderFrame for each
19 // load. 19 // load.
20 ALL_SITES, 20 ALL_SITES,
21 LAST = ACTIVATION_LIST, 21 LAST = ALL_SITES,
22 }; 22 };
23 23
24 // For logging use only. 24 // For logging use only.
25 std::ostream& operator<<(std::ostream& os, const ActivationScope& state); 25 std::ostream& operator<<(std::ostream& os, const ActivationScope& state);
26 26
27 } // namespace subresource_filter 27 } // namespace subresource_filter
28 28
29 #endif // COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_SCOPE_H_ 29 #endif // COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_SCOPE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698