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

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

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 13
14 namespace WebKit { 14 namespace blink {
15 class WebString; 15 class WebString;
16 } 16 }
17 17
18 namespace content { 18 namespace content {
19 19
20 // Returns whether |key_system| is a real supported key system that can be 20 // Returns whether |key_system| is a real supported key system that can be
21 // instantiated. 21 // instantiated.
22 // Abstract parent |key_system| strings will return false. 22 // Abstract parent |key_system| strings will return false.
23 // Call IsSupportedKeySystemWithMediaMimeType() to determine whether a 23 // Call IsSupportedKeySystemWithMediaMimeType() to determine whether a
24 // |key_system| supports a specific type of media or to check parent key 24 // |key_system| supports a specific type of media or to check parent key
25 // systems. 25 // systems.
26 CONTENT_EXPORT bool IsConcreteSupportedKeySystem( 26 CONTENT_EXPORT bool IsConcreteSupportedKeySystem(
27 const WebKit::WebString& key_system); 27 const blink::WebString& key_system);
28 28
29 // Returns whether |key_sytem| supports the specified media type and codec(s). 29 // Returns whether |key_sytem| supports the specified media type and codec(s).
30 CONTENT_EXPORT bool IsSupportedKeySystemWithMediaMimeType( 30 CONTENT_EXPORT bool IsSupportedKeySystemWithMediaMimeType(
31 const std::string& mime_type, 31 const std::string& mime_type,
32 const std::vector<std::string>& codecs, 32 const std::vector<std::string>& codecs,
33 const std::string& key_system); 33 const std::string& key_system);
34 34
35 // Returns a name for |key_system| suitable to UMA logging. 35 // Returns a name for |key_system| suitable to UMA logging.
36 CONTENT_EXPORT std::string KeySystemNameForUMA( 36 CONTENT_EXPORT std::string KeySystemNameForUMA(
37 const WebKit::WebString& key_system); 37 const blink::WebString& key_system);
38 38
39 // Returns whether AesDecryptor can be used for the given |concrete_key_system|. 39 // Returns whether AesDecryptor can be used for the given |concrete_key_system|.
40 CONTENT_EXPORT bool CanUseAesDecryptor(const std::string& concrete_key_system); 40 CONTENT_EXPORT bool CanUseAesDecryptor(const std::string& concrete_key_system);
41 41
42 #if defined(ENABLE_PEPPER_CDMS) 42 #if defined(ENABLE_PEPPER_CDMS)
43 // Returns the Pepper MIME type for |concrete_key_system|. 43 // Returns the Pepper MIME type for |concrete_key_system|.
44 // Returns empty string if |concrete_key_system| is unknown or not Pepper-based. 44 // Returns empty string if |concrete_key_system| is unknown or not Pepper-based.
45 CONTENT_EXPORT std::string GetPepperType( 45 CONTENT_EXPORT std::string GetPepperType(
46 const std::string& concrete_key_system); 46 const std::string& concrete_key_system);
47 #elif defined(OS_ANDROID) 47 #elif defined(OS_ANDROID)
48 // Convert |concrete_key_system| to 16-byte Android UUID. 48 // Convert |concrete_key_system| to 16-byte Android UUID.
49 CONTENT_EXPORT std::vector<uint8> GetUUID( 49 CONTENT_EXPORT std::vector<uint8> GetUUID(
50 const std::string& concrete_key_system); 50 const std::string& concrete_key_system);
51 #endif 51 #endif
52 52
53 } // namespace content 53 } // namespace content
54 54
55 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_ 55 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_H_
OLDNEW
« no previous file with comments | « content/renderer/media/crypto/content_decryption_module_factory.cc ('k') | content/renderer/media/crypto/key_systems.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698