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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 PP_Bool success) OVERRIDE; | 139 PP_Bool success) OVERRIDE; |
140 virtual void DecoderDeinitializeDone(PP_Instance instance, | 140 virtual void DecoderDeinitializeDone(PP_Instance instance, |
141 PP_DecryptorStreamType decoder_type, | 141 PP_DecryptorStreamType decoder_type, |
142 uint32_t request_id) OVERRIDE; | 142 uint32_t request_id) OVERRIDE; |
143 virtual void DecoderResetDone(PP_Instance instance, | 143 virtual void DecoderResetDone(PP_Instance instance, |
144 PP_DecryptorStreamType decoder_type, | 144 PP_DecryptorStreamType decoder_type, |
145 uint32_t request_id) OVERRIDE; | 145 uint32_t request_id) OVERRIDE; |
146 virtual void DeliverFrame(PP_Instance instance, | 146 virtual void DeliverFrame(PP_Instance instance, |
147 PP_Resource decrypted_frame, | 147 PP_Resource decrypted_frame, |
148 const PP_DecryptedFrameInfo* frame_info) OVERRIDE; | 148 const PP_DecryptedFrameInfo* frame_info) OVERRIDE; |
149 virtual void DeliverSamples(PP_Instance instance, | 149 virtual void DeliverSamples( |
150 PP_Resource audio_frames, | 150 PP_Instance instance, |
151 const PP_DecryptedBlockInfo* block_info) OVERRIDE; | 151 PP_Resource audio_frames, |
| 152 const PP_DecryptedSampleInfo* sample_info) OVERRIDE; |
152 #endif // !defined(OS_NACL) | 153 #endif // !defined(OS_NACL) |
153 | 154 |
154 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 155 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
155 | 156 |
156 private: | 157 private: |
157 // Plugin -> Host message handlers. | 158 // Plugin -> Host message handlers. |
158 void OnHostMsgGetWindowObject(PP_Instance instance, | 159 void OnHostMsgGetWindowObject(PP_Instance instance, |
159 SerializedVarReturnValue result); | 160 SerializedVarReturnValue result); |
160 void OnHostMsgGetOwnerElementObject(PP_Instance instance, | 161 void OnHostMsgGetOwnerElementObject(PP_Instance instance, |
161 SerializedVarReturnValue result); | 162 SerializedVarReturnValue result); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 uint32_t request_id); | 247 uint32_t request_id); |
247 virtual void OnHostMsgDeliverBlock(PP_Instance instance, | 248 virtual void OnHostMsgDeliverBlock(PP_Instance instance, |
248 PP_Resource decrypted_block, | 249 PP_Resource decrypted_block, |
249 const std::string& serialized_block_info); | 250 const std::string& serialized_block_info); |
250 virtual void OnHostMsgDeliverFrame(PP_Instance instance, | 251 virtual void OnHostMsgDeliverFrame(PP_Instance instance, |
251 PP_Resource decrypted_frame, | 252 PP_Resource decrypted_frame, |
252 const std::string& serialized_block_info); | 253 const std::string& serialized_block_info); |
253 virtual void OnHostMsgDeliverSamples( | 254 virtual void OnHostMsgDeliverSamples( |
254 PP_Instance instance, | 255 PP_Instance instance, |
255 PP_Resource audio_frames, | 256 PP_Resource audio_frames, |
256 const std::string& serialized_block_info); | 257 const std::string& serialized_sample_info); |
257 #endif // !defined(OS_NACL) | 258 #endif // !defined(OS_NACL) |
258 | 259 |
259 // Host -> Plugin message handlers. | 260 // Host -> Plugin message handlers. |
260 void OnPluginMsgMouseLockComplete(PP_Instance instance, int32_t result); | 261 void OnPluginMsgMouseLockComplete(PP_Instance instance, int32_t result); |
261 | 262 |
262 void MouseLockCompleteInHost(int32_t result, PP_Instance instance); | 263 void MouseLockCompleteInHost(int32_t result, PP_Instance instance); |
263 | 264 |
264 // Other helpers. | 265 // Other helpers. |
265 void CancelAnyPendingRequestSurroundingText(PP_Instance instance); | 266 void CancelAnyPendingRequestSurroundingText(PP_Instance instance); |
266 | 267 |
267 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_; | 268 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_; |
268 }; | 269 }; |
269 | 270 |
270 } // namespace proxy | 271 } // namespace proxy |
271 } // namespace ppapi | 272 } // namespace ppapi |
272 | 273 |
273 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 274 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
OLD | NEW |