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

Unified Diff: webkit/renderer/media/crypto/key_systems.cc

Issue 17101027: Add a function to convert key system into UUID (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/renderer/media/crypto/key_systems.h ('k') | webkit/renderer/media/crypto/key_systems_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/renderer/media/crypto/key_systems.cc
diff --git a/webkit/renderer/media/crypto/key_systems.cc b/webkit/renderer/media/crypto/key_systems.cc
index 161ec88e7e26aed6fa4236e10ac934e136573082..6ece643481589e5647b95353734333a3cfce97ae 100644
--- a/webkit/renderer/media/crypto/key_systems.cc
+++ b/webkit/renderer/media/crypto/key_systems.cc
@@ -160,4 +160,15 @@ std::string GetPepperType(const std::string& key_system) {
}
#endif // defined(ENABLE_PEPPER_CDMS)
+#if defined(OS_ANDROID)
+std::vector<uint8> GetUUID(const std::string& key_system) {
+ for (int i = 0; i < kNumKeySystemToUUIDMapping; ++i) {
+ if (kKeySystemToUUIDMapping[i].key_system == key_system)
+ return std::vector<uint8>(kKeySystemToUUIDMapping[i].uuid,
+ kKeySystemToUUIDMapping[i].uuid + 16);
+ }
+ return std::vector<uint8>();
+}
+#endif // defined(OS_ANDROID)
+
} // namespace webkit_media
« no previous file with comments | « webkit/renderer/media/crypto/key_systems.h ('k') | webkit/renderer/media/crypto/key_systems_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698