summaryrefslogtreecommitdiff
path: root/chromium/media/base/encryption_scheme.cc
blob: 40de184e5df145e29e19866fc8f4921fa9771b1b (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
// Copyright 2015 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 "media/base/encryption_scheme.h"

#include <ostream>

#include "base/logging.h"

namespace media {

std::ostream& operator<<(std::ostream& os, EncryptionScheme scheme) {
  switch (scheme) {
    case EncryptionScheme::kUnencrypted:
      return os << "Unencrypted";
    case EncryptionScheme::kCenc:
      return os << "CENC";
    case EncryptionScheme::kCbcs:
      return os << "CBCS";
    default:
      return os << "Unknown";
  }
}

}  // namespace media