| 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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "media/base/cdm_factory.h" | 9 #include "media/base/cdm_factory.h" |
| 10 #include "media/base/media_export.h" | 10 #include "media/base/media_export.h" |
| 11 #include "third_party/WebKit/public/platform/WebEncryptedMediaClient.h" | 11 #include "third_party/WebKit/public/platform/WebEncryptedMediaClient.h" |
| 12 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" | 12 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" |
| 13 | 13 |
| 14 namespace media { | 14 namespace media { |
| 15 | 15 |
| 16 class MediaPermission; |
| 17 |
| 16 class MEDIA_EXPORT WebEncryptedMediaClientImpl | 18 class MEDIA_EXPORT WebEncryptedMediaClientImpl |
| 17 : public blink::WebEncryptedMediaClient { | 19 : public blink::WebEncryptedMediaClient { |
| 18 public: | 20 public: |
| 19 WebEncryptedMediaClientImpl(scoped_ptr<CdmFactory> cdm_factory); | 21 WebEncryptedMediaClientImpl(scoped_ptr<CdmFactory> cdm_factory, |
| 22 MediaPermission* media_permission); |
| 20 virtual ~WebEncryptedMediaClientImpl(); | 23 virtual ~WebEncryptedMediaClientImpl(); |
| 21 | 24 |
| 22 // WebEncryptedMediaClient implementation. | 25 // WebEncryptedMediaClient implementation. |
| 23 virtual void requestMediaKeySystemAccess( | 26 virtual void requestMediaKeySystemAccess( |
| 24 blink::WebEncryptedMediaRequest request); | 27 blink::WebEncryptedMediaRequest request); |
| 25 | 28 |
| 26 private: | 29 private: |
| 27 scoped_ptr<CdmFactory> cdm_factory_; | 30 scoped_ptr<CdmFactory> cdm_factory_; |
| 31 MediaPermission* media_permission_; |
| 28 }; | 32 }; |
| 29 | 33 |
| 30 } // namespace media | 34 } // namespace media |
| 31 | 35 |
| 32 #endif // MEDIA_BLINK_WEBENCRYPTEDMEDIACLIENT_IMPL_H_ | 36 #endif // MEDIA_BLINK_WEBENCRYPTEDMEDIACLIENT_IMPL_H_ |
| OLD | NEW |