Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULE_IMPL_H_ | 5 #ifndef MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULE_IMPL_H_ |
| 6 #define MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULE_IMPL_H_ | 6 #define MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULE_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <memory> | 11 #include <memory> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
| 16 #include "media/blink/media_blink_export.h" | 16 #include "media/blink/media_blink_export.h" |
| 17 #include "ppapi/features/features.h" | 17 #include "ppapi/features/features.h" |
|
watk
2016/11/30 03:15:49
This can go now
jbriance
2016/11/30 08:01:34
Done.
| |
| 18 #include "third_party/WebKit/public/platform/WebContentDecryptionModule.h" | 18 #include "third_party/WebKit/public/platform/WebContentDecryptionModule.h" |
| 19 #include "third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h" | 19 #include "third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h" |
| 20 | 20 |
| 21 namespace blink { | 21 namespace blink { |
| 22 #if BUILDFLAG(ENABLE_PEPPER_CDMS) | |
| 23 class WebLocalFrame; | |
| 24 #endif | |
| 25 class WebSecurityOrigin; | 22 class WebSecurityOrigin; |
| 26 } | 23 } |
| 27 | 24 |
| 28 namespace media { | 25 namespace media { |
| 29 | 26 |
| 30 struct CdmConfig; | 27 struct CdmConfig; |
| 31 class CdmFactory; | 28 class CdmFactory; |
| 32 class CdmSessionAdapter; | 29 class CdmSessionAdapter; |
| 33 class MediaKeys; | 30 class MediaKeys; |
| 34 class WebContentDecryptionModuleSessionImpl; | |
| 35 | 31 |
| 36 class MEDIA_BLINK_EXPORT WebContentDecryptionModuleImpl | 32 class MEDIA_BLINK_EXPORT WebContentDecryptionModuleImpl |
| 37 : public blink::WebContentDecryptionModule { | 33 : public blink::WebContentDecryptionModule { |
| 38 public: | 34 public: |
| 39 static void Create( | 35 static void Create( |
| 40 CdmFactory* cdm_factory, | 36 CdmFactory* cdm_factory, |
| 41 const base::string16& key_system, | 37 const base::string16& key_system, |
| 42 const blink::WebSecurityOrigin& security_origin, | 38 const blink::WebSecurityOrigin& security_origin, |
| 43 const CdmConfig& cdm_config, | 39 const CdmConfig& cdm_config, |
| 44 std::unique_ptr<blink::WebContentDecryptionModuleResult> result); | 40 std::unique_ptr<blink::WebContentDecryptionModuleResult> result); |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 69 | 65 |
| 70 // Allow typecasting from blink type as this is the only implementation. | 66 // Allow typecasting from blink type as this is the only implementation. |
| 71 inline WebContentDecryptionModuleImpl* ToWebContentDecryptionModuleImpl( | 67 inline WebContentDecryptionModuleImpl* ToWebContentDecryptionModuleImpl( |
| 72 blink::WebContentDecryptionModule* cdm) { | 68 blink::WebContentDecryptionModule* cdm) { |
| 73 return static_cast<WebContentDecryptionModuleImpl*>(cdm); | 69 return static_cast<WebContentDecryptionModuleImpl*>(cdm); |
| 74 } | 70 } |
| 75 | 71 |
| 76 } // namespace media | 72 } // namespace media |
| 77 | 73 |
| 78 #endif // MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULE_IMPL_H_ | 74 #endif // MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULE_IMPL_H_ |
| OLD | NEW |