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

Side by Side Diff: components/subresource_filter/core/common/activation_list.cc

Issue 2645283007: Add the client for accessing Subresource Filter only list. (Closed)
Patch Set: feature 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 #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
OLDNEW
« no previous file with comments | « components/subresource_filter/core/common/activation_list.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698