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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 CONTENT_EXPORT std::string KeySystemNameForUMA(const std::string& key_system); | 42 CONTENT_EXPORT std::string KeySystemNameForUMA(const std::string& key_system); |
43 | 43 |
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 #elif defined(OS_ANDROID) | |
53 // Convert |concrete_key_system| to 16-byte Android UUID. | |
54 CONTENT_EXPORT std::vector<uint8> GetUUID( | |
55 const std::string& concrete_key_system); | |
56 #endif | 52 #endif |
57 | 53 |
58 } // namespace content | 54 } // namespace content |
59 | 55 |
60 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_ | 56 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_ |
OLD | NEW |