summaryrefslogtreecommitdiff
path: root/chromium/media/base/encryption_scheme.cc
blob: 0fd360973787fee6ed6787c2c302ec8a7c857897 (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
// 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>


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