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

Side by Side Diff: media/base/android/media_drm_bridge.cc

Issue 17289006: Separate CDM initialization from GenerateKeyRequest & remove key_system parameters. (Closed) Base URL: master
Patch Set: rebase only Created 7 years, 6 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
« no previous file with comments | « media/base/android/media_drm_bridge.h ('k') | media/base/android/media_player_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/base/android/media_drm_bridge.h" 5 #include "media/base/android/media_drm_bridge.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 using base::android::ScopedJavaLocalRef; 9 using base::android::ScopedJavaLocalRef;
10 10
11 namespace media { 11 namespace media {
12 12
13 // static 13 // static
14 bool MediaDrmBridge::IsAvailable() { 14 bool MediaDrmBridge::IsAvailable() {
15 return false; 15 return false;
16 } 16 }
17 17
18 MediaDrmBridge::MediaDrmBridge( 18 MediaDrmBridge::MediaDrmBridge(
19 int media_keys_id, const std::vector<uint8>& uuid) 19 int media_keys_id, const std::vector<uint8>& uuid)
20 : media_keys_id_(media_keys_id) {} 20 : media_keys_id_(media_keys_id) {}
21 21
22 MediaDrmBridge::~MediaDrmBridge() {} 22 MediaDrmBridge::~MediaDrmBridge() {}
23 23
24 bool MediaDrmBridge::GenerateKeyRequest(const std::string& key_system, 24 bool MediaDrmBridge::GenerateKeyRequest(const std::string& type,
25 const std::string& type,
26 const uint8* init_data, 25 const uint8* init_data,
27 int init_data_length) { 26 int init_data_length) {
28 NOTIMPLEMENTED(); 27 NOTIMPLEMENTED();
29 return false; 28 return false;
30 } 29 }
31 30
32 void MediaDrmBridge::CancelKeyRequest(const std::string& key_system, 31 void MediaDrmBridge::CancelKeyRequest(const std::string& session_id) {
33 const std::string& session_id) {
34 NOTIMPLEMENTED(); 32 NOTIMPLEMENTED();
35 } 33 }
36 34
37 void MediaDrmBridge::AddKey(const std::string& key_system, 35 void MediaDrmBridge::AddKey(const uint8* key, int key_length,
38 const uint8* key, int key_length,
39 const uint8* init_data, int init_data_length, 36 const uint8* init_data, int init_data_length,
40 const std::string& session_id) { 37 const std::string& session_id) {
41 NOTIMPLEMENTED(); 38 NOTIMPLEMENTED();
42 } 39 }
43 40
44 ScopedJavaLocalRef<jobject> MediaDrmBridge::CreateMediaCrypto( 41 ScopedJavaLocalRef<jobject> MediaDrmBridge::CreateMediaCrypto(
45 const std::string& session_id) { 42 const std::string& session_id) {
46 NOTIMPLEMENTED(); 43 NOTIMPLEMENTED();
47 return ScopedJavaLocalRef<jobject>(); 44 return ScopedJavaLocalRef<jobject>();
48 } 45 }
49 46
50 void MediaDrmBridge::ReleaseMediaCrypto(const std::string& session_id) { 47 void MediaDrmBridge::ReleaseMediaCrypto(const std::string& session_id) {
51 NOTIMPLEMENTED(); 48 NOTIMPLEMENTED();
52 } 49 }
53 50
54 void MediaDrmBridge::OnKeyMessage( 51 void MediaDrmBridge::OnKeyMessage(
55 JNIEnv* env, jobject j_media_drm, jstring session_id, jbyteArray message, 52 JNIEnv* env, jobject j_media_drm, jstring session_id, jbyteArray message,
56 jstring destination_url) { 53 jstring destination_url) {
57 NOTIMPLEMENTED(); 54 NOTIMPLEMENTED();
58 } 55 }
59 56
60 void MediaDrmBridge::OnDrmEvent( 57 void MediaDrmBridge::OnDrmEvent(
61 JNIEnv* env, jobject j_media_drm, jstring session_id, jint event, 58 JNIEnv* env, jobject j_media_drm, jstring session_id, jint event,
62 jint extra, jstring data) { 59 jint extra, jstring data) {
63 NOTIMPLEMENTED(); 60 NOTIMPLEMENTED();
64 } 61 }
65 62
66 } // namespace media 63 } // namespace media
OLDNEW
« no previous file with comments | « media/base/android/media_drm_bridge.h ('k') | media/base/android/media_player_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698