OLD | NEW |
---|---|
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 Loading... | |
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* cdm) { | |
53 } | |
ddorwin
2014/09/23 18:03:23
DCHECK?
jrummell
2014/09/23 20:01:38
Can be null.
| |
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 |
OLD | NEW |