Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Side by Side Diff: media/base/android/media_drm_bridge.h

Issue 333003003: aw: Support the platform specific key-systems. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added 'media/base/android/java' into android_webview/java/DEPS. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 platform-supported key system names that 51 // Returns the list of the platform-supported key system names that
52 // are not handled by Chrome explicitly. 52 // are not handled by Chrome explicitly.
53 static std::vector<std::string> GetPlatformKeySystemNames(); 53 static std::vector<std::string> GetPlatformKeySystemNames();
54 54
55 // Adds a new |key_system| with the associated |uuid|.
56 // This is used for other platforms to have a chance to register their
57 // own UUID mapping.
58 static void AddKeySystemUuidMapping(const std::string& key_system,
59 const std::vector<uint8>& uuid);
60
61 // Checks whether |key_system| is supported with |container_mime_type|. 55 // Checks whether |key_system| is supported with |container_mime_type|.
62 // |container_mime_type| must not be empty. 56 // |container_mime_type| must not be empty.
63 static bool IsKeySystemSupportedWithType( 57 static bool IsKeySystemSupportedWithType(
64 const std::string& key_system, 58 const std::string& key_system,
65 const std::string& container_mime_type); 59 const std::string& container_mime_type);
66 60
67 static bool IsSecureDecoderRequired(SecurityLevel security_level); 61 static bool IsSecureDecoderRequired(SecurityLevel security_level);
68 62
69 static bool RegisterMediaDrmBridge(JNIEnv* env); 63 static bool RegisterMediaDrmBridge(JNIEnv* env);
70 64
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 ResetCredentialsCB reset_credentials_cb_; 166 ResetCredentialsCB reset_credentials_cb_;
173 167
174 PlayerTrackerImpl player_tracker_; 168 PlayerTrackerImpl player_tracker_;
175 169
176 DISALLOW_COPY_AND_ASSIGN(MediaDrmBridge); 170 DISALLOW_COPY_AND_ASSIGN(MediaDrmBridge);
177 }; 171 };
178 172
179 } // namespace media 173 } // namespace media
180 174
181 #endif // MEDIA_BASE_ANDROID_MEDIA_DRM_BRIDGE_H_ 175 #endif // MEDIA_BASE_ANDROID_MEDIA_DRM_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698