| 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 #include "webkit/plugins/ppapi/mock_plugin_delegate.h" | 5 #include "webkit/plugins/ppapi/mock_plugin_delegate.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/message_loop_proxy.h" | 8 #include "base/message_loop_proxy.h" |
| 9 #include "ppapi/c/pp_errors.h" | 9 #include "ppapi/c/pp_errors.h" |
| 10 #include "ppapi/shared_impl/ppapi_preferences.h" | 10 #include "ppapi/shared_impl/ppapi_preferences.h" |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 int32_t bytes_to_read) { | 268 int32_t bytes_to_read) { |
| 269 } | 269 } |
| 270 | 270 |
| 271 void MockPluginDelegate::TCPSocketWrite(uint32 socket_id, | 271 void MockPluginDelegate::TCPSocketWrite(uint32 socket_id, |
| 272 const std::string& buffer) { | 272 const std::string& buffer) { |
| 273 } | 273 } |
| 274 | 274 |
| 275 void MockPluginDelegate::TCPSocketDisconnect(uint32 socket_id) { | 275 void MockPluginDelegate::TCPSocketDisconnect(uint32 socket_id) { |
| 276 } | 276 } |
| 277 | 277 |
| 278 void MockPluginDelegate::RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket, |
| 279 uint32 socket_id) { |
| 280 } |
| 281 |
| 278 uint32 MockPluginDelegate::UDPSocketCreate() { | 282 uint32 MockPluginDelegate::UDPSocketCreate() { |
| 279 return 0; | 283 return 0; |
| 280 } | 284 } |
| 281 | 285 |
| 282 void MockPluginDelegate::UDPSocketBind(PPB_UDPSocket_Private_Impl* socket, | 286 void MockPluginDelegate::UDPSocketBind(PPB_UDPSocket_Private_Impl* socket, |
| 283 uint32 socket_id, | 287 uint32 socket_id, |
| 284 const PP_NetAddress_Private& addr) { | 288 const PP_NetAddress_Private& addr) { |
| 285 } | 289 } |
| 286 | 290 |
| 287 void MockPluginDelegate::UDPSocketRecvFrom(uint32 socket_id, | 291 void MockPluginDelegate::UDPSocketRecvFrom(uint32 socket_id, |
| 288 int32_t num_bytes) { | 292 int32_t num_bytes) { |
| 289 } | 293 } |
| 290 | 294 |
| 291 void MockPluginDelegate::UDPSocketSendTo(uint32 socket_id, | 295 void MockPluginDelegate::UDPSocketSendTo(uint32 socket_id, |
| 292 const std::string& buffer, | 296 const std::string& buffer, |
| 293 const PP_NetAddress_Private& addr) { | 297 const PP_NetAddress_Private& addr) { |
| 294 } | 298 } |
| 295 | 299 |
| 296 void MockPluginDelegate::UDPSocketClose(uint32 socket_id) { | 300 void MockPluginDelegate::UDPSocketClose(uint32 socket_id) { |
| 297 } | 301 } |
| 298 | 302 |
| 303 void MockPluginDelegate::TCPServerSocketListen( |
| 304 PPB_TCPServerSocket_Private_Impl* socket, |
| 305 uint32 temp_socket_id, |
| 306 const PP_NetAddress_Private& addr, |
| 307 int32_t backlog) { |
| 308 } |
| 309 |
| 310 void MockPluginDelegate::TCPServerSocketAccept(uint32 real_socket_id) { |
| 311 } |
| 312 |
| 313 void MockPluginDelegate::TCPServerSocketStopListening(uint32 real_socket_id, |
| 314 uint32 temp_socket_id) { |
| 315 } |
| 316 |
| 299 int32_t MockPluginDelegate::ShowContextMenu( | 317 int32_t MockPluginDelegate::ShowContextMenu( |
| 300 PluginInstance* instance, | 318 PluginInstance* instance, |
| 301 webkit::ppapi::PPB_Flash_Menu_Impl* menu, | 319 webkit::ppapi::PPB_Flash_Menu_Impl* menu, |
| 302 const gfx::Point& position) { | 320 const gfx::Point& position) { |
| 303 return PP_ERROR_FAILED; | 321 return PP_ERROR_FAILED; |
| 304 } | 322 } |
| 305 | 323 |
| 306 FullscreenContainer* MockPluginDelegate::CreateFullscreenContainer( | 324 FullscreenContainer* MockPluginDelegate::CreateFullscreenContainer( |
| 307 PluginInstance* instance) { | 325 PluginInstance* instance) { |
| 308 return NULL; | 326 return NULL; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 } | 406 } |
| 389 | 407 |
| 390 int MockPluginDelegate::EnumerateDevices( | 408 int MockPluginDelegate::EnumerateDevices( |
| 391 PP_DeviceType_Dev type, | 409 PP_DeviceType_Dev type, |
| 392 const EnumerateDevicesCallback& callback) { | 410 const EnumerateDevicesCallback& callback) { |
| 393 return -1; | 411 return -1; |
| 394 } | 412 } |
| 395 | 413 |
| 396 } // namespace ppapi | 414 } // namespace ppapi |
| 397 } // namespace webkit | 415 } // namespace webkit |
| OLD | NEW |