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

Side by Side Diff: chromecast/browser/media/cast_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 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 CHROMECAST_BROWSER_MEDIA_CAST_MEDIA_CLIENT_ANDROID_H_
6 #define CHROMECAST_BROWSER_MEDIA_CAST_MEDIA_CLIENT_ANDROID_H_
7
8 #include <map>
9
10 #include "base/macros.h"
11 #include "media/base/android/media_client_android.h"
12
13 namespace chromecast {
14 namespace media {
15
16 class CastMediaClientAndroid : public ::media::MediaClientAndroid {
17 public:
18 CastMediaClientAndroid();
19 ~CastMediaClientAndroid() override;
20
21 private:
22 typedef std::map<std::vector<uint8_t>, ::media::MediaDrmBridgeDelegate*>
23 DelegateMap;
24
25 // ::media::MediaClientAndroid implementation:
26 std::vector<std::pair<std::string, std::vector<uint8_t>>>
27 GetKeySystemUUIDMappings() const override;
28 ::media::MediaDrmBridgeDelegate* GetMediaDrmBridgeDelegate(
29 const std::vector<uint8_t>& scheme_uuid) const override;
30
31 std::vector<std::pair<std::string, std::vector<uint8_t>>> mappings_;
32 DelegateMap delegates_;
33
34 DISALLOW_COPY_AND_ASSIGN(CastMediaClientAndroid);
35 };
36
37 } // namespace media
38 } // namespace chromecast
39
40 #endif // CHROMECAST_BROWSER_MEDIA_CAST_MEDIA_CLIENT_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698