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

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

Issue 962793005: Adds MediaClientAndroid to support embedder/MediaDrmBridge interaction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 8 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
(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 cdm {
13 class WidevineDrmDelegateAndroid;
14 }
15
16 namespace android_webview {
17
18 class AwMediaClientAndroid : public media::MediaClientAndroid {
19 public:
20 // |key_system_uuid_mappings| is a list of strings containing key-system/UUID
21 // pairs, in the format "key system name,UUID as string".
22 explicit AwMediaClientAndroid(
23 const std::vector<std::string>& key_system_uuid_mappings);
24 ~AwMediaClientAndroid() override;
25
26 private:
27 // media::MediaClientAndroid implementation:
28 media::MediaDrmBridgeDelegate* GetMediaDrmBridgeDelegate(
29 const media::UUID& scheme_uuid) const override;
30
31 scoped_ptr<cdm::WidevineDrmDelegateAndroid> widevine_delegate_;
xhwang 2015/04/28 05:25:11 nit: I was saying just have: cdm::WidevineDrmDele
gunsch 2015/04/28 18:50:51 Can't do without either: a) making GetMediaDrmBrid
xhwang 2015/04/28 19:00:38 I didn't notice the "const" part :) Having a cons
32
33 DISALLOW_COPY_AND_ASSIGN(AwMediaClientAndroid);
34 };
35
36 } // namespace android_webview
37
38 #endif // ANDROID_WEBVIEW_BROWSER_AW_MEDIA_CLIENT_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698