| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 MEDIA_BASE_ANDROID_MEDIA_DRM_BRIDGE_H_ | 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_DRM_BRIDGE_H_ |
| 6 #define MEDIA_BASE_ANDROID_MEDIA_DRM_BRIDGE_H_ | 6 #define MEDIA_BASE_ANDROID_MEDIA_DRM_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 // All other static methods check IsAvailable() internally. There's no need | 40 // All other static methods check IsAvailable() internally. There's no need |
| 41 // to check IsAvailable() explicitly before calling them. | 41 // to check IsAvailable() explicitly before calling them. |
| 42 static bool IsAvailable(); | 42 static bool IsAvailable(); |
| 43 | 43 |
| 44 static bool IsSecurityLevelSupported(const std::string& key_system, | 44 static bool IsSecurityLevelSupported(const std::string& key_system, |
| 45 SecurityLevel security_level); | 45 SecurityLevel security_level); |
| 46 | 46 |
| 47 // Checks whether |key_system| is supported. | 47 // Checks whether |key_system| is supported. |
| 48 static bool IsKeySystemSupported(const std::string& key_system); | 48 static bool IsKeySystemSupported(const std::string& key_system); |
| 49 | 49 |
| 50 // Adds a new |key_system| with the associated |uuid|. |
| 51 static void AddKeySystem(const std::string& key_system, |
| 52 const std::vector<uint8>& uuid); |
| 53 |
| 50 // Checks whether |key_system| is supported with |container_mime_type|. | 54 // Checks whether |key_system| is supported with |container_mime_type|. |
| 51 // |container_mime_type| must not be empty. | 55 // |container_mime_type| must not be empty. |
| 52 static bool IsKeySystemSupportedWithType( | 56 static bool IsKeySystemSupportedWithType( |
| 53 const std::string& key_system, | 57 const std::string& key_system, |
| 54 const std::string& container_mime_type); | 58 const std::string& container_mime_type); |
| 55 | 59 |
| 56 static bool IsSecureDecoderRequired(SecurityLevel security_level); | 60 static bool IsSecureDecoderRequired(SecurityLevel security_level); |
| 57 | 61 |
| 58 static bool RegisterMediaDrmBridge(JNIEnv* env); | 62 static bool RegisterMediaDrmBridge(JNIEnv* env); |
| 59 | 63 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 base::Closure media_crypto_ready_cb_; | 155 base::Closure media_crypto_ready_cb_; |
| 152 | 156 |
| 153 ResetCredentialsCB reset_credentials_cb_; | 157 ResetCredentialsCB reset_credentials_cb_; |
| 154 | 158 |
| 155 DISALLOW_COPY_AND_ASSIGN(MediaDrmBridge); | 159 DISALLOW_COPY_AND_ASSIGN(MediaDrmBridge); |
| 156 }; | 160 }; |
| 157 | 161 |
| 158 } // namespace media | 162 } // namespace media |
| 159 | 163 |
| 160 #endif // MEDIA_BASE_ANDROID_MEDIA_DRM_BRIDGE_H_ | 164 #endif // MEDIA_BASE_ANDROID_MEDIA_DRM_BRIDGE_H_ |
| OLD | NEW |