Chromium Code Reviews| Index: media/base/key_systems.h |
| diff --git a/media/base/key_systems.h b/media/base/key_systems.h |
| index 93317a118fcd117032cd452da44a54fb40e745ba..39671cc2a1977eed48c23a0f54a8721229f14a65 100644 |
| --- a/media/base/key_systems.h |
| +++ b/media/base/key_systems.h |
| @@ -85,27 +85,32 @@ MEDIA_EXPORT std::string GetPepperType( |
| const std::string& concrete_key_system); |
| #endif |
| -// Returns whether |key_system| supports persistent-license sessions. |
| -MEDIA_EXPORT bool IsPersistentLicenseSessionSupported( |
| +// Return which configuration rule to use for a robustness requirement. |
|
ddorwin
2015/03/16 23:25:08
"Return_s_" here and below.
ddorwin
2015/03/16 23:25:08
Does the caller really "use" the rule?
sandersd (OOO until July 31)
2015/03/17 22:10:39
Done.
sandersd (OOO until July 31)
2015/03/17 22:10:39
Done.
|
| +// TODO(sandersd): Also take a list of codecs, as they may affect the result. |
| +MEDIA_EXPORT EmeConfigRule GetRobustnessConfigRule( |
| const std::string& key_system, |
| - bool is_permission_granted); |
| + EmeMediaType media_type, |
| + EmeRobustness robustness); |
| -// Returns whether |key_system| supports persistent-release-message sessions. |
| -MEDIA_EXPORT bool IsPersistentReleaseMessageSessionSupported( |
| - const std::string& key_system, |
| - bool is_permission_granted); |
| +// Return which configuration rule to use for persistent-license sessions. |
| +MEDIA_EXPORT EmeConfigRule GetPersistentLicenseSessionConfigRule( |
| + const std::string& key_system); |
| + |
| +// Return which configuration rule to use for persistent-release-message |
| +// sessions. |
| +MEDIA_EXPORT EmeConfigRule GetPersistentReleaseMessageSessionConfigRule( |
| + const std::string& key_system); |
| -// Returns whether |key_system| supports persistent state as requested. |
| -MEDIA_EXPORT bool IsPersistentStateRequirementSupported( |
| +// Return which configuration rule to use for a persistent state requirement. |
| +MEDIA_EXPORT EmeConfigRule GetPersistentStateConfigRule( |
| const std::string& key_system, |
| - EmeFeatureRequirement requirement, |
| - bool is_permission_granted); |
| + EmeFeatureRequirement requirement); |
| -// Returns whether |key_system| supports distinctive identifiers as requested. |
| -MEDIA_EXPORT bool IsDistinctiveIdentifierRequirementSupported( |
| +// Return which configuration rule to use for a distinctive identifier |
| +// requirement. |
| +MEDIA_EXPORT EmeConfigRule GetDistinctiveIdentifierConfigRule( |
| const std::string& key_system, |
| - EmeFeatureRequirement requirement, |
| - bool is_permission_granted); |
| + EmeFeatureRequirement requirement); |
| #if defined(UNIT_TEST) |
| // Helper functions to add container/codec types for testing purposes. |