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 WEBKIT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_ | 5 #ifndef WEBKIT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_ |
6 #define WEBKIT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_ | 6 #define WEBKIT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 // Returns whether AesDecryptor can be used for the given |key_system|. | 34 // Returns whether AesDecryptor can be used for the given |key_system|. |
35 bool CanUseAesDecryptor(const std::string& key_system); | 35 bool CanUseAesDecryptor(const std::string& key_system); |
36 | 36 |
37 #if defined(ENABLE_PEPPER_CDMS) | 37 #if defined(ENABLE_PEPPER_CDMS) |
38 // Returns the Pepper MIME type for |key_system|. | 38 // Returns the Pepper MIME type for |key_system|. |
39 // Returns an empty string if |key_system| is unknown or not Pepper-based. | 39 // Returns an empty string if |key_system| is unknown or not Pepper-based. |
40 std::string GetPepperType(const std::string& key_system); | 40 std::string GetPepperType(const std::string& key_system); |
41 #endif | 41 #endif |
42 | 42 |
| 43 #if defined(OS_ANDROID) |
| 44 // Convert |key_system| to 16-byte Android UUID. |
| 45 std::vector<uint8> GetUUID(const std::string& key_system); |
| 46 #endif |
| 47 |
43 } // namespace webkit_media | 48 } // namespace webkit_media |
44 | 49 |
45 #endif // WEBKIT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_ | 50 #endif // WEBKIT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_ |
OLD | NEW |