Index: media/base/android/media_drm_bridge.h |
diff --git a/media/base/android/media_drm_bridge.h b/media/base/android/media_drm_bridge.h |
index 58b947bdc0685dfa4bd7b529ed03431c049e3a7f..c36447f1896354b9ef747f8a4c449ceb8081b289 100644 |
--- a/media/base/android/media_drm_bridge.h |
+++ b/media/base/android/media_drm_bridge.h |
@@ -41,23 +41,27 @@ class MEDIA_EXPORT MediaDrmBridge : public MediaKeys { |
// Checks whether MediaDRM is available. |
static bool IsAvailable(); |
- static bool IsSecurityLevelSupported(const std::vector<uint8>& scheme_uuid, |
+ // TODO(xhwang): Add tests for MediaDrmBridge. See http://crbug.com/303864 |
+ static bool IsSecurityLevelSupported(const std::string& key_system, |
SecurityLevel security_level); |
- static bool IsCryptoSchemeSupported(const std::vector<uint8>& scheme_uuid, |
- const std::string& container_mime_type); |
+ // TODO(xhwang): The |container_mime_type| is not the same as contentType in |
+ // the EME spec. Revisit this once the spec issue with initData type is |
+ // resolved. |
+ static bool IsKeySystemSupportedWithType( |
+ const std::string& key_system, |
+ const std::string& container_mime_type); |
static bool IsSecureDecoderRequired(SecurityLevel security_level); |
static bool RegisterMediaDrmBridge(JNIEnv* env); |
- // Returns a MediaDrmBridge instance if |scheme_uuid| is supported, or a NULL |
+ // Returns a MediaDrmBridge instance if |key_system| is supported, or a NULL |
// pointer otherwise. |
- static scoped_ptr<MediaDrmBridge> Create( |
- int cdm_id, |
- const std::vector<uint8>& scheme_uuid, |
- const GURL& frame_url, |
- MediaPlayerManager* manager); |
+ static scoped_ptr<MediaDrmBridge> Create(int cdm_id, |
+ const std::string& key_system, |
+ const GURL& frame_url, |
+ MediaPlayerManager* manager); |
// Returns true if |security_level| is successfully set, or false otherwise. |
// Call this function right after Create() and before any other calls. |