Chromium Code Reviews| 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 30 matching lines...) Expand all Loading... | |
| 41 // All other static methods check IsAvailable() internally. There's no need | 41 // All other static methods check IsAvailable() internally. There's no need |
| 42 // to check IsAvailable() explicitly before calling them. | 42 // to check IsAvailable() explicitly before calling them. |
| 43 static bool IsAvailable(); | 43 static bool IsAvailable(); |
| 44 | 44 |
| 45 static bool IsSecurityLevelSupported(const std::string& key_system, | 45 static bool IsSecurityLevelSupported(const std::string& key_system, |
| 46 SecurityLevel security_level); | 46 SecurityLevel security_level); |
| 47 | 47 |
| 48 // Checks whether |key_system| is supported. | 48 // Checks whether |key_system| is supported. |
| 49 static bool IsKeySystemSupported(const std::string& key_system); | 49 static bool IsKeySystemSupported(const std::string& key_system); |
| 50 | 50 |
| 51 // Returns the list of the key system names that platform supports besides | |
| 52 // WideVine. | |
|
ddorwin
2014/06/11 01:54:02
Small 'V'.
However, it might be better to explain
ycheo (away)
2014/06/11 07:43:43
Done.
| |
| 53 static std::vector<std::string> GetPlatformKeySystemNames(); | |
| 54 | |
| 51 // Adds a new |key_system| with the associated |uuid|. | 55 // Adds a new |key_system| with the associated |uuid|. |
| 52 // This is used for other platforms to have a chance to register their | 56 // This is used for other platforms to have a chance to register their |
| 53 // own UUID mapping. | 57 // own UUID mapping. |
| 54 static void AddKeySystemUuidMapping(const std::string& key_system, | 58 static void AddKeySystemUuidMapping(const std::string& key_system, |
| 55 const std::vector<uint8>& uuid); | 59 const std::vector<uint8>& uuid); |
| 56 | 60 |
| 57 // Checks whether |key_system| is supported with |container_mime_type|. | 61 // Checks whether |key_system| is supported with |container_mime_type|. |
| 58 // |container_mime_type| must not be empty. | 62 // |container_mime_type| must not be empty. |
| 59 static bool IsKeySystemSupportedWithType( | 63 static bool IsKeySystemSupportedWithType( |
| 60 const std::string& key_system, | 64 const std::string& key_system, |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 168 ResetCredentialsCB reset_credentials_cb_; | 172 ResetCredentialsCB reset_credentials_cb_; |
| 169 | 173 |
| 170 PlayerTrackerImpl player_tracker_; | 174 PlayerTrackerImpl player_tracker_; |
| 171 | 175 |
| 172 DISALLOW_COPY_AND_ASSIGN(MediaDrmBridge); | 176 DISALLOW_COPY_AND_ASSIGN(MediaDrmBridge); |
| 173 }; | 177 }; |
| 174 | 178 |
| 175 } // namespace media | 179 } // namespace media |
| 176 | 180 |
| 177 #endif // MEDIA_BASE_ANDROID_MEDIA_DRM_BRIDGE_H_ | 181 #endif // MEDIA_BASE_ANDROID_MEDIA_DRM_BRIDGE_H_ |
| OLD | NEW |