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
3 // found in the LICENSE file.
5 #ifndef MEDIA_BLINK_WEBENCRYPTEDMEDIACLIENT_IMPL_H_
6 #define MEDIA_BLINK_WEBENCRYPTEDMEDIACLIENT_IMPL_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "media/base/cdm_factory.h"
10 #include "media/base/media_export.h"
11 #include "third_party/WebKit/public/platform/WebEncryptedMediaClient.h"
12 #include "third_party/WebKit/public/web/WebSecurityOrigin.h"
16 class MEDIA_EXPORT WebEncryptedMediaClientImpl
17 : public blink::WebEncryptedMediaClient
{
19 WebEncryptedMediaClientImpl(scoped_ptr
<CdmFactory
> cdm_factory
);
20 virtual ~WebEncryptedMediaClientImpl();
22 // WebEncryptedMediaClient implementation.
23 virtual void requestMediaKeySystemAccess(
24 blink::WebEncryptedMediaRequest request
);
27 scoped_ptr
<CdmFactory
> cdm_factory_
;
32 #endif // MEDIA_BLINK_WEBENCRYPTEDMEDIACLIENT_IMPL_H_