Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_MEDIA_KEY_SYSTEMS_H_ | 5 #ifndef WEBKIT_MEDIA_CRYPTO_KEY_SYSTEMS_H_ |
| 6 #define WEBKIT_MEDIA_KEY_SYSTEMS_H_ | 6 #define WEBKIT_MEDIA_CRYPTO_KEY_SYSTEMS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 namespace WebKit { | 11 namespace WebKit { |
| 12 class WebString; | 12 class WebString; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace webkit_media { | 15 namespace webkit_media { |
| 16 | 16 |
| 17 const char kClearKeyKeySystem[] = "webkit-org.w3.clearkey"; | |
|
scherkus (not reviewing)
2012/06/27 01:10:18
this can be declared here but initialized in the .
ddorwin
2012/06/27 04:07:15
This is only used to determine the CDM. We eventua
scherkus (not reviewing)
2012/06/27 04:22:23
Could you explain the UseAesDecryptor() approach a
ddorwin
2012/06/27 05:24:41
The string that is being exposed is only used in t
scherkus (not reviewing)
2012/06/27 05:34:11
I don't think it's really that big of an issue but
xhwang
2012/06/27 21:41:26
Done.
| |
| 18 | |
| 17 // Returns whether |key_sytem| is supported at all. | 19 // Returns whether |key_sytem| is supported at all. |
| 18 // Call IsSupportedKeySystemWithMediaMimeType() to determine whether a | 20 // Call IsSupportedKeySystemWithMediaMimeType() to determine whether a |
| 19 // |key_system| supports a specific type of media. | 21 // |key_system| supports a specific type of media. |
| 20 bool IsSupportedKeySystem(const WebKit::WebString& key_system); | 22 bool IsSupportedKeySystem(const WebKit::WebString& key_system); |
| 21 | 23 |
| 22 // Returns whether |key_sytem| supports the specified media type and codec(s). | 24 // Returns whether |key_sytem| supports the specified media type and codec(s). |
| 23 bool IsSupportedKeySystemWithMediaMimeType( | 25 bool IsSupportedKeySystemWithMediaMimeType( |
| 24 const std::string& mime_type, | 26 const std::string& mime_type, |
| 25 const std::vector<std::string>& codecs, | 27 const std::vector<std::string>& codecs, |
| 26 const std::string& key_system); | 28 const std::string& key_system); |
| 27 | 29 |
| 28 } // namespace webkit_media | 30 } // namespace webkit_media |
| 29 | 31 |
| 30 #endif // WEBKIT_MEDIA_KEY_SYSTEMS_H_ | 32 #endif // WEBKIT_MEDIA_CRYPTO_KEY_SYSTEMS_H_ |
| OLD | NEW |