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

Unified Diff: components/subresource_filter/core/common/activation_list.cc

Issue 2415553002: Metrics for tracking Safe Browsing hit patterns for the Safe Browsing lists Subresource Filter. (Closed)
Patch Set: change safe browsing browser tests Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: components/subresource_filter/core/common/activation_list.cc
diff --git a/components/subresource_filter/core/common/activation_list.cc b/components/subresource_filter/core/common/activation_list.cc
new file mode 100644
index 0000000000000000000000000000000000000000..090eeae134cee791cea1a9e1d61718180dbcce4c
--- /dev/null
+++ b/components/subresource_filter/core/common/activation_list.cc
@@ -0,0 +1,31 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/subresource_filter/core/common/activation_list.h"
+
+#include <ostream>
+
+#include "base/logging.h"
+
+namespace subresource_filter {
+
+std::ostream& operator<<(std::ostream& os, const ActivationList& type) {
+ switch (type) {
+ case ActivationList::NONE:
+ os << "NONE";
+ break;
+ case ActivationList::SOCIAL_ENG_ADS_INTERSTITIAL:
+ os << "SOCIAL_ENG_ADS_INTERSTITIAL";
+ break;
+ case ActivationList::PHISHING_INTERSTITIAL:
+ os << "PHISHING_INTERSTITIAL";
+ break;
+ default:
+ NOTREACHED();
+ break;
+ }
+ return os;
+}
+
+} // namespace subresource_filter
« 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