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

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

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: Actually export v0.5 interface, and add thunk for it. Fix unit-test and add missing IsConnected che… 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 #ifndef WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_
6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_
7 7
8 #include "webkit/plugins/ppapi/plugin_delegate.h" 8 #include "webkit/plugins/ppapi/plugin_delegate.h"
9 9
10 struct PP_NetAddress_Private; 10 struct PP_NetAddress_Private;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 const PP_NetAddress_Private& addr); 117 const PP_NetAddress_Private& addr);
118 virtual void TCPSocketSSLHandshake( 118 virtual void TCPSocketSSLHandshake(
119 uint32 socket_id, 119 uint32 socket_id,
120 const std::string& server_name, 120 const std::string& server_name,
121 uint16_t server_port, 121 uint16_t server_port,
122 const std::vector<std::vector<char> >& trusted_certs, 122 const std::vector<std::vector<char> >& trusted_certs,
123 const std::vector<std::vector<char> >& untrusted_certs); 123 const std::vector<std::vector<char> >& untrusted_certs);
124 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read); 124 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read);
125 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer); 125 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer);
126 virtual void TCPSocketDisconnect(uint32 socket_id); 126 virtual void TCPSocketDisconnect(uint32 socket_id);
127 virtual void TCPSocketSetBoolOption(uint32 socket_id,
128 PP_TCPSocketOption_Private name,
129 bool value);
127 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket, 130 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket,
128 uint32 socket_id); 131 uint32 socket_id);
129 virtual void TCPServerSocketListen(PP_Resource socket_resource, 132 virtual void TCPServerSocketListen(PP_Resource socket_resource,
130 const PP_NetAddress_Private& addr, 133 const PP_NetAddress_Private& addr,
131 int32_t backlog); 134 int32_t backlog);
132 virtual void TCPServerSocketAccept(uint32 server_socket_id); 135 virtual void TCPServerSocketAccept(uint32 server_socket_id);
133 virtual void TCPServerSocketStopListening(PP_Resource socket_resource, 136 virtual void TCPServerSocketStopListening(PP_Resource socket_resource,
134 uint32 socket_id); 137 uint32 socket_id);
135 virtual void RegisterHostResolver( 138 virtual void RegisterHostResolver(
136 ::ppapi::PPB_HostResolver_Shared* host_resolver, 139 ::ppapi::PPB_HostResolver_Shared* host_resolver,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 virtual bool IsPageVisible() const; 174 virtual bool IsPageVisible() const;
172 virtual int EnumerateDevices(PP_DeviceType_Dev type, 175 virtual int EnumerateDevices(PP_DeviceType_Dev type,
173 const EnumerateDevicesCallback& callback); 176 const EnumerateDevicesCallback& callback);
174 virtual void StopEnumerateDevices(int request_id); 177 virtual void StopEnumerateDevices(int request_id);
175 }; 178 };
176 179
177 } // namespace ppapi 180 } // namespace ppapi
178 } // namespace webkit 181 } // namespace webkit
179 182
180 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ 183 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698