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

Side by Side Diff: components/cdm/browser/widevine_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 COMPONENTS_CDM_BROWSER_WIDEVINE_DRM_DELEGATE_ANDROID_H_
6 #define COMPONENTS_CDM_BROWSER_WIDEVINE_DRM_DELEGATE_ANDROID_H_
7
8 #include "base/macros.h"
9 #include "media/base/android/media_drm_bridge.h"
10
11 namespace cdm {
12
13 class WidevineDrmDelegateAndroid : public media::MediaDrmBridge::Delegate {
14 public:
15 // Installs WidevineDrmDelegateAndroid into MediaDrmBridge, associated with
16 // |kWidevineKeySystem|.
17 static void Install();
18
19 private:
20 WidevineDrmDelegateAndroid();
21 ~WidevineDrmDelegateAndroid() override;
22
23 // media::MediaDrmBridge::Delegate implementation:
24 bool OnCreateSession(
25 const media::EmeInitDataType init_data_type,
26 const uint8* init_data,
27 int init_data_length,
28 std::vector<uint8>& init_data_out,
29 std::vector<std::string>& optional_parameters_out) override;
30
31 private:
32 DISALLOW_COPY_AND_ASSIGN(WidevineDrmDelegateAndroid);
33 };
34
35 } // namespace cdm
36
37 #endif // COMPONENTS_CDM_BROWSER_WIDEVINE_DRM_DELEGATE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698