Disable FileSystemProviderApiTest.BigFile
[chromium-blink-merge.git] / media / blink / webcontentdecryptionmoduleaccess_impl.h
blob131bb21e6a8333bef72a3e39b39f92226f6aedd9
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
3 // found in the LICENSE file.
5 #ifndef MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULEACCESS_IMPL_H_
6 #define MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULEACCESS_IMPL_H_
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h"
11 #include "media/base/cdm_factory.h"
12 #include "third_party/WebKit/public/platform/WebContentDecryptionModuleAccess.h"
13 #include "third_party/WebKit/public/platform/WebMediaKeySystemConfiguration.h"
14 #include "third_party/WebKit/public/platform/WebString.h"
15 #include "third_party/WebKit/public/web/WebSecurityOrigin.h"
17 namespace blink {
18 class WebLocalFrame;
21 namespace media {
23 class WebEncryptedMediaClientImpl;
25 class WebContentDecryptionModuleAccessImpl
26 : public blink::WebContentDecryptionModuleAccess {
27 public:
28 static WebContentDecryptionModuleAccessImpl* Create(
29 const blink::WebString& key_system,
30 const blink::WebMediaKeySystemConfiguration& configuration,
31 const blink::WebSecurityOrigin& security_origin,
32 const base::WeakPtr<WebEncryptedMediaClientImpl>& client);
33 virtual ~WebContentDecryptionModuleAccessImpl();
35 // blink::WebContentDecryptionModuleAccess interface.
36 virtual blink::WebMediaKeySystemConfiguration getConfiguration();
37 virtual void createContentDecryptionModule(
38 blink::WebContentDecryptionModuleResult result);
40 private:
41 WebContentDecryptionModuleAccessImpl(
42 const blink::WebString& key_system,
43 const blink::WebMediaKeySystemConfiguration& configuration,
44 const blink::WebSecurityOrigin& security_origin,
45 const base::WeakPtr<WebEncryptedMediaClientImpl>& client);
47 DISALLOW_COPY_AND_ASSIGN(WebContentDecryptionModuleAccessImpl);
49 blink::WebString key_system_;
50 blink::WebMediaKeySystemConfiguration configuration_;
51 blink::WebSecurityOrigin security_origin_;
53 // Keep a WeakPtr as client is owned by render_frame_impl.
54 base::WeakPtr<WebEncryptedMediaClientImpl> client_;
57 } // namespace media
59 #endif // MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULEACCESS_IMPL_H_