Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: media/blink/webcontentdecryptionmoduleaccess_impl.h

Issue 1131753003: Plumb |use_secure_codecs| through to BrowserCdmFactoryAndroid. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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_WEBCONTENTDECRYPTIONMODULEACCESS_IMPL_H_ 5 #ifndef MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULEACCESS_IMPL_H_
6 #define MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULEACCESS_IMPL_H_ 6 #define MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULEACCESS_IMPL_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "media/base/cdm_config.h"
9 #include "third_party/WebKit/public/platform/WebContentDecryptionModuleAccess.h" 10 #include "third_party/WebKit/public/platform/WebContentDecryptionModuleAccess.h"
10 #include "third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h" 11 #include "third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h"
11 #include "third_party/WebKit/public/platform/WebMediaKeySystemConfiguration.h" 12 #include "third_party/WebKit/public/platform/WebMediaKeySystemConfiguration.h"
12 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" 13 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
13 #include "third_party/WebKit/public/platform/WebString.h" 14 #include "third_party/WebKit/public/platform/WebString.h"
14 15
15 namespace media { 16 namespace media {
16 17
17 class WebEncryptedMediaClientImpl; 18 class WebEncryptedMediaClientImpl;
18 19
19 class WebContentDecryptionModuleAccessImpl 20 class WebContentDecryptionModuleAccessImpl
20 : public blink::WebContentDecryptionModuleAccess { 21 : public blink::WebContentDecryptionModuleAccess {
21 public: 22 public:
22 static WebContentDecryptionModuleAccessImpl* Create( 23 static WebContentDecryptionModuleAccessImpl* Create(
23 const blink::WebString& key_system, 24 const blink::WebString& key_system,
25 const blink::WebSecurityOrigin& security_origin,
24 const blink::WebMediaKeySystemConfiguration& configuration, 26 const blink::WebMediaKeySystemConfiguration& configuration,
25 const blink::WebSecurityOrigin& security_origin, 27 const CdmConfig& cdm_config,
26 const base::WeakPtr<WebEncryptedMediaClientImpl>& client); 28 const base::WeakPtr<WebEncryptedMediaClientImpl>& client);
27 virtual ~WebContentDecryptionModuleAccessImpl(); 29 virtual ~WebContentDecryptionModuleAccessImpl();
28 30
29 // blink::WebContentDecryptionModuleAccess interface. 31 // blink::WebContentDecryptionModuleAccess interface.
30 virtual blink::WebMediaKeySystemConfiguration getConfiguration(); 32 virtual blink::WebMediaKeySystemConfiguration getConfiguration();
31 virtual void createContentDecryptionModule( 33 virtual void createContentDecryptionModule(
32 blink::WebContentDecryptionModuleResult result); 34 blink::WebContentDecryptionModuleResult result);
33 35
34 private: 36 private:
35 WebContentDecryptionModuleAccessImpl( 37 WebContentDecryptionModuleAccessImpl(
36 const blink::WebString& key_system, 38 const blink::WebString& key_system,
39 const blink::WebSecurityOrigin& security_origin,
37 const blink::WebMediaKeySystemConfiguration& configuration, 40 const blink::WebMediaKeySystemConfiguration& configuration,
38 const blink::WebSecurityOrigin& security_origin, 41 const CdmConfig& cdm_config,
39 const base::WeakPtr<WebEncryptedMediaClientImpl>& client); 42 const base::WeakPtr<WebEncryptedMediaClientImpl>& client);
40 43
41 blink::WebString key_system_; 44 blink::WebString key_system_;
ddorwin 2015/05/13 06:03:21 nit: I prefer members to be const when possible to
sandersd (OOO until July 31) 2015/05/14 00:06:57 Done.
45 blink::WebSecurityOrigin security_origin_;
42 blink::WebMediaKeySystemConfiguration configuration_; 46 blink::WebMediaKeySystemConfiguration configuration_;
43 blink::WebSecurityOrigin security_origin_; 47 CdmConfig cdm_config_;
ddorwin 2015/05/13 06:03:21 configuration and config. Hmmm. They match the typ
sandersd (OOO until July 31) 2015/05/14 00:06:57 Acknowledged.
44 48
45 // Keep a WeakPtr as client is owned by render_frame_impl. 49 // Keep a WeakPtr as client is owned by render_frame_impl.
46 base::WeakPtr<WebEncryptedMediaClientImpl> client_; 50 base::WeakPtr<WebEncryptedMediaClientImpl> client_;
47 51
48 DISALLOW_COPY_AND_ASSIGN(WebContentDecryptionModuleAccessImpl); 52 DISALLOW_COPY_AND_ASSIGN(WebContentDecryptionModuleAccessImpl);
49 }; 53 };
50 54
51 } // namespace media 55 } // namespace media
52 56
53 #endif // MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULEACCESS_IMPL_H_ 57 #endif // MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULEACCESS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698