Resurrect battery_status_dispatcher_unittest.
[chromium-blink-merge.git] / media / blink / webencryptedmediaclient_impl.h
blob2b4e9d5de13cfe910878047c9409b7c12dc01500
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"
14 namespace media {
16 class MEDIA_EXPORT WebEncryptedMediaClientImpl
17 : public blink::WebEncryptedMediaClient {
18 public:
19 WebEncryptedMediaClientImpl(scoped_ptr<CdmFactory> cdm_factory);
20 virtual ~WebEncryptedMediaClientImpl();
22 // WebEncryptedMediaClient implementation.
23 virtual void requestMediaKeySystemAccess(
24 blink::WebEncryptedMediaRequest request);
26 private:
27 scoped_ptr<CdmFactory> cdm_factory_;
30 } // namespace media
32 #endif // MEDIA_BLINK_WEBENCRYPTEDMEDIACLIENT_IMPL_H_