| 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 DecoderReset(PP_Instance instance, |
| 140 uint32_t request_id) OVERRIDE; |
| 141 virtual void DecoderStopped(PP_Instance instance, |
| 142 uint32_t request_id) OVERRIDE; |
| 139 virtual void DeliverFrame(PP_Instance instance, | 143 virtual void DeliverFrame(PP_Instance instance, |
| 140 PP_Resource decrypted_frame, | 144 PP_Resource decrypted_frame, |
| 141 const PP_DecryptedFrameInfo* frame_info) OVERRIDE; | 145 const PP_DecryptedFrameInfo* frame_info) OVERRIDE; |
| 142 virtual void DeliverSamples(PP_Instance instance, | 146 virtual void DeliverSamples(PP_Instance instance, |
| 143 PP_Resource decrypted_samples, | 147 PP_Resource decrypted_samples, |
| 144 const PP_DecryptedBlockInfo* block_info) OVERRIDE; | 148 const PP_DecryptedBlockInfo* block_info) OVERRIDE; |
| 145 #endif // !defined(OS_NACL) | 149 #endif // !defined(OS_NACL) |
| 146 | 150 |
| 147 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 151 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
| 148 | 152 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 virtual void OnHostMsgKeyMessage(PP_Instance instance, | 226 virtual void OnHostMsgKeyMessage(PP_Instance instance, |
| 223 SerializedVarReceiveInput key_system, | 227 SerializedVarReceiveInput key_system, |
| 224 SerializedVarReceiveInput session_id, | 228 SerializedVarReceiveInput session_id, |
| 225 PP_Resource message, | 229 PP_Resource message, |
| 226 SerializedVarReceiveInput default_url); | 230 SerializedVarReceiveInput default_url); |
| 227 virtual void OnHostMsgKeyError(PP_Instance instance, | 231 virtual void OnHostMsgKeyError(PP_Instance instance, |
| 228 SerializedVarReceiveInput key_system, | 232 SerializedVarReceiveInput key_system, |
| 229 SerializedVarReceiveInput session_id, | 233 SerializedVarReceiveInput session_id, |
| 230 int32_t media_error, | 234 int32_t media_error, |
| 231 int32_t system_code); | 235 int32_t system_code); |
| 236 virtual void OnHostMsgDecoderReset(PP_Instance instance, |
| 237 uint32_t request_id); |
| 238 virtual void OnHostMsgDecoderStopped(PP_Instance instance, |
| 239 uint32_t request_id); |
| 232 virtual void OnHostMsgDeliverBlock(PP_Instance instance, | 240 virtual void OnHostMsgDeliverBlock(PP_Instance instance, |
| 233 PP_Resource decrypted_block, | 241 PP_Resource decrypted_block, |
| 234 const std::string& serialized_block_info); | 242 const std::string& serialized_block_info); |
| 235 virtual void OnHostMsgDeliverFrame(PP_Instance instance, | 243 virtual void OnHostMsgDeliverFrame(PP_Instance instance, |
| 236 PP_Resource decrypted_frame, | 244 PP_Resource decrypted_frame, |
| 237 const std::string& serialized_block_info); | 245 const std::string& serialized_block_info); |
| 238 virtual void OnHostMsgDeliverSamples( | 246 virtual void OnHostMsgDeliverSamples( |
| 239 PP_Instance instance, | 247 PP_Instance instance, |
| 240 PP_Resource decrypted_samples, | 248 PP_Resource decrypted_samples, |
| 241 const std::string& serialized_block_info); | 249 const std::string& serialized_block_info); |
| 242 #endif // !defined(OS_NACL) | 250 #endif // !defined(OS_NACL) |
| 243 | 251 |
| 244 // Host -> Plugin message handlers. | 252 // Host -> Plugin message handlers. |
| 245 void OnPluginMsgMouseLockComplete(PP_Instance instance, int32_t result); | 253 void OnPluginMsgMouseLockComplete(PP_Instance instance, int32_t result); |
| 246 | 254 |
| 247 void MouseLockCompleteInHost(int32_t result, PP_Instance instance); | 255 void MouseLockCompleteInHost(int32_t result, PP_Instance instance); |
| 248 | 256 |
| 249 // Other helpers. | 257 // Other helpers. |
| 250 void CancelAnyPendingRequestSurroundingText(PP_Instance instance); | 258 void CancelAnyPendingRequestSurroundingText(PP_Instance instance); |
| 251 | 259 |
| 252 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_; | 260 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_; |
| 253 }; | 261 }; |
| 254 | 262 |
| 255 } // namespace proxy | 263 } // namespace proxy |
| 256 } // namespace ppapi | 264 } // namespace ppapi |
| 257 | 265 |
| 258 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 266 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
| OLD | NEW |