OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 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. | |
4 | |
5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_MEDIA_CLIENT_ANDROID_H_ | |
6 #define ANDROID_WEBVIEW_BROWSER_AW_MEDIA_CLIENT_ANDROID_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "media/base/android/media_client_android.h" | |
11 | |
12 namespace android_webview { | |
13 | |
14 class AwMediaClientAndroid : public media::MediaClientAndroid { | |
15 public: | |
16 // |key_system_uuid_mappings| is a list of strings containing key-system/UUID | |
17 // pairs, in the format "key system name,UUID as string". | |
18 explicit AwMediaClientAndroid( | |
19 const std::vector<std::string>& key_system_uuid_mappings); | |
20 ~AwMediaClientAndroid() override; | |
21 | |
22 private: | |
23 // media::MediaClientAndroid implementation: | |
24 std::vector<std::pair<std::string, std::vector<uint8_t>>> | |
25 GetKeySystemUUIDMappings() const override; | |
26 media::MediaDrmBridgeDelegate* GetMediaDrmBridgeDelegate( | |
27 const std::vector<uint8_t>& scheme_uuid) const override; | |
28 | |
29 std::vector<std::pair<std::string, std::vector<uint8_t>>> mappings_; | |
30 scoped_ptr<media::MediaDrmBridgeDelegate> widevine_delegate_; | |
xhwang
2015/04/24 04:52:22
nit: just store cdm::WidevineDrmDelegateAndroid wi
gunsch
2015/04/27 23:44:10
Done.
| |
31 | |
32 DISALLOW_COPY_AND_ASSIGN(AwMediaClientAndroid); | |
33 }; | |
34 | |
35 } // namespace android_webview | |
36 | |
37 #endif // ANDROID_WEBVIEW_BROWSER_AW_MEDIA_CLIENT_ANDROID_H_ | |
OLD | NEW |