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

Side by Side Diff: media/blink/null_encrypted_media_player_support.cc

Issue 594713002: Pass initial CDM to CreateMediaPlayer() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes for android + mojo Created 6 years, 2 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/blink/null_encrypted_media_player_support.h ('k') | media/blink/webmediaplayer_impl.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/blink/null_encrypted_media_player_support.h" 5 #include "media/blink/null_encrypted_media_player_support.h"
6 6
7 #include "third_party/WebKit/public/platform/WebContentDecryptionModule.h" 7 #include "third_party/WebKit/public/platform/WebContentDecryptionModule.h"
8 #include "third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h" 8 #include "third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h"
9 9
10 namespace media { 10 namespace media {
(...skipping 30 matching lines...) Expand all
41 return blink::WebMediaPlayer::MediaKeyExceptionKeySystemNotSupported; 41 return blink::WebMediaPlayer::MediaKeyExceptionKeySystemNotSupported;
42 } 42 }
43 43
44 blink::WebMediaPlayer::MediaKeyException 44 blink::WebMediaPlayer::MediaKeyException
45 NullEncryptedMediaPlayerSupport::CancelKeyRequest( 45 NullEncryptedMediaPlayerSupport::CancelKeyRequest(
46 const blink::WebString& key_system, 46 const blink::WebString& key_system,
47 const blink::WebString& session_id) { 47 const blink::WebString& session_id) {
48 return blink::WebMediaPlayer::MediaKeyExceptionKeySystemNotSupported; 48 return blink::WebMediaPlayer::MediaKeyExceptionKeySystemNotSupported;
49 } 49 }
50 50
51 void NullEncryptedMediaPlayerSupport::SetInitialContentDecryptionModule(
52 blink::WebContentDecryptionModule* initial_cdm) {
53 }
54
51 void NullEncryptedMediaPlayerSupport::SetContentDecryptionModule( 55 void NullEncryptedMediaPlayerSupport::SetContentDecryptionModule(
52 blink::WebContentDecryptionModule* cdm) { 56 blink::WebContentDecryptionModule* cdm) {
53 } 57 }
54 58
55 void NullEncryptedMediaPlayerSupport::SetContentDecryptionModule( 59 void NullEncryptedMediaPlayerSupport::SetContentDecryptionModule(
56 blink::WebContentDecryptionModule* cdm, 60 blink::WebContentDecryptionModule* cdm,
57 blink::WebContentDecryptionModuleResult result) { 61 blink::WebContentDecryptionModuleResult result) {
58 result.completeWithError( 62 result.completeWithError(
59 blink::WebContentDecryptionModuleExceptionNotSupportedError, 63 blink::WebContentDecryptionModuleExceptionNotSupportedError,
60 0, 64 0,
61 "Null MediaKeys object is not supported."); 65 "Null MediaKeys object is not supported.");
62 } 66 }
63 67
64 void NullEncryptedMediaPlayerSupport::SetContentDecryptionModuleSync(
65 blink::WebContentDecryptionModule* cdm) {
66 }
67
68 Demuxer::NeedKeyCB NullEncryptedMediaPlayerSupport::CreateNeedKeyCB() { 68 Demuxer::NeedKeyCB NullEncryptedMediaPlayerSupport::CreateNeedKeyCB() {
69 return Demuxer::NeedKeyCB(); 69 return Demuxer::NeedKeyCB();
70 } 70 }
71 71
72 SetDecryptorReadyCB 72 SetDecryptorReadyCB
73 NullEncryptedMediaPlayerSupport::CreateSetDecryptorReadyCB() { 73 NullEncryptedMediaPlayerSupport::CreateSetDecryptorReadyCB() {
74 return SetDecryptorReadyCB(); 74 return SetDecryptorReadyCB();
75 } 75 }
76 76
77 void NullEncryptedMediaPlayerSupport::OnPipelineDecryptError() { 77 void NullEncryptedMediaPlayerSupport::OnPipelineDecryptError() {
78 } 78 }
79 79
80 } // namespace media 80 } // namespace media
OLDNEW
« no previous file with comments | « media/blink/null_encrypted_media_player_support.h ('k') | media/blink/webmediaplayer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698