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

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

Issue 567803002: Hook WebMediaPlayerImpl up to Mojo's HTMLDocumentView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move factory ownership to HTMLViewer. Created 6 years, 3 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 2014 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 #include "media/blink/null_encrypted_media_player_support.h"
6
7 #include "third_party/WebKit/public/platform/WebContentDecryptionModule.h"
8 #include "third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h"
9
10 namespace media {
11
12 scoped_ptr<media::EncryptedMediaPlayerSupport>
scherkus (not reviewing) 2014/09/12 00:17:52 s/media:://
acolwell GONE FROM CHROMIUM 2014/09/12 16:46:02 Done.
13 NullEncryptedMediaPlayerSupport::Create(blink::WebMediaPlayerClient* client) {
14 return scoped_ptr<EncryptedMediaPlayerSupport>(
15 new NullEncryptedMediaPlayerSupport());
16 }
17
18 NullEncryptedMediaPlayerSupport::NullEncryptedMediaPlayerSupport() {
19 }
20
21 NullEncryptedMediaPlayerSupport::~NullEncryptedMediaPlayerSupport() {
22 }
23
24 blink::WebMediaPlayer::MediaKeyException
25 NullEncryptedMediaPlayerSupport::GenerateKeyRequest(
26 blink::WebLocalFrame* frame,
27 const blink::WebString& key_system,
28 const unsigned char* init_data,
29 unsigned init_data_length) {
30 return blink::WebMediaPlayer::MediaKeyExceptionKeySystemNotSupported;
31 }
32
33 blink::WebMediaPlayer::MediaKeyException
34 NullEncryptedMediaPlayerSupport::AddKey(
35 const blink::WebString& key_system,
36 const unsigned char* key,
37 unsigned key_length,
38 const unsigned char* init_data,
39 unsigned init_data_length,
40 const blink::WebString& session_id) {
41 return blink::WebMediaPlayer::MediaKeyExceptionKeySystemNotSupported;
42 }
43
44 blink::WebMediaPlayer::MediaKeyException
45 NullEncryptedMediaPlayerSupport::CancelKeyRequest(
46 const blink::WebString& key_system,
47 const blink::WebString& session_id) {
48 return blink::WebMediaPlayer::MediaKeyExceptionKeySystemNotSupported;
49 }
50
51 void NullEncryptedMediaPlayerSupport::SetContentDecryptionModule(
52 blink::WebContentDecryptionModule* cdm) {
53 }
54
55 void NullEncryptedMediaPlayerSupport::SetContentDecryptionModule(
56 blink::WebContentDecryptionModule* cdm,
57 blink::WebContentDecryptionModuleResult result) {
58 result.completeWithError(
59 blink::WebContentDecryptionModuleExceptionNotSupportedError,
60 0,
61 "Null MediaKeys object is not supported.");
62 }
63
64 void NullEncryptedMediaPlayerSupport::SetContentDecryptionModuleSync(
65 blink::WebContentDecryptionModule* cdm) {
66 }
67
68 Demuxer::NeedKeyCB NullEncryptedMediaPlayerSupport::CreateNeedKeyCB() {
69 return Demuxer::NeedKeyCB();
70 }
71
72 SetDecryptorReadyCB
73 NullEncryptedMediaPlayerSupport::CreateSetDecryptorReadyCB() {
74 return SetDecryptorReadyCB();
75 }
76
77 void NullEncryptedMediaPlayerSupport::OnPipelineDecryptError() {
78 }
79
80 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698