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

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: 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 #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 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.
128 bool value);
127 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket, 129 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket,
128 uint32 socket_id); 130 uint32 socket_id);
129 virtual void TCPServerSocketListen(PP_Resource socket_resource, 131 virtual void TCPServerSocketListen(PP_Resource socket_resource,
130 const PP_NetAddress_Private& addr, 132 const PP_NetAddress_Private& addr,
131 int32_t backlog); 133 int32_t backlog);
132 virtual void TCPServerSocketAccept(uint32 server_socket_id); 134 virtual void TCPServerSocketAccept(uint32 server_socket_id);
133 virtual void TCPServerSocketStopListening(PP_Resource socket_resource, 135 virtual void TCPServerSocketStopListening(PP_Resource socket_resource,
134 uint32 socket_id); 136 uint32 socket_id);
135 virtual void RegisterHostResolver( 137 virtual void RegisterHostResolver(
136 ::ppapi::PPB_HostResolver_Shared* host_resolver, 138 ::ppapi::PPB_HostResolver_Shared* host_resolver,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 virtual bool IsPageVisible() const; 173 virtual bool IsPageVisible() const;
172 virtual int EnumerateDevices(PP_DeviceType_Dev type, 174 virtual int EnumerateDevices(PP_DeviceType_Dev type,
173 const EnumerateDevicesCallback& callback); 175 const EnumerateDevicesCallback& callback);
174 virtual void StopEnumerateDevices(int request_id); 176 virtual void StopEnumerateDevices(int request_id);
175 }; 177 };
176 178
177 } // namespace ppapi 179 } // namespace ppapi
178 } // namespace webkit 180 } // namespace webkit
179 181
180 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ 182 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698