summaryrefslogtreecommitdiff
path: root/chromium/components/subresource_filter/core/common/activation_list.cc
blob: a5f50e1df3328e3800b16887f1ef288a7e651ad4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// 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;
    case ActivationList::SUBRESOURCE_FILTER:
      os << "SUBRESOURCE_FILTER";
      break;
    default:
      NOTREACHED();
      break;
  }
  return os;
}

}  // namespace subresource_filter