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