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

Unified Diff: chrome/browser/android/chrome_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: overhaul: creates MediaClientAndroid (browser-side client), eliminates Java-based MediaDrmBridge ke… 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: chrome/browser/android/chrome_media_client_android.h
diff --git a/chrome/browser/android/chrome_media_client_android.h b/chrome/browser/android/chrome_media_client_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..bd5ca3ff5356cf809a730785fe061fd5e71265e1
--- /dev/null
+++ b/chrome/browser/android/chrome_media_client_android.h
@@ -0,0 +1,27 @@
+// 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 CHROME_BROWSER_ANDROID_CHROME_MEDIA_CLIENT_ANDROID_H_
+#define CHROME_BROWSER_ANDROID_CHROME_MEDIA_CLIENT_ANDROID_H_
+
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+#include "media/base/android/media_client_android.h"
+
+class ChromeMediaClientAndroid : public media::MediaClientAndroid {
+ public:
+ ChromeMediaClientAndroid();
+ ~ChromeMediaClientAndroid() override;
+
+ private:
+ // media::MediaClientAndroid implementation:
+ media::MediaDrmBridgeDelegate* GetMediaDrmBridgeDelegate(
+ const std::vector<uint8_t>& scheme_uuid) const override;
+
+ scoped_ptr<media::MediaDrmBridgeDelegate> widevine_delegate_;
xhwang 2015/04/24 04:52:23 nit: just store cdm::WidevineDrmDelegateAndroid wi
gunsch 2015/04/27 23:44:11 Done.
+
+ DISALLOW_COPY_AND_ASSIGN(ChromeMediaClientAndroid);
+};
+
+#endif // CHROME_BROWSER_ANDROID_CHROME_MEDIA_CLIENT_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698