| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_MEDIA_CRYPTO_KEY_SYSTEMS_H_ | 5 #ifndef WEBKIT_MEDIA_CRYPTO_KEY_SYSTEMS_H_ |
| 6 #define WEBKIT_MEDIA_CRYPTO_KEY_SYSTEMS_H_ | 6 #define WEBKIT_MEDIA_CRYPTO_KEY_SYSTEMS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 const std::vector<std::string>& codecs, | 27 const std::vector<std::string>& codecs, |
| 28 const std::string& key_system); | 28 const std::string& key_system); |
| 29 | 29 |
| 30 // Returns a name for |key_system| suitable to UMA logging. | 30 // Returns a name for |key_system| suitable to UMA logging. |
| 31 std::string KeySystemNameForUMA(const std::string& key_system); | 31 std::string KeySystemNameForUMA(const std::string& key_system); |
| 32 std::string KeySystemNameForUMA(const WebKit::WebString& key_system); | 32 std::string KeySystemNameForUMA(const WebKit::WebString& key_system); |
| 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 // Returns the plugin type given a |key_system|. | 37 #if defined(ENABLE_PEPPER_CDMS) |
| 38 // Returns an empty string if no plugin type is found for |key_system|. | 38 // Returns the Pepper MIME type for |key_system|. |
| 39 std::string GetPluginType(const std::string& key_system); | 39 // Returns an empty string if |key_system| is unknown or not Pepper-based. |
| 40 std::string GetPepperType(const std::string& key_system); |
| 41 #endif |
| 40 | 42 |
| 41 } // namespace webkit_media | 43 } // namespace webkit_media |
| 42 | 44 |
| 43 #endif // WEBKIT_MEDIA_CRYPTO_KEY_SYSTEMS_H_ | 45 #endif // WEBKIT_MEDIA_CRYPTO_KEY_SYSTEMS_H_ |
| OLD | NEW |