| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 FilePath* platform_path) { | 227 FilePath* platform_path) { |
| 228 DCHECK(platform_path); | 228 DCHECK(platform_path); |
| 229 *platform_path = FilePath(); | 229 *platform_path = FilePath(); |
| 230 } | 230 } |
| 231 | 231 |
| 232 scoped_refptr<base::MessageLoopProxy> | 232 scoped_refptr<base::MessageLoopProxy> |
| 233 MockPluginDelegate::GetFileThreadMessageLoopProxy() { | 233 MockPluginDelegate::GetFileThreadMessageLoopProxy() { |
| 234 return scoped_refptr<base::MessageLoopProxy>(); | 234 return scoped_refptr<base::MessageLoopProxy>(); |
| 235 } | 235 } |
| 236 | 236 |
| 237 int32_t MockPluginDelegate::ConnectTcp( | |
| 238 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, | |
| 239 const char* host, | |
| 240 uint16_t port) { | |
| 241 return PP_ERROR_FAILED; | |
| 242 } | |
| 243 | |
| 244 int32_t MockPluginDelegate::ConnectTcpAddress( | |
| 245 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, | |
| 246 const PP_NetAddress_Private* addr) { | |
| 247 return PP_ERROR_FAILED; | |
| 248 } | |
| 249 | |
| 250 uint32 MockPluginDelegate::TCPSocketCreate() { | 237 uint32 MockPluginDelegate::TCPSocketCreate() { |
| 251 return 0; | 238 return 0; |
| 252 } | 239 } |
| 253 | 240 |
| 254 void MockPluginDelegate::TCPSocketConnect(PPB_TCPSocket_Private_Impl* socket, | 241 void MockPluginDelegate::TCPSocketConnect(PPB_TCPSocket_Private_Impl* socket, |
| 255 uint32 socket_id, | 242 uint32 socket_id, |
| 256 const std::string& host, | 243 const std::string& host, |
| 257 uint16_t port) { | 244 uint16_t port) { |
| 258 } | 245 } |
| 259 | 246 |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 return -1; | 425 return -1; |
| 439 } | 426 } |
| 440 | 427 |
| 441 webkit_glue::ClipboardClient* | 428 webkit_glue::ClipboardClient* |
| 442 MockPluginDelegate::CreateClipboardClient() const { | 429 MockPluginDelegate::CreateClipboardClient() const { |
| 443 return NULL; | 430 return NULL; |
| 444 } | 431 } |
| 445 | 432 |
| 446 } // namespace ppapi | 433 } // namespace ppapi |
| 447 } // namespace webkit | 434 } // namespace webkit |
| OLD | NEW |