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

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: Rebase. 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 // Add/remove a network list observer. 138 // Add/remove a network list observer.
136 virtual bool AddNetworkListObserver( 139 virtual bool AddNetworkListObserver(
(...skipping 26 matching lines...) Expand all
163 virtual bool IsPageVisible() const; 166 virtual bool IsPageVisible() const;
164 virtual int EnumerateDevices(PP_DeviceType_Dev type, 167 virtual int EnumerateDevices(PP_DeviceType_Dev type,
165 const EnumerateDevicesCallback& callback); 168 const EnumerateDevicesCallback& callback);
166 virtual void StopEnumerateDevices(int request_id); 169 virtual void StopEnumerateDevices(int request_id);
167 }; 170 };
168 171
169 } // namespace ppapi 172 } // namespace ppapi
170 } // namespace webkit 173 } // namespace webkit
171 174
172 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ 175 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_tcp_socket_private_thunk.cc ('k') | webkit/plugins/ppapi/mock_plugin_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698