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

Side by Side Diff: android_webview/browser/aw_media_client_android.h

Issue 1934193003: media: Set MediaClientAndroid in the GPU process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 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
« no previous file with comments | « android_webview/browser/DEPS ('k') | chrome/browser/android/chrome_media_client_android.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 ANDROID_WEBVIEW_BROWSER_AW_MEDIA_CLIENT_ANDROID_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_MEDIA_CLIENT_ANDROID_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_MEDIA_CLIENT_ANDROID_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_MEDIA_CLIENT_ANDROID_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/cdm/browser/widevine_drm_delegate_android.h" 9 #include "components/cdm/common/widevine_drm_delegate_android.h"
10 #include "media/base/android/media_client_android.h" 10 #include "media/base/android/media_client_android.h"
11 11
12 namespace android_webview { 12 namespace android_webview {
13 13
14 class AwMediaClientAndroid : public media::MediaClientAndroid { 14 class AwMediaClientAndroid : public media::MediaClientAndroid {
15 public: 15 public:
16 // |key_system_uuid_mappings| is a list of strings containing key-system/UUID 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". 17 // pairs, in the format "key system name,UUID as string".
18 explicit AwMediaClientAndroid( 18 explicit AwMediaClientAndroid(
19 const std::vector<std::string>& key_system_uuid_mappings); 19 const std::vector<std::string>& key_system_uuid_mappings);
20 ~AwMediaClientAndroid() override; 20 ~AwMediaClientAndroid() override;
21 21
22 private: 22 private:
23 // media::MediaClientAndroid implementation: 23 // media::MediaClientAndroid implementation:
24 void AddKeySystemUUIDMappings(KeySystemUuidMap* map) override; 24 void AddKeySystemUUIDMappings(KeySystemUuidMap* map) override;
25 media::MediaDrmBridgeDelegate* GetMediaDrmBridgeDelegate( 25 media::MediaDrmBridgeDelegate* GetMediaDrmBridgeDelegate(
26 const media::UUID& scheme_uuid) override; 26 const media::UUID& scheme_uuid) override;
27 27
28 std::vector<std::string> key_system_uuid_mappings_; 28 std::vector<std::string> key_system_uuid_mappings_;
29 cdm::WidevineDrmDelegateAndroid widevine_delegate_; 29 cdm::WidevineDrmDelegateAndroid widevine_delegate_;
30 30
31 DISALLOW_COPY_AND_ASSIGN(AwMediaClientAndroid); 31 DISALLOW_COPY_AND_ASSIGN(AwMediaClientAndroid);
32 }; 32 };
33 33
34 } // namespace android_webview 34 } // namespace android_webview
35 35
36 #endif // ANDROID_WEBVIEW_BROWSER_AW_MEDIA_CLIENT_ANDROID_H_ 36 #endif // ANDROID_WEBVIEW_BROWSER_AW_MEDIA_CLIENT_ANDROID_H_
OLDNEW
« no previous file with comments | « android_webview/browser/DEPS ('k') | chrome/browser/android/chrome_media_client_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698