summaryrefslogtreecommitdiffstats
path: root/components/cdm/renderer/widevine_key_systems.h
blob: 3bed60ca4a601fc272b5325929020d7c1b431818 (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
// 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 "content/public/renderer/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,
    content::SupportedCodecs supported_codecs,
    std::vector<content::KeySystemInfo>* concrete_key_systems);

#if defined(OS_ANDROID)
void AddAndroidWidevine(
    std::vector<content::KeySystemInfo>* concrete_key_systems);
#endif  // defined(OS_ANDROID)

}  // namespace cdm

#endif  // COMPONENTS_CDM_RENDERER_WIDEVINE_KEY_SYSTEMS_H_