| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_WEBENCRYPTEDMEDIACLIENT_IMPL_H_ | 5 #ifndef MEDIA_BLINK_WEBENCRYPTEDMEDIACLIENT_IMPL_H_ |
| 6 #define MEDIA_BLINK_WEBENCRYPTEDMEDIACLIENT_IMPL_H_ | 6 #define MEDIA_BLINK_WEBENCRYPTEDMEDIACLIENT_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/containers/scoped_ptr_hash_map.h" | 11 #include "base/containers/scoped_ptr_hash_map.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "media/base/media_export.h" | |
| 15 #include "media/blink/key_system_config_selector.h" | 14 #include "media/blink/key_system_config_selector.h" |
| 15 #include "media/blink/media_blink_export.h" |
| 16 #include "third_party/WebKit/public/platform/WebEncryptedMediaClient.h" | 16 #include "third_party/WebKit/public/platform/WebEncryptedMediaClient.h" |
| 17 | 17 |
| 18 namespace blink { | 18 namespace blink { |
| 19 | 19 |
| 20 class WebContentDecryptionModuleResult; | 20 class WebContentDecryptionModuleResult; |
| 21 struct WebMediaKeySystemConfiguration; | 21 struct WebMediaKeySystemConfiguration; |
| 22 class WebSecurityOrigin; | 22 class WebSecurityOrigin; |
| 23 | 23 |
| 24 } // namespace blink | 24 } // namespace blink |
| 25 | 25 |
| 26 namespace media { | 26 namespace media { |
| 27 | 27 |
| 28 struct CdmConfig; | 28 struct CdmConfig; |
| 29 class CdmFactory; | 29 class CdmFactory; |
| 30 class KeySystems; | 30 class KeySystems; |
| 31 class MediaPermission; | 31 class MediaPermission; |
| 32 | 32 |
| 33 class MEDIA_EXPORT WebEncryptedMediaClientImpl | 33 class MEDIA_BLINK_EXPORT WebEncryptedMediaClientImpl |
| 34 : public blink::WebEncryptedMediaClient { | 34 : public blink::WebEncryptedMediaClient { |
| 35 public: | 35 public: |
| 36 WebEncryptedMediaClientImpl( | 36 WebEncryptedMediaClientImpl( |
| 37 base::Callback<bool(void)> are_secure_codecs_supported_cb, | 37 base::Callback<bool(void)> are_secure_codecs_supported_cb, |
| 38 CdmFactory* cdm_factory, | 38 CdmFactory* cdm_factory, |
| 39 MediaPermission* media_permission); | 39 MediaPermission* media_permission); |
| 40 ~WebEncryptedMediaClientImpl() override; | 40 ~WebEncryptedMediaClientImpl() override; |
| 41 | 41 |
| 42 // WebEncryptedMediaClient implementation. | 42 // WebEncryptedMediaClient implementation. |
| 43 void requestMediaKeySystemAccess( | 43 void requestMediaKeySystemAccess( |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 base::Callback<bool(void)> are_secure_codecs_supported_cb_; | 78 base::Callback<bool(void)> are_secure_codecs_supported_cb_; |
| 79 CdmFactory* cdm_factory_; | 79 CdmFactory* cdm_factory_; |
| 80 KeySystemConfigSelector key_system_config_selector_; | 80 KeySystemConfigSelector key_system_config_selector_; |
| 81 base::WeakPtrFactory<WebEncryptedMediaClientImpl> weak_factory_; | 81 base::WeakPtrFactory<WebEncryptedMediaClientImpl> weak_factory_; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace media | 84 } // namespace media |
| 85 | 85 |
| 86 #endif // MEDIA_BLINK_WEBENCRYPTEDMEDIACLIENT_IMPL_H_ | 86 #endif // MEDIA_BLINK_WEBENCRYPTEDMEDIACLIENT_IMPL_H_ |
| OLD | NEW |