Chromium Code Reviews| Index: media/base/key_systems.h |
| diff --git a/media/base/key_systems.h b/media/base/key_systems.h |
| index 73eca6f486361c6c994d03e8e97c4379783006e7..cb1ef768b72bb0042cf3a740639a893cb89dd30b 100644 |
| --- a/media/base/key_systems.h |
| +++ b/media/base/key_systems.h |
| @@ -9,6 +9,7 @@ |
| #include <vector> |
| #include "base/memory/scoped_ptr.h" |
| +#include "media/base/eme_constants.h" |
| #include "media/base/media_export.h" |
| namespace media { |
| @@ -84,6 +85,28 @@ MEDIA_EXPORT std::string GetPepperType( |
| const std::string& concrete_key_system); |
| #endif |
| +// Returns whether |key_system| supports persistent-license sessions. |
| +MEDIA_EXPORT bool IsPersistentLicenseSupported( |
|
ddorwin
2015/02/19 01:41:34
...SessionSupported
sandersd (OOO until July 31)
2015/02/19 21:08:35
Done.
|
| + const std::string& key_system, |
| + bool permission_granted); |
|
ddorwin
2015/02/19 01:41:34
nit: is_...
sandersd (OOO until July 31)
2015/02/19 21:08:35
Done.
|
| + |
| +// Returns whether |key_system| supports persistent-release-message sessions. |
| +MEDIA_EXPORT bool IsPersistentReleaseMessageSupported( |
| + const std::string& key_system, |
| + bool permission_granted); |
| + |
| +// Returns whether |key_system| supports persistent state as requested. |
| +MEDIA_EXPORT bool IsPersistentStateSupported( |
|
ddorwin
2015/02/19 01:41:34
IsCompatibleWithPersistentStateRequirement?
(The
sandersd (OOO until July 31)
2015/02/19 21:08:35
Done.
|
| + const std::string& key_system, |
| + EmeFeatureRequirement requirement, |
| + bool permission_granted); |
| + |
| +// Returns whether |key_system| supports distinctive identifiers as requested. |
| +MEDIA_EXPORT bool IsDistinctiveIdentifierSupported( |
| + const std::string& key_system, |
| + EmeFeatureRequirement requirement, |
| + bool permission_granted); |
| + |
| #if defined(UNIT_TEST) |
| // Helper functions to add container/codec types for testing purposes. |
| MEDIA_EXPORT void AddContainerMask(const std::string& container, uint32 mask); |