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