Chromium Code Reviews| Index: content/renderer/media/webcontentdecryptionmodule_impl.h |
| diff --git a/content/renderer/media/webcontentdecryptionmodule_impl.h b/content/renderer/media/webcontentdecryptionmodule_impl.h |
| index ecd5198efda32c69c9fad9cc9ad1117707ceb0db..1babaf3fa87bc98cb5a17f7dea0556683ee41344 100644 |
| --- a/content/renderer/media/webcontentdecryptionmodule_impl.h |
| +++ b/content/renderer/media/webcontentdecryptionmodule_impl.h |
| @@ -12,6 +12,7 @@ |
| #include "third_party/WebKit/public/platform/WebContentDecryptionModule.h" |
| namespace media { |
| +class Decryptor; |
| class MediaKeys; |
| } |
| @@ -28,6 +29,11 @@ class WebContentDecryptionModuleImpl |
| virtual ~WebContentDecryptionModuleImpl(); |
| + // Return the Decryptor associated with this CDM. |
| + // TODO(jrummell): Figure out lifetimes, as WMPI may still use the decryptor |
| + // after WebContentDecryptionModule is freed. http://crbug.com/309235 |
|
ddorwin
2013/12/20 05:26:14
It seems like this bug is probably different (and
jrummell
2013/12/20 23:32:10
Opened http://crbug.com/330324 and updated link.
|
| + media::Decryptor* GetDecryptor(); |
| + |
| // blink::WebContentDecryptionModule implementation. |
| virtual blink::WebContentDecryptionModuleSession* createSession( |
| blink::WebContentDecryptionModuleSession::Client* client); |
| @@ -46,6 +52,12 @@ class WebContentDecryptionModuleImpl |
| DISALLOW_COPY_AND_ASSIGN(WebContentDecryptionModuleImpl); |
| }; |
| +// Allow typecasting from blink type as this is the only implementation. |
| +inline WebContentDecryptionModuleImpl* toWebContentDecryptionModuleImpl( |
| + blink::WebContentDecryptionModule* cdm) { |
| + return static_cast<WebContentDecryptionModuleImpl*>(cdm); |
| +} |
| + |
| } // namespace content |
| #endif // CONTENT_RENDERER_MEDIA_WEBCONTENTDECRYPTIONMODULE_IMPL_H_ |