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

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

Issue 320383005: Add an IPC to return the platform supported key-system names in Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed xhwang's comments. 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
« no previous file with comments | « components/cdm/renderer/widevine_key_systems.cc ('k') | media/base/android/media_drm_bridge.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 30 matching lines...) Expand all
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 platform-supported key system names that
52 // are not handled by Chrome explicitly.
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
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_
OLDNEW
« no previous file with comments | « components/cdm/renderer/widevine_key_systems.cc ('k') | media/base/android/media_drm_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698