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

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

Issue 185993004: Encrypted Media: Confine UUID code to MediaDrmBridge. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments addressed Created 6 years, 9 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
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 CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_
6 #define CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_ 6 #define CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 CONTENT_EXPORT std::string KeySystemNameForUMA(const std::string& key_system); 42 CONTENT_EXPORT std::string KeySystemNameForUMA(const std::string& key_system);
43 43
44 // Returns whether AesDecryptor can be used for the given |concrete_key_system|. 44 // Returns whether AesDecryptor can be used for the given |concrete_key_system|.
45 CONTENT_EXPORT bool CanUseAesDecryptor(const std::string& concrete_key_system); 45 CONTENT_EXPORT bool CanUseAesDecryptor(const std::string& concrete_key_system);
46 46
47 #if defined(ENABLE_PEPPER_CDMS) 47 #if defined(ENABLE_PEPPER_CDMS)
48 // Returns the Pepper MIME type for |concrete_key_system|. 48 // Returns the Pepper MIME type for |concrete_key_system|.
49 // Returns empty string if |concrete_key_system| is unknown or not Pepper-based. 49 // Returns empty string if |concrete_key_system| is unknown or not Pepper-based.
50 CONTENT_EXPORT std::string GetPepperType( 50 CONTENT_EXPORT std::string GetPepperType(
51 const std::string& concrete_key_system); 51 const std::string& concrete_key_system);
52 #elif defined(OS_ANDROID)
53 // Convert |concrete_key_system| to 16-byte Android UUID.
54 CONTENT_EXPORT std::vector<uint8> GetUUID(
55 const std::string& concrete_key_system);
56 #endif 52 #endif
57 53
58 } // namespace content 54 } // namespace content
59 55
60 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_ 56 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698