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

Side by Side Diff: webkit/renderer/media/crypto/key_systems.h

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/base/android/media_drm_bridge.cc ('k') | webkit/renderer/media/crypto/key_systems.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 WEBKIT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_ 5 #ifndef WEBKIT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_
6 #define WEBKIT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_ 6 #define WEBKIT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 22 matching lines...) Expand all
33 33
34 // Returns whether AesDecryptor can be used for the given |key_system|. 34 // Returns whether AesDecryptor can be used for the given |key_system|.
35 bool CanUseAesDecryptor(const std::string& key_system); 35 bool CanUseAesDecryptor(const std::string& key_system);
36 36
37 #if defined(ENABLE_PEPPER_CDMS) 37 #if defined(ENABLE_PEPPER_CDMS)
38 // Returns the Pepper MIME type for |key_system|. 38 // Returns the Pepper MIME type for |key_system|.
39 // Returns an empty string if |key_system| is unknown or not Pepper-based. 39 // Returns an empty string if |key_system| is unknown or not Pepper-based.
40 std::string GetPepperType(const std::string& key_system); 40 std::string GetPepperType(const std::string& key_system);
41 #endif 41 #endif
42 42
43 #if defined(OS_ANDROID)
44 // Convert |key_system| to 16-byte Android UUID.
45 std::vector<uint8> GetUUID(const std::string& key_system);
46 #endif
47
43 } // namespace webkit_media 48 } // namespace webkit_media
44 49
45 #endif // WEBKIT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_ 50 #endif // WEBKIT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_
OLDNEW
« no previous file with comments | « media/base/android/media_drm_bridge.cc ('k') | webkit/renderer/media/crypto/key_systems.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698