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_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_ |
OLD | NEW |