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
media / base / cdm_context.cc [blame]
// Copyright 2014 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/base/cdm_context.h"
#include "build/build_config.h"
#include "media/base/callback_registry.h"
namespace media {
CdmContext::CdmContext() = default;
CdmContext::~CdmContext() = default;
std::unique_ptr<CallbackRegistration> CdmContext::RegisterEventCB(
EventCB /* event_cb */) {
return nullptr;
}
Decryptor* CdmContext::GetDecryptor() {
return nullptr;
}
std::optional<base::UnguessableToken> CdmContext::GetCdmId() const {
return std::nullopt;
}
std::string CdmContext::CdmIdToString(const base::UnguessableToken* cdm_id) {
return cdm_id ? cdm_id->ToString() : "null";
}
#if BUILDFLAG(IS_WIN)
bool CdmContext::RequiresMediaFoundationRenderer() {
return false;
}
scoped_refptr<MediaFoundationCdmProxy>
CdmContext::GetMediaFoundationCdmProxy() {
return nullptr;
}
#endif
#if BUILDFLAG(IS_ANDROID)
MediaCryptoContext* CdmContext::GetMediaCryptoContext() {
return nullptr;
}
#endif
#if BUILDFLAG(IS_FUCHSIA)
FuchsiaCdmContext* CdmContext::GetFuchsiaCdmContext() {
return nullptr;
}
#endif
#if BUILDFLAG(IS_CHROMEOS)
chromeos::ChromeOsCdmContext* CdmContext::GetChromeOsCdmContext() {
return nullptr;
}
#endif
} // namespace media