summaryrefslogtreecommitdiffstats
path: root/components/cdm/renderer/widevine_key_systems.h
blob: 1d42b3b2d3c2b84930b5ea5bcd4c29f6fe9cef7f (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
// Copyright 2014 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.

#ifndef COMPONENTS_CDM_RENDERER_WIDEVINE_KEY_SYSTEMS_H_
#define COMPONENTS_CDM_RENDERER_WIDEVINE_KEY_SYSTEMS_H_

#include <vector>

#include "build/build_config.h"
#include "media/base/key_system_info.h"

namespace cdm {

enum WidevineCdmType {
  WIDEVINE,
#if defined(OS_ANDROID)
  WIDEVINE_HR_NON_COMPOSITING,
#endif  // defined(OS_ANDROID)
};

void AddWidevineWithCodecs(
    WidevineCdmType widevine_cdm_type,
    media::SupportedCodecs supported_codecs,
    std::vector<media::KeySystemInfo>* concrete_key_systems);

}  // namespace cdm

#endif  // COMPONENTS_CDM_RENDERER_WIDEVINE_KEY_SYSTEMS_H_