John Rummell | 45cde43 | 2023-06-01 23:46:02 | [diff] [blame] | 1 | // Copyright 2023 The Chromium Authors |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef COMPONENTS_CDM_COMMON_ANDROID_CDM_REGISTRATION_H_ |
| 6 | #define COMPONENTS_CDM_COMMON_ANDROID_CDM_REGISTRATION_H_ |
| 7 | |
| 8 | #include <vector> |
| 9 | |
| 10 | #include "content/public/common/cdm_info.h" |
| 11 | #include "third_party/widevine/cdm/buildflags.h" |
| 12 | |
| 13 | namespace cdm { |
| 14 | |
| 15 | #if BUILDFLAG(ENABLE_WIDEVINE) |
| 16 | // Add Widevine Content Decryption Module, if enabled. |
| 17 | void AddAndroidWidevineCdm(std::vector<content::CdmInfo>* cdms); |
| 18 | #endif |
| 19 | |
| 20 | // Add other platform-supported Widevine Content Decryption Modules which are |
| 21 | // not explicitly handled by Chrome. |
| 22 | void AddOtherAndroidCdms(std::vector<content::CdmInfo>* cdms); |
| 23 | |
| 24 | } // namespace cdm |
| 25 | |
| 26 | #endif // COMPONENTS_CDM_COMMON_ANDROID_CDM_REGISTRATION_H_ |