summaryrefslogtreecommitdiffstats
path: root/components/cdm/renderer/widevine_key_systems.h
blob: dc05bb847249ed6496ecf38184b9034982de0948 (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
35
// 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,
    media::EmeRobustness max_audio_robustness,
    media::EmeRobustness max_video_robustness,
    media::EmeSessionTypeSupport persistent_license_support,
    media::EmeSessionTypeSupport persistent_release_message_support,
    media::EmeFeatureSupport persistent_state_support,
    media::EmeFeatureSupport distinctive_identifier_support,
    std::vector<media::KeySystemInfo>* concrete_key_systems);

}  // namespace cdm

#endif  // COMPONENTS_CDM_RENDERER_WIDEVINE_KEY_SYSTEMS_H_