-
Notifications
You must be signed in to change notification settings - Fork 927
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete copied logic for creating widevine CdmInfo
Instead, use cached CdmInfo from CdmRegistryImpl.
- Loading branch information
Showing
3 changed files
with
40 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
diff --git a/content/browser/media/cdm_registry_impl.h b/content/browser/media/cdm_registry_impl.h | ||
index 303f3c59b3201ab78c84ae3803b48b37d9f8c998..3eac8905fb8ec6a4f4c050bc290f92065894b4f0 100644 | ||
index 303f3c59b3201ab78c84ae3803b48b37d9f8c998..5dde1606f0dc421467144d813fc0f7b9431e3fe1 100644 | ||
--- a/content/browser/media/cdm_registry_impl.h | ||
+++ b/content/browser/media/cdm_registry_impl.h | ||
@@ -32,6 +32,10 @@ class CONTENT_EXPORT CdmRegistryImpl : public CdmRegistry { | ||
CdmRegistryImpl(); | ||
~CdmRegistryImpl() override; | ||
@@ -26,6 +26,11 @@ class CONTENT_EXPORT CdmRegistryImpl : public CdmRegistry { | ||
void RegisterCdm(const CdmInfo& info) override; | ||
const std::vector<CdmInfo>& GetAllRegisteredCdms() override; | ||
|
||
+#if defined(BRAVE_CHROMIUM_BUILD) | ||
+#if defined(BRAVE_CHROMIUM_BUILD) && defined(OS_LINUX) | ||
+ const CdmInfo& cached_widevine_cdm_info() const; | ||
+ void Init_ChromiumImpl(); | ||
+#endif | ||
+ | ||
std::vector<CdmInfo> cdms_; | ||
private: | ||
friend class CdmRegistryImplTest; | ||
|
||
DISALLOW_COPY_AND_ASSIGN(CdmRegistryImpl); |