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

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

Issue 17101027: Add a function to convert key system into UUID (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits 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 | Annotate | Revision Log
« no previous file with comments | « media/base/android/media_drm_bridge.h ('k') | webkit/renderer/media/crypto/key_systems.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::Create(int media_keys_id,
19 const std::vector<uint8>& uuid) {
20 if (!IsAvailable())
21 return NULL;
22
23 // TODO(qinmin): check whether the uuid is valid.
24 return new MediaDrmBridge(media_keys_id, uuid);
25 }
26
18 MediaDrmBridge::MediaDrmBridge( 27 MediaDrmBridge::MediaDrmBridge(
19 int media_keys_id, const std::vector<uint8>& uuid) 28 int media_keys_id, const std::vector<uint8>& uuid)
20 : media_keys_id_(media_keys_id) {} 29 : media_keys_id_(media_keys_id),
30 uuid_(uuid) {
31 // TODO(qinmin): pass the uuid to DRM engine.
32 }
21 33
22 MediaDrmBridge::~MediaDrmBridge() {} 34 MediaDrmBridge::~MediaDrmBridge() {}
23 35
24 bool MediaDrmBridge::GenerateKeyRequest(const std::string& type, 36 bool MediaDrmBridge::GenerateKeyRequest(const std::string& type,
25 const uint8* init_data, 37 const uint8* init_data,
26 int init_data_length) { 38 int init_data_length) {
27 NOTIMPLEMENTED(); 39 NOTIMPLEMENTED();
28 return false; 40 return false;
29 } 41 }
30 42
(...skipping 23 matching lines...) Expand all
54 NOTIMPLEMENTED(); 66 NOTIMPLEMENTED();
55 } 67 }
56 68
57 void MediaDrmBridge::OnDrmEvent( 69 void MediaDrmBridge::OnDrmEvent(
58 JNIEnv* env, jobject j_media_drm, jstring session_id, jint event, 70 JNIEnv* env, jobject j_media_drm, jstring session_id, jint event,
59 jint extra, jstring data) { 71 jint extra, jstring data) {
60 NOTIMPLEMENTED(); 72 NOTIMPLEMENTED();
61 } 73 }
62 74
63 } // namespace media 75 } // namespace media
OLDNEW
« no previous file with comments | « media/base/android/media_drm_bridge.h ('k') | webkit/renderer/media/crypto/key_systems.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698