| 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 CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ | 6 #define CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 const scoped_refptr<media::DecoderBuffer>& encrypted_buffer, | 81 const scoped_refptr<media::DecoderBuffer>& encrypted_buffer, |
| 82 const media::Decryptor::AudioDecodeCB& audio_decode_cb); | 82 const media::Decryptor::AudioDecodeCB& audio_decode_cb); |
| 83 bool DecryptAndDecodeVideo( | 83 bool DecryptAndDecodeVideo( |
| 84 const scoped_refptr<media::DecoderBuffer>& encrypted_buffer, | 84 const scoped_refptr<media::DecoderBuffer>& encrypted_buffer, |
| 85 const media::Decryptor::VideoDecodeCB& video_decode_cb); | 85 const media::Decryptor::VideoDecodeCB& video_decode_cb); |
| 86 | 86 |
| 87 // PPB_ContentDecryptor_Private dispatching methods. | 87 // PPB_ContentDecryptor_Private dispatching methods. |
| 88 void OnSessionCreated(uint32 session_id, PP_Var web_session_id_var); | 88 void OnSessionCreated(uint32 session_id, PP_Var web_session_id_var); |
| 89 void OnSessionMessage(uint32 session_id, | 89 void OnSessionMessage(uint32 session_id, |
| 90 PP_Var message, | 90 PP_Var message, |
| 91 PP_Var destination_url); | 91 PP_Var destination_url_var); |
| 92 void OnSessionReady(uint32 session_id); | 92 void OnSessionReady(uint32 session_id); |
| 93 void OnSessionClosed(uint32 session_id); | 93 void OnSessionClosed(uint32 session_id); |
| 94 void OnSessionError(uint32 session_id, | 94 void OnSessionError(uint32 session_id, |
| 95 int32_t media_error, | 95 int32_t media_error, |
| 96 uint32_t system_code); | 96 uint32_t system_code); |
| 97 void DeliverBlock(PP_Resource decrypted_block, | 97 void DeliverBlock(PP_Resource decrypted_block, |
| 98 const PP_DecryptedBlockInfo* block_info); | 98 const PP_DecryptedBlockInfo* block_info); |
| 99 void DecoderInitializeDone(PP_DecryptorStreamType decoder_type, | 99 void DecoderInitializeDone(PP_DecryptorStreamType decoder_type, |
| 100 uint32_t request_id, | 100 uint32_t request_id, |
| 101 PP_Bool success); | 101 PP_Bool success); |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 216 |
| 217 base::WeakPtr<ContentDecryptorDelegate> weak_this_; | 217 base::WeakPtr<ContentDecryptorDelegate> weak_this_; |
| 218 base::WeakPtrFactory<ContentDecryptorDelegate> weak_ptr_factory_; | 218 base::WeakPtrFactory<ContentDecryptorDelegate> weak_ptr_factory_; |
| 219 | 219 |
| 220 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate); | 220 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate); |
| 221 }; | 221 }; |
| 222 | 222 |
| 223 } // namespace content | 223 } // namespace content |
| 224 | 224 |
| 225 #endif // CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ | 225 #endif // CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ |
| OLD | NEW |