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 "third_party/WebKit/public/platform/WebContentDecryptionModule.h" | 18 #include "third_party/WebKit/public/platform/WebContentDecryptionModule.h" |
18 #include "third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h" | 19 #include "third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h" |
19 | 20 |
20 namespace blink { | 21 namespace blink { |
21 #if defined(ENABLE_PEPPER_CDMS) | 22 #if BUILDFLAG(ENABLE_PEPPER_CDMS) |
22 class WebLocalFrame; | 23 class WebLocalFrame; |
23 #endif | 24 #endif |
24 class WebSecurityOrigin; | 25 class WebSecurityOrigin; |
25 } | 26 } |
26 | 27 |
27 namespace media { | 28 namespace media { |
28 | 29 |
29 struct CdmConfig; | 30 struct CdmConfig; |
30 class CdmFactory; | 31 class CdmFactory; |
31 class CdmSessionAdapter; | 32 class CdmSessionAdapter; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 69 |
69 // Allow typecasting from blink type as this is the only implementation. | 70 // Allow typecasting from blink type as this is the only implementation. |
70 inline WebContentDecryptionModuleImpl* ToWebContentDecryptionModuleImpl( | 71 inline WebContentDecryptionModuleImpl* ToWebContentDecryptionModuleImpl( |
71 blink::WebContentDecryptionModule* cdm) { | 72 blink::WebContentDecryptionModule* cdm) { |
72 return static_cast<WebContentDecryptionModuleImpl*>(cdm); | 73 return static_cast<WebContentDecryptionModuleImpl*>(cdm); |
73 } | 74 } |
74 | 75 |
75 } // namespace media | 76 } // namespace media |
76 | 77 |
77 #endif // MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULE_IMPL_H_ | 78 #endif // MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULE_IMPL_H_ |
OLD | NEW |