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 #ifndef MEDIA_BLINK_NULL_ENCRYPTED_MEDIA_PLAYER_SUPPORT_H_ | 5 #ifndef MEDIA_BLINK_NULL_ENCRYPTED_MEDIA_PLAYER_SUPPORT_H_ |
6 #define MEDIA_BLINK_NULL_ENCRYPTED_MEDIA_PLAYER_SUPPORT_H_ | 6 #define MEDIA_BLINK_NULL_ENCRYPTED_MEDIA_PLAYER_SUPPORT_H_ |
7 | 7 |
8 #include "media/base/media_export.h" | 8 #include "media/base/media_export.h" |
9 #include "media/blink/encrypted_media_player_support.h" | 9 #include "media/blink/encrypted_media_player_support.h" |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... | |
35 const unsigned char* init_data, | 35 const unsigned char* init_data, |
36 unsigned init_data_length, | 36 unsigned init_data_length, |
37 const blink::WebString& session_id) OVERRIDE; | 37 const blink::WebString& session_id) OVERRIDE; |
38 | 38 |
39 virtual blink::WebMediaPlayer::MediaKeyException CancelKeyRequest( | 39 virtual blink::WebMediaPlayer::MediaKeyException CancelKeyRequest( |
40 const blink::WebString& key_system, | 40 const blink::WebString& key_system, |
41 const blink::WebString& session_id) OVERRIDE; | 41 const blink::WebString& session_id) OVERRIDE; |
42 | 42 |
43 | 43 |
44 // Unprefixed API methods. | 44 // Unprefixed API methods. |
45 virtual void SetInitialContentDecryptionModule( | |
46 blink::WebContentDecryptionModule* cdm) OVERRIDE; | |
47 | |
ddorwin
2014/09/23 18:03:23
remove empty line
jrummell
2014/09/23 20:01:38
Done.
| |
45 virtual void SetContentDecryptionModule( | 48 virtual void SetContentDecryptionModule( |
46 blink::WebContentDecryptionModule* cdm) OVERRIDE; | 49 blink::WebContentDecryptionModule* cdm) OVERRIDE; |
47 virtual void SetContentDecryptionModule( | 50 virtual void SetContentDecryptionModule( |
48 blink::WebContentDecryptionModule* cdm, | 51 blink::WebContentDecryptionModule* cdm, |
49 blink::WebContentDecryptionModuleResult result) OVERRIDE; | 52 blink::WebContentDecryptionModuleResult result) OVERRIDE; |
50 virtual void SetContentDecryptionModuleSync( | |
51 blink::WebContentDecryptionModule* cdm) OVERRIDE; | |
52 | 53 |
53 | 54 |
54 // Callback factory and notification methods used by WebMediaPlayerImpl. | 55 // Callback factory and notification methods used by WebMediaPlayerImpl. |
55 | 56 |
56 // Creates a callback that Demuxers can use to signal that the content | 57 // Creates a callback that Demuxers can use to signal that the content |
57 // requires a key. This method makes sure the callback returned can be safely | 58 // requires a key. This method makes sure the callback returned can be safely |
58 // invoked from any thread. | 59 // invoked from any thread. |
59 virtual Demuxer::NeedKeyCB CreateNeedKeyCB() OVERRIDE; | 60 virtual Demuxer::NeedKeyCB CreateNeedKeyCB() OVERRIDE; |
60 | 61 |
61 // Creates a callback that renderers can use to set decryptor | 62 // Creates a callback that renderers can use to set decryptor |
62 // ready callback. This method makes sure the callback returned can be safely | 63 // ready callback. This method makes sure the callback returned can be safely |
63 // invoked from any thread. | 64 // invoked from any thread. |
64 virtual SetDecryptorReadyCB CreateSetDecryptorReadyCB() OVERRIDE; | 65 virtual SetDecryptorReadyCB CreateSetDecryptorReadyCB() OVERRIDE; |
65 | 66 |
66 // Called to inform this object that the media pipeline encountered | 67 // Called to inform this object that the media pipeline encountered |
67 // and handled a decryption error. | 68 // and handled a decryption error. |
68 virtual void OnPipelineDecryptError() OVERRIDE; | 69 virtual void OnPipelineDecryptError() OVERRIDE; |
69 | 70 |
70 private: | 71 private: |
71 NullEncryptedMediaPlayerSupport(); | 72 NullEncryptedMediaPlayerSupport(); |
72 | 73 |
73 DISALLOW_COPY_AND_ASSIGN(NullEncryptedMediaPlayerSupport); | 74 DISALLOW_COPY_AND_ASSIGN(NullEncryptedMediaPlayerSupport); |
74 }; | 75 }; |
75 | 76 |
76 } // namespace media | 77 } // namespace media |
77 | 78 |
78 #endif // MEDIA_BLINK_NULL_ENCRYPTED_MEDIA_PLAYER_SUPPORT_H_ | 79 #endif // MEDIA_BLINK_NULL_ENCRYPTED_MEDIA_PLAYER_SUPPORT_H_ |
OLD | NEW |