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 #include "components/subresource_filter/core/common/activation_list.h" | 5 #include "components/subresource_filter/core/common/activation_list.h" |
6 | 6 |
7 #include <ostream> | 7 #include <ostream> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 | 10 |
11 namespace subresource_filter { | 11 namespace subresource_filter { |
12 | 12 |
13 std::ostream& operator<<(std::ostream& os, const ActivationList& type) { | 13 std::ostream& operator<<(std::ostream& os, const ActivationList& type) { |
14 switch (type) { | 14 switch (type) { |
15 case ActivationList::NONE: | 15 case ActivationList::NONE: |
16 os << "NONE"; | 16 os << "NONE"; |
17 break; | 17 break; |
18 case ActivationList::SOCIAL_ENG_ADS_INTERSTITIAL: | 18 case ActivationList::SOCIAL_ENG_ADS_INTERSTITIAL: |
19 os << "SOCIAL_ENG_ADS_INTERSTITIAL"; | 19 os << "SOCIAL_ENG_ADS_INTERSTITIAL"; |
20 break; | 20 break; |
21 case ActivationList::PHISHING_INTERSTITIAL: | 21 case ActivationList::PHISHING_INTERSTITIAL: |
22 os << "PHISHING_INTERSTITIAL"; | 22 os << "PHISHING_INTERSTITIAL"; |
23 break; | 23 break; |
| 24 case ActivationList::SUBRESOURCE_FILTER: |
| 25 os << "SUBRESOURCE_FILTER"; |
| 26 break; |
24 default: | 27 default: |
25 NOTREACHED(); | 28 NOTREACHED(); |
26 break; | 29 break; |
27 } | 30 } |
28 return os; | 31 return os; |
29 } | 32 } |
30 | 33 |
31 } // namespace subresource_filter | 34 } // namespace subresource_filter |
OLD | NEW |