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_LIST_H_ | 5 #ifndef COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_LIST_H_ |
6 #define COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_LIST_H_ | 6 #define COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_LIST_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "components/safe_browsing_db/util.h" | 10 #include "components/safe_browsing_db/util.h" |
11 | 11 |
12 namespace subresource_filter { | 12 namespace subresource_filter { |
13 | 13 |
14 enum class ActivationList { | 14 enum class ActivationList { |
15 NONE, | 15 NONE, |
16 SOCIAL_ENG_ADS_INTERSTITIAL, | 16 SOCIAL_ENG_ADS_INTERSTITIAL, |
17 PHISHING_INTERSTITIAL, | 17 PHISHING_INTERSTITIAL, |
18 LAST = PHISHING_INTERSTITIAL, | 18 SUBRESOURCE_FILTER, |
| 19 LAST = SUBRESOURCE_FILTER, |
19 }; | 20 }; |
20 | 21 |
21 // For logging use only. | 22 // For logging use only. |
22 std::ostream& operator<<(std::ostream& os, const ActivationList& type); | 23 std::ostream& operator<<(std::ostream& os, const ActivationList& type); |
23 | 24 |
24 ActivationList GetListForThreatTypeAndMetadata( | 25 ActivationList GetListForThreatTypeAndMetadata( |
25 safe_browsing::SBThreatType threat_type, | 26 safe_browsing::SBThreatType threat_type, |
26 safe_browsing::ThreatPatternType threat_type_metadata); | 27 safe_browsing::ThreatPatternType threat_type_metadata); |
27 | 28 |
28 } // namespace subresource_filter | 29 } // namespace subresource_filter |
29 | 30 |
30 #endif // COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_LIST_H_ | 31 #endif // COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_LIST_H_ |
OLD | NEW |