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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/browser/aw_media_client_android.h
diff --git a/android_webview/browser/aw_media_client_android.h b/android_webview/browser/aw_media_client_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..a090bf612f1b823641548dca33425eb856f5dfce
--- /dev/null
+++ b/android_webview/browser/aw_media_client_android.h
@@ -0,0 +1,38 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ANDROID_WEBVIEW_BROWSER_AW_MEDIA_CLIENT_ANDROID_H_
+#define ANDROID_WEBVIEW_BROWSER_AW_MEDIA_CLIENT_ANDROID_H_
+
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+#include "media/base/android/media_client_android.h"
+
+namespace cdm {
+class WidevineDrmDelegateAndroid;
+}
+
+namespace android_webview {
+
+class AwMediaClientAndroid : public media::MediaClientAndroid {
+ public:
+ // |key_system_uuid_mappings| is a list of strings containing key-system/UUID
+ // pairs, in the format "key system name,UUID as string".
+ explicit AwMediaClientAndroid(
+ const std::vector<std::string>& key_system_uuid_mappings);
+ ~AwMediaClientAndroid() override;
+
+ private:
+ // media::MediaClientAndroid implementation:
+ media::MediaDrmBridgeDelegate* GetMediaDrmBridgeDelegate(
+ const media::UUID& scheme_uuid) const override;
+
+ 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
+
+ DISALLOW_COPY_AND_ASSIGN(AwMediaClientAndroid);
+};
+
+} // namespace android_webview
+
+#endif // ANDROID_WEBVIEW_BROWSER_AW_MEDIA_CLIENT_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698