| Index: content/renderer/media/crypto/key_systems.h
|
| diff --git a/content/renderer/media/crypto/key_systems.h b/content/renderer/media/crypto/key_systems.h
|
| index 1932e1eb33048d6c0f0e83dbcdb35f04277bb29f..a1e9f59b30f6ec1e19401eb15f8bdc5970b08957 100644
|
| --- a/content/renderer/media/crypto/key_systems.h
|
| +++ b/content/renderer/media/crypto/key_systems.h
|
| @@ -32,6 +32,29 @@ class WebString;
|
|
|
| namespace content {
|
|
|
| +// Adds a concrete key system along with platform-specific information about how
|
| +// to instantiate it. Must be called before AddSupportedType().
|
| +// May only be called once per |key_system|.
|
| +// When not empty, |parent_key_system| will add a mapping to the concrete
|
| +// |key_system| that can be used to check supported types.
|
| +CONTENT_EXPORT void AddConcreteSupportedKeySystem(
|
| + const std::string& key_system,
|
| + bool use_aes_decryptor,
|
| +#if defined(ENABLE_PEPPER_CDMS)
|
| + const std::string& pepper_type,
|
| +#elif defined(OS_ANDROID)
|
| + const uint8 uuid[16],
|
| +#endif
|
| + const std::string& parent_key_system);
|
| +
|
| +// Specifies the container and codec combinations supported by |key_system|.
|
| +// Multiple codecs can be listed. In all cases, the container
|
| +// without a codec is also supported.
|
| +// |key_system| must be a concrete supported key system.
|
| +CONTENT_EXPORT void AddSupportedType(const std::string& key_system,
|
| + const std::string& mime_type,
|
| + const std::string& codecs_list);
|
| +
|
| // Returns whether |key_system| is a real supported key system that can be
|
| // instantiated.
|
| // Abstract parent |key_system| strings will return false.
|
| @@ -51,17 +74,15 @@ CONTENT_EXPORT bool IsSupportedKeySystemWithMediaMimeType(
|
| CONTENT_EXPORT std::string KeySystemNameForUMA(
|
| const WebKit::WebString& key_system);
|
|
|
| -// Returns whether AesDecryptor can be used for the given |key_system|.
|
| -CONTENT_EXPORT bool CanUseAesDecryptor(const std::string& key_system);
|
| +// Returns whether AesDecryptor can be used for the given |concrete_key_system|.
|
| +CONTENT_EXPORT bool CanUseAesDecryptor(const std::string& concrete_key_system);
|
|
|
| #if defined(ENABLE_PEPPER_CDMS)
|
| // Returns the Pepper MIME type for |concrete_key_system|.
|
| // Returns empty string if |concrete_key_system| is unknown or not Pepper-based.
|
| CONTENT_EXPORT std::string GetPepperType(
|
| const std::string& concrete_key_system);
|
| -#endif
|
| -
|
| -#if defined(OS_ANDROID)
|
| +#elif defined(OS_ANDROID)
|
| // Convert |concrete_key_system| to 16-byte Android UUID.
|
| CONTENT_EXPORT std::vector<uint8> GetUUID(
|
| const std::string& concrete_key_system);
|
|
|