| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ | 5 #ifndef WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ |
| 6 #define WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ | 6 #define WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 bool DemuxerAppend(const std::string& id, const uint8* data, size_t length); | 106 bool DemuxerAppend(const std::string& id, const uint8* data, size_t length); |
| 107 void DemuxerAbort(const std::string& id); | 107 void DemuxerAbort(const std::string& id); |
| 108 void DemuxerEndOfStream(media::PipelineStatus status); | 108 void DemuxerEndOfStream(media::PipelineStatus status); |
| 109 void DemuxerShutdown(); | 109 void DemuxerShutdown(); |
| 110 | 110 |
| 111 // DecryptorClient implementation. | 111 // DecryptorClient implementation. |
| 112 virtual void KeyAdded(const std::string& key_system, | 112 virtual void KeyAdded(const std::string& key_system, |
| 113 const std::string& session_id) OVERRIDE; | 113 const std::string& session_id) OVERRIDE; |
| 114 virtual void KeyError(const std::string& key_system, | 114 virtual void KeyError(const std::string& key_system, |
| 115 const std::string& session_id, | 115 const std::string& session_id, |
| 116 media::AesDecryptor::KeyError error_code, | 116 media::Decryptor::KeyError error_code, |
| 117 int system_code) OVERRIDE; | 117 int system_code) OVERRIDE; |
| 118 virtual void KeyMessage(const std::string& key_system, | 118 virtual void KeyMessage(const std::string& key_system, |
| 119 const std::string& session_id, | 119 const std::string& session_id, |
| 120 scoped_array<uint8> message, | 120 scoped_array<uint8> message, |
| 121 int message_length, | 121 int message_length, |
| 122 const std::string& default_url) OVERRIDE; | 122 const std::string& default_url) OVERRIDE; |
| 123 virtual void NeedKey(const std::string& key_system, | 123 virtual void NeedKey(const std::string& key_system, |
| 124 const std::string& session_id, | 124 const std::string& session_id, |
| 125 scoped_array<uint8> init_data, | 125 scoped_array<uint8> init_data, |
| 126 int init_data_size) OVERRIDE; | 126 int init_data_size) OVERRIDE; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 154 void DemuxerOpenedTask(const scoped_refptr<media::ChunkDemuxer>& demuxer); | 154 void DemuxerOpenedTask(const scoped_refptr<media::ChunkDemuxer>& demuxer); |
| 155 void DemuxerClosedTask(); | 155 void DemuxerClosedTask(); |
| 156 | 156 |
| 157 // Notify |webmediaplayer_| that a key has been added. | 157 // Notify |webmediaplayer_| that a key has been added. |
| 158 void KeyAddedTask(const std::string& key_system, | 158 void KeyAddedTask(const std::string& key_system, |
| 159 const std::string& session_id); | 159 const std::string& session_id); |
| 160 | 160 |
| 161 // Notify |webmediaplayer_| that a key error has occurred. | 161 // Notify |webmediaplayer_| that a key error has occurred. |
| 162 void KeyErrorTask(const std::string& key_system, | 162 void KeyErrorTask(const std::string& key_system, |
| 163 const std::string& session_id, | 163 const std::string& session_id, |
| 164 media::AesDecryptor::KeyError error_code, | 164 media::Decryptor::KeyError error_code, |
| 165 int system_code); | 165 int system_code); |
| 166 | 166 |
| 167 // Notify |webmediaplayer_| that a key message has been generated. | 167 // Notify |webmediaplayer_| that a key message has been generated. |
| 168 void KeyMessageTask(const std::string& key_system, | 168 void KeyMessageTask(const std::string& key_system, |
| 169 const std::string& session_id, | 169 const std::string& session_id, |
| 170 scoped_array<uint8> message, | 170 scoped_array<uint8> message, |
| 171 int message_length, | 171 int message_length, |
| 172 const std::string& default_url); | 172 const std::string& default_url); |
| 173 | 173 |
| 174 // Notify |webmediaplayer_| that a key is needed for decryption. | 174 // Notify |webmediaplayer_| that a key is needed for decryption. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 190 int outstanding_repaints_; | 190 int outstanding_repaints_; |
| 191 | 191 |
| 192 scoped_refptr<media::ChunkDemuxer> chunk_demuxer_; | 192 scoped_refptr<media::ChunkDemuxer> chunk_demuxer_; |
| 193 | 193 |
| 194 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerProxy); | 194 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerProxy); |
| 195 }; | 195 }; |
| 196 | 196 |
| 197 } // namespace webkit_media | 197 } // namespace webkit_media |
| 198 | 198 |
| 199 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ | 199 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ |
| OLD | NEW |