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 PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 PP_Resource message, | 129 PP_Resource message, |
130 PP_Var default_url) OVERRIDE; | 130 PP_Var default_url) OVERRIDE; |
131 virtual void KeyError(PP_Instance instance, | 131 virtual void KeyError(PP_Instance instance, |
132 PP_Var key_system, | 132 PP_Var key_system, |
133 PP_Var session_id, | 133 PP_Var session_id, |
134 int32_t media_error, | 134 int32_t media_error, |
135 int32_t system_code) OVERRIDE; | 135 int32_t system_code) OVERRIDE; |
136 virtual void DeliverBlock(PP_Instance instance, | 136 virtual void DeliverBlock(PP_Instance instance, |
137 PP_Resource decrypted_block, | 137 PP_Resource decrypted_block, |
138 const PP_DecryptedBlockInfo* block_info) OVERRIDE; | 138 const PP_DecryptedBlockInfo* block_info) OVERRIDE; |
| 139 virtual void DecoderDeinitializeDone(PP_Instance instance, |
| 140 PP_StreamType decoder_type, |
| 141 uint32_t request_id) OVERRIDE; |
| 142 virtual void DecoderResetDone(PP_Instance instance, |
| 143 PP_StreamType decoder_type, |
| 144 uint32_t request_id) OVERRIDE; |
139 virtual void DeliverFrame(PP_Instance instance, | 145 virtual void DeliverFrame(PP_Instance instance, |
140 PP_Resource decrypted_frame, | 146 PP_Resource decrypted_frame, |
141 const PP_DecryptedFrameInfo* frame_info) OVERRIDE; | 147 const PP_DecryptedFrameInfo* frame_info) OVERRIDE; |
142 virtual void DeliverSamples(PP_Instance instance, | 148 virtual void DeliverSamples(PP_Instance instance, |
143 PP_Resource decrypted_samples, | 149 PP_Resource decrypted_samples, |
144 const PP_DecryptedBlockInfo* block_info) OVERRIDE; | 150 const PP_DecryptedBlockInfo* block_info) OVERRIDE; |
145 #endif // !defined(OS_NACL) | 151 #endif // !defined(OS_NACL) |
146 | 152 |
147 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 153 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
148 | 154 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 virtual void OnHostMsgKeyMessage(PP_Instance instance, | 228 virtual void OnHostMsgKeyMessage(PP_Instance instance, |
223 SerializedVarReceiveInput key_system, | 229 SerializedVarReceiveInput key_system, |
224 SerializedVarReceiveInput session_id, | 230 SerializedVarReceiveInput session_id, |
225 PP_Resource message, | 231 PP_Resource message, |
226 SerializedVarReceiveInput default_url); | 232 SerializedVarReceiveInput default_url); |
227 virtual void OnHostMsgKeyError(PP_Instance instance, | 233 virtual void OnHostMsgKeyError(PP_Instance instance, |
228 SerializedVarReceiveInput key_system, | 234 SerializedVarReceiveInput key_system, |
229 SerializedVarReceiveInput session_id, | 235 SerializedVarReceiveInput session_id, |
230 int32_t media_error, | 236 int32_t media_error, |
231 int32_t system_code); | 237 int32_t system_code); |
| 238 virtual void OnHostMsgDecoderDeinitializeDone(PP_Instance instance, |
| 239 PP_StreamType decoder_type, |
| 240 uint32_t request_id); |
| 241 virtual void OnHostMsgDecoderResetDone(PP_Instance instance, |
| 242 PP_StreamType decoder_type, |
| 243 uint32_t request_id); |
232 virtual void OnHostMsgDeliverBlock(PP_Instance instance, | 244 virtual void OnHostMsgDeliverBlock(PP_Instance instance, |
233 PP_Resource decrypted_block, | 245 PP_Resource decrypted_block, |
234 const std::string& serialized_block_info); | 246 const std::string& serialized_block_info); |
235 virtual void OnHostMsgDeliverFrame(PP_Instance instance, | 247 virtual void OnHostMsgDeliverFrame(PP_Instance instance, |
236 PP_Resource decrypted_frame, | 248 PP_Resource decrypted_frame, |
237 const std::string& serialized_block_info); | 249 const std::string& serialized_block_info); |
238 virtual void OnHostMsgDeliverSamples( | 250 virtual void OnHostMsgDeliverSamples( |
239 PP_Instance instance, | 251 PP_Instance instance, |
240 PP_Resource decrypted_samples, | 252 PP_Resource decrypted_samples, |
241 const std::string& serialized_block_info); | 253 const std::string& serialized_block_info); |
242 #endif // !defined(OS_NACL) | 254 #endif // !defined(OS_NACL) |
243 | 255 |
244 // Host -> Plugin message handlers. | 256 // Host -> Plugin message handlers. |
245 void OnPluginMsgMouseLockComplete(PP_Instance instance, int32_t result); | 257 void OnPluginMsgMouseLockComplete(PP_Instance instance, int32_t result); |
246 | 258 |
247 void MouseLockCompleteInHost(int32_t result, PP_Instance instance); | 259 void MouseLockCompleteInHost(int32_t result, PP_Instance instance); |
248 | 260 |
249 // Other helpers. | 261 // Other helpers. |
250 void CancelAnyPendingRequestSurroundingText(PP_Instance instance); | 262 void CancelAnyPendingRequestSurroundingText(PP_Instance instance); |
251 | 263 |
252 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_; | 264 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_; |
253 }; | 265 }; |
254 | 266 |
255 } // namespace proxy | 267 } // namespace proxy |
256 } // namespace ppapi | 268 } // namespace ppapi |
257 | 269 |
258 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 270 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
OLD | NEW |