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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 // PPB_ContentDecryptor_Private dispatching methods. | 86 // PPB_ContentDecryptor_Private dispatching methods. |
87 void OnSessionCreated(uint32 session_id, PP_Var web_session_id_var); | 87 void OnSessionCreated(uint32 session_id, PP_Var web_session_id_var); |
88 void OnSessionMessage(uint32 session_id, | 88 void OnSessionMessage(uint32 session_id, |
89 PP_Var message, | 89 PP_Var message, |
90 PP_Var destination_url); | 90 PP_Var destination_url); |
91 void OnSessionReady(uint32 session_id); | 91 void OnSessionReady(uint32 session_id); |
92 void OnSessionClosed(uint32 session_id); | 92 void OnSessionClosed(uint32 session_id); |
93 void OnSessionError(uint32 session_id, | 93 void OnSessionError(uint32 session_id, |
94 int32_t media_error, | 94 int32_t media_error, |
95 int32_t system_code); | 95 uint32_t system_code); |
96 void DeliverBlock(PP_Resource decrypted_block, | 96 void DeliverBlock(PP_Resource decrypted_block, |
97 const PP_DecryptedBlockInfo* block_info); | 97 const PP_DecryptedBlockInfo* block_info); |
98 void DecoderInitializeDone(PP_DecryptorStreamType decoder_type, | 98 void DecoderInitializeDone(PP_DecryptorStreamType decoder_type, |
99 uint32_t request_id, | 99 uint32_t request_id, |
100 PP_Bool success); | 100 PP_Bool success); |
101 void DecoderDeinitializeDone(PP_DecryptorStreamType decoder_type, | 101 void DecoderDeinitializeDone(PP_DecryptorStreamType decoder_type, |
102 uint32_t request_id); | 102 uint32_t request_id); |
103 void DecoderResetDone(PP_DecryptorStreamType decoder_type, | 103 void DecoderResetDone(PP_DecryptorStreamType decoder_type, |
104 uint32_t request_id); | 104 uint32_t request_id); |
105 void DeliverFrame(PP_Resource decrypted_frame, | 105 void DeliverFrame(PP_Resource decrypted_frame, |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 | 214 |
215 base::WeakPtr<ContentDecryptorDelegate> weak_this_; | 215 base::WeakPtr<ContentDecryptorDelegate> weak_this_; |
216 base::WeakPtrFactory<ContentDecryptorDelegate> weak_ptr_factory_; | 216 base::WeakPtrFactory<ContentDecryptorDelegate> weak_ptr_factory_; |
217 | 217 |
218 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate); | 218 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate); |
219 }; | 219 }; |
220 | 220 |
221 } // namespace content | 221 } // namespace content |
222 | 222 |
223 #endif // CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ | 223 #endif // CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ |
OLD | NEW |