OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_BASE_KEY_SYSTEMS_H_ | 5 #ifndef MEDIA_BASE_KEY_SYSTEMS_H_ |
6 #define MEDIA_BASE_KEY_SYSTEMS_H_ | 6 #define MEDIA_BASE_KEY_SYSTEMS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
78 // Returns whether AesDecryptor can be used for the given |concrete_key_system|. | 78 // Returns whether AesDecryptor can be used for the given |concrete_key_system|. |
79 MEDIA_EXPORT bool CanUseAesDecryptor(const std::string& concrete_key_system); | 79 MEDIA_EXPORT bool CanUseAesDecryptor(const std::string& concrete_key_system); |
80 | 80 |
81 #if defined(ENABLE_PEPPER_CDMS) | 81 #if defined(ENABLE_PEPPER_CDMS) |
82 // Returns the Pepper MIME type for |concrete_key_system|. | 82 // Returns the Pepper MIME type for |concrete_key_system|. |
83 // Returns empty string if |concrete_key_system| is unknown or not Pepper-based. | 83 // Returns empty string if |concrete_key_system| is unknown or not Pepper-based. |
84 MEDIA_EXPORT std::string GetPepperType( | 84 MEDIA_EXPORT std::string GetPepperType( |
85 const std::string& concrete_key_system); | 85 const std::string& concrete_key_system); |
86 #endif | 86 #endif |
87 | 87 |
88 // Returns whether |key_system| supports the requested robustness level, and | |
89 // indicates how support should interacts with the encrypted media permission. | |
ddorwin
2015/03/13 19:24:47
Fix: "support should interacts"
sandersd (OOO until July 31)
2015/03/13 20:11:57
Done.
| |
90 // TODO(sandersd): Also take a list of codecs, as they affect support in some | |
ddorwin
2015/03/13 19:24:47
...as they may affect the result?
sandersd (OOO until July 31)
2015/03/13 20:11:57
Done.
| |
91 // cases. | |
92 MEDIA_EXPORT EmeRequirementSupport GetRobustnessRequirementSupport( | |
93 const std::string& key_system, | |
94 EmeMediaType media_type, | |
95 EmeRobustness robustness); | |
96 | |
88 // Returns whether |key_system| supports persistent-license sessions. | 97 // Returns whether |key_system| supports persistent-license sessions. |
89 MEDIA_EXPORT bool IsPersistentLicenseSessionSupported( | 98 MEDIA_EXPORT EmeRequirementSupport GetPersistentLicenseSessionSupport( |
90 const std::string& key_system, | 99 const std::string& key_system); |
91 bool is_permission_granted); | |
92 | 100 |
93 // Returns whether |key_system| supports persistent-release-message sessions. | 101 // Returns whether |key_system| supports persistent-release-message sessions. |
94 MEDIA_EXPORT bool IsPersistentReleaseMessageSessionSupported( | 102 MEDIA_EXPORT EmeRequirementSupport GetPersistentReleaseMessageSessionSupport( |
95 const std::string& key_system, | 103 const std::string& key_system); |
96 bool is_permission_granted); | |
97 | 104 |
98 // Returns whether |key_system| supports persistent state as requested. | 105 // Returns whether |key_system| supports persistent state as requested. |
99 MEDIA_EXPORT bool IsPersistentStateRequirementSupported( | 106 MEDIA_EXPORT EmeRequirementSupport GetPersistentStateRequirementSupport( |
100 const std::string& key_system, | 107 const std::string& key_system, |
101 EmeFeatureRequirement requirement, | 108 EmeFeatureRequirement requirement); |
102 bool is_permission_granted); | |
103 | 109 |
104 // Returns whether |key_system| supports distinctive identifiers as requested. | 110 // Returns whether |key_system| supports distinctive identifiers as requested. |
105 MEDIA_EXPORT bool IsDistinctiveIdentifierRequirementSupported( | 111 MEDIA_EXPORT EmeRequirementSupport GetDistinctiveIdentifierRequirementSupport( |
106 const std::string& key_system, | 112 const std::string& key_system, |
107 EmeFeatureRequirement requirement, | 113 EmeFeatureRequirement requirement); |
108 bool is_permission_granted); | |
109 | 114 |
110 #if defined(UNIT_TEST) | 115 #if defined(UNIT_TEST) |
111 // Helper functions to add container/codec types for testing purposes. | 116 // Helper functions to add container/codec types for testing purposes. |
112 MEDIA_EXPORT void AddContainerMask(const std::string& container, uint32 mask); | 117 MEDIA_EXPORT void AddContainerMask(const std::string& container, uint32 mask); |
113 MEDIA_EXPORT void AddCodecMask(const std::string& codec, uint32 mask); | 118 MEDIA_EXPORT void AddCodecMask(const std::string& codec, uint32 mask); |
114 #endif // defined(UNIT_TEST) | 119 #endif // defined(UNIT_TEST) |
115 | 120 |
116 } // namespace media | 121 } // namespace media |
117 | 122 |
118 #endif // MEDIA_BASE_KEY_SYSTEMS_H_ | 123 #endif // MEDIA_BASE_KEY_SYSTEMS_H_ |
OLD | NEW |