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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
media / cdm / cdm_auxiliary_helper.cc [blame]
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/cdm/cdm_auxiliary_helper.h"
#include "build/build_config.h"
#include "media/base/cdm_context.h"
#include "media/cdm/cdm_helpers.h"
#if BUILDFLAG(IS_WIN)
#include <optional>
#include "media/cdm/media_foundation_cdm_data.h"
#endif // BUILDFLAG(IS_WIN)
namespace media {
CdmAuxiliaryHelper::CdmAuxiliaryHelper() = default;
CdmAuxiliaryHelper::~CdmAuxiliaryHelper() = default;
void CdmAuxiliaryHelper::SetFileReadCB(FileReadCB file_read_cb) {}
cdm::FileIO* CdmAuxiliaryHelper::CreateCdmFileIO(cdm::FileIOClient* client) {
return nullptr;
}
url::Origin CdmAuxiliaryHelper::GetCdmOrigin() {
return url::Origin();
}
void CdmAuxiliaryHelper::RecordUkm(const CdmMetricsData& cdm_metrics_data) {}
cdm::Buffer* CdmAuxiliaryHelper::CreateCdmBuffer(size_t capacity) {
return nullptr;
}
std::unique_ptr<VideoFrameImpl> CdmAuxiliaryHelper::CreateCdmVideoFrame() {
return nullptr;
}
void CdmAuxiliaryHelper::QueryStatus(QueryStatusCB callback) {
std::move(callback).Run(false, 0, 0);
}
void CdmAuxiliaryHelper::EnableProtection(uint32_t desired_protection_mask,
EnableProtectionCB callback) {
std::move(callback).Run(false);
}
void CdmAuxiliaryHelper::ChallengePlatform(const std::string& service_id,
const std::string& challenge,
ChallengePlatformCB callback) {
std::move(callback).Run(false, "", "", "");
}
void CdmAuxiliaryHelper::GetStorageId(uint32_t version, StorageIdCB callback) {
std::move(callback).Run(version, std::vector<uint8_t>());
}
#if BUILDFLAG(IS_WIN)
void CdmAuxiliaryHelper::GetMediaFoundationCdmData(
GetMediaFoundationCdmDataCB callback) {
std::move(callback).Run(std::make_unique<MediaFoundationCdmData>(
base::UnguessableToken::Null(), std::nullopt, base::FilePath()));
}
void CdmAuxiliaryHelper::SetCdmClientToken(
const std::vector<uint8_t>& client_token) {}
void CdmAuxiliaryHelper::OnCdmEvent(CdmEvent event, HRESULT hresult) {}
#endif // BUILDFLAG(IS_WIN)
} // namespace media