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

Side by Side Diff: chromecast/media/cdm/playready_drm_delegate_android.h

Issue 962793005: Adds MediaClientAndroid to support embedder/MediaDrmBridge interaction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up code, implement actual Delegates for Widevine (Android) and Chromecast 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_MEDIA_CDM_PLAYREADY_DRM_DELEGATE_ANDROID_H_
6 #define CHROMECAST_MEDIA_CDM_PLAYREADY_DRM_DELEGATE_ANDROID_H_
7
8 #include "base/macros.h"
9 #include "media/base/android/media_drm_bridge.h"
10
11 namespace chromecast {
12 namespace media {
13
14 class PlayreadyDrmDelegateAndroid : public ::media::MediaDrmBridge::Delegate {
15 public:
16 // Installs PlayreadyDrmDelegateAndroid into MediaDrmBridge, associated with
17 // com.chromecast.playready.
18 static void Install();
19
20 private:
21 PlayreadyDrmDelegateAndroid();
22 ~PlayreadyDrmDelegateAndroid() override;
23
24 // ::media::MediaDrmBridge::Delegate implementation:
25 bool OnCreateSession(
26 const ::media::EmeInitDataType init_data_type,
27 const uint8* init_data,
28 int init_data_length,
29 std::vector<uint8>& init_data_out,
30 std::vector<std::string>& optional_parameters_out) override;
31
32 private:
33 DISALLOW_COPY_AND_ASSIGN(PlayreadyDrmDelegateAndroid);
34 };
35
36 } // namespace media
37 } // namespace chromecast
38
39 #endif // CHROMECAST_MEDIA_CDM_PLAYREADY_DRM_DELEGATE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698