Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: webkit/plugins/ppapi/mock_plugin_delegate.cc

Issue 12220050: Provide a way to disable Nagle's algorithm on Pepper TCP sockets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing completion callback implementation. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 } 257 }
258 258
259 void MockPluginDelegate::TCPSocketRead(uint32 socket_id, 259 void MockPluginDelegate::TCPSocketRead(uint32 socket_id,
260 int32_t bytes_to_read) { 260 int32_t bytes_to_read) {
261 } 261 }
262 262
263 void MockPluginDelegate::TCPSocketWrite(uint32 socket_id, 263 void MockPluginDelegate::TCPSocketWrite(uint32 socket_id,
264 const std::string& buffer) { 264 const std::string& buffer) {
265 } 265 }
266 266
267 void MockPluginDelegate::TCPSocketSetBoolFeature(uint32 socket_id, int32_t name,
yzshen1 2013/02/08 21:51:11 For function declarations and definitions, put eac
Wez 2013/02/10 04:47:02 Done.
268 bool value) {
269 }
270
267 void MockPluginDelegate::TCPSocketDisconnect(uint32 socket_id) { 271 void MockPluginDelegate::TCPSocketDisconnect(uint32 socket_id) {
268 } 272 }
269 273
270 void MockPluginDelegate::RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket, 274 void MockPluginDelegate::RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket,
271 uint32 socket_id) { 275 uint32 socket_id) {
272 } 276 }
273 277
274 void MockPluginDelegate::TCPServerSocketListen( 278 void MockPluginDelegate::TCPServerSocketListen(
275 PP_Resource socket_resource, 279 PP_Resource socket_resource,
276 const PP_NetAddress_Private& addr, 280 const PP_NetAddress_Private& addr,
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 PP_DeviceType_Dev type, 390 PP_DeviceType_Dev type,
387 const EnumerateDevicesCallback& callback) { 391 const EnumerateDevicesCallback& callback) {
388 return -1; 392 return -1;
389 } 393 }
390 394
391 void MockPluginDelegate::StopEnumerateDevices(int request_id) { 395 void MockPluginDelegate::StopEnumerateDevices(int request_id) {
392 } 396 }
393 397
394 } // namespace ppapi 398 } // namespace ppapi
395 } // namespace webkit 399 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698