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

Side by Side Diff: webkit/plugins/ppapi/ppb_tcp_socket_private_impl.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_PPB_TCP_SOCKET_PRIVATE_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_TCP_SOCKET_PRIVATE_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_TCP_SOCKET_PRIVATE_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_TCP_SOCKET_PRIVATE_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 17 matching lines...) Expand all
28 virtual void SendConnectWithNetAddress( 28 virtual void SendConnectWithNetAddress(
29 const PP_NetAddress_Private& addr) OVERRIDE; 29 const PP_NetAddress_Private& addr) OVERRIDE;
30 virtual void SendSSLHandshake( 30 virtual void SendSSLHandshake(
31 const std::string& server_name, 31 const std::string& server_name,
32 uint16_t server_port, 32 uint16_t server_port,
33 const std::vector<std::vector<char> >& trusted_certs, 33 const std::vector<std::vector<char> >& trusted_certs,
34 const std::vector<std::vector<char> >& untrusted_certs) OVERRIDE; 34 const std::vector<std::vector<char> >& untrusted_certs) OVERRIDE;
35 virtual void SendRead(int32_t bytes_to_read) OVERRIDE; 35 virtual void SendRead(int32_t bytes_to_read) OVERRIDE;
36 virtual void SendWrite(const std::string& buffer) OVERRIDE; 36 virtual void SendWrite(const std::string& buffer) OVERRIDE;
37 virtual void SendDisconnect() OVERRIDE; 37 virtual void SendDisconnect() OVERRIDE;
38 virtual void SendSetBoolOption(PP_TCPSocketOption_Private name,
39 bool value) OVERRIDE;
38 40
39 private: 41 private:
40 PPB_TCPSocket_Private_Impl(PP_Instance instance, uint32 socket_id); 42 PPB_TCPSocket_Private_Impl(PP_Instance instance, uint32 socket_id);
41 virtual ~PPB_TCPSocket_Private_Impl(); 43 virtual ~PPB_TCPSocket_Private_Impl();
42 44
43 static PluginDelegate* GetPluginDelegate(PP_Instance instance); 45 static PluginDelegate* GetPluginDelegate(PP_Instance instance);
44 46
45 DISALLOW_COPY_AND_ASSIGN(PPB_TCPSocket_Private_Impl); 47 DISALLOW_COPY_AND_ASSIGN(PPB_TCPSocket_Private_Impl);
46 }; 48 };
47 49
48 } // namespace ppapi 50 } // namespace ppapi
49 } // namespace webkit 51 } // namespace webkit
50 52
51 #endif // WEBKIT_PLUGINS_PPAPI_PPB_TCP_SOCKET_PRIVATE_IMPL_H_ 53 #endif // WEBKIT_PLUGINS_PPAPI_PPB_TCP_SOCKET_PRIVATE_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/plugin_delegate.h ('k') | webkit/plugins/ppapi/ppb_tcp_socket_private_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698