Chromium Code Reviews| 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 CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_ | 6 #define CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 44 // Returns whether AesDecryptor can be used for the given |concrete_key_system|. | 44 // Returns whether AesDecryptor can be used for the given |concrete_key_system|. |
| 45 CONTENT_EXPORT bool CanUseAesDecryptor(const std::string& concrete_key_system); | 45 CONTENT_EXPORT bool CanUseAesDecryptor(const std::string& concrete_key_system); |
| 46 | 46 |
| 47 #if defined(ENABLE_PEPPER_CDMS) | 47 #if defined(ENABLE_PEPPER_CDMS) |
| 48 // Returns the Pepper MIME type for |concrete_key_system|. | 48 // Returns the Pepper MIME type for |concrete_key_system|. |
| 49 // Returns empty string if |concrete_key_system| is unknown or not Pepper-based. | 49 // Returns empty string if |concrete_key_system| is unknown or not Pepper-based. |
| 50 CONTENT_EXPORT std::string GetPepperType( | 50 CONTENT_EXPORT std::string GetPepperType( |
| 51 const std::string& concrete_key_system); | 51 const std::string& concrete_key_system); |
| 52 #endif | 52 #endif |
| 53 | 53 |
| 54 // Helper functions to add extra container/codec masks. This can be used to add | |
| 55 // platform specific container/codec types that needs to be supported, or to add | |
| 56 // container/codec types for testing purposes. | |
| 57 CONTENT_EXPORT void AddContainerMask(const std::string& container, uint32 mask); | |
| 58 CONTENT_EXPORT void AddCodecMask(const std::string& codec, uint32 mask); | |
|
xhwang
2014/04/21 23:12:19
ddorwin: This is currently used by the test. But i
| |
| 59 | |
| 54 } // namespace content | 60 } // namespace content |
| 55 | 61 |
| 56 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_ | 62 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_ |
| OLD | NEW |