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
36
37
38
media / base / cdm_config.h [blame]
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_BASE_CDM_CONFIG_H_
#define MEDIA_BASE_CDM_CONFIG_H_
#include <iosfwd>
#include <string>
#include "media/base/media_export.h"
namespace media {
// The runtime configuration for new CDM instances as computed by
// `requestMediaKeySystemAccess()`. This is in some sense the Chromium-side
// counterpart of Blink's `WebMediaKeySystemConfiguration`.
struct MEDIA_EXPORT CdmConfig {
// The key system used for creating the CDM.
std::string key_system;
// Allows access to a distinctive identifier.
bool allow_distinctive_identifier = false;
// Allows access to persistent state.
bool allow_persistent_state = false;
// Uses hardware-secure codecs. Can only be set on platforms that support
// hardware secure decoding.
bool use_hw_secure_codecs = false;
};
MEDIA_EXPORT std::ostream& operator<<(std::ostream& os,
const CdmConfig& cdm_config);
} // namespace media
#endif // MEDIA_BASE_CDM_CONFIG_H_