| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 #if defined(ENABLE_PEPPER_CDMS) | 86 #if defined(ENABLE_PEPPER_CDMS) |
| 87 // Returns the Pepper MIME type for |concrete_key_system|. | 87 // Returns the Pepper MIME type for |concrete_key_system|. |
| 88 // Returns empty string if |concrete_key_system| is unknown or not Pepper-based. | 88 // Returns empty string if |concrete_key_system| is unknown or not Pepper-based. |
| 89 MEDIA_EXPORT std::string GetPepperType( | 89 MEDIA_EXPORT std::string GetPepperType( |
| 90 const std::string& concrete_key_system); | 90 const std::string& concrete_key_system); |
| 91 #endif | 91 #endif |
| 92 | 92 |
| 93 #if defined(UNIT_TEST) | 93 #if defined(UNIT_TEST) |
| 94 // Helper functions to add container/codec types for testing purposes. | 94 // Helper functions to add container/codec types for testing purposes. |
| 95 MEDIA_EXPORT void AddContainerMask(const std::string& container, uint32_t mask); | 95 // Call AddCodecMask() first to ensure the mask values passed to |
| 96 // AddMimeTypeCodecMask() already exist. |
| 96 MEDIA_EXPORT void AddCodecMask(EmeMediaType media_type, | 97 MEDIA_EXPORT void AddCodecMask(EmeMediaType media_type, |
| 97 const std::string& codec, | 98 const std::string& codec, |
| 98 uint32_t mask); | 99 uint32_t mask); |
| 100 MEDIA_EXPORT void AddMimeTypeCodecMask(const std::string& mime_type, |
| 101 uint32_t mask); |
| 99 #endif // defined(UNIT_TEST) | 102 #endif // defined(UNIT_TEST) |
| 100 | 103 |
| 101 } // namespace media | 104 } // namespace media |
| 102 | 105 |
| 103 #endif // MEDIA_BASE_KEY_SYSTEMS_H_ | 106 #endif // MEDIA_BASE_KEY_SYSTEMS_H_ |
| OLD | NEW |