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

Side by Side Diff: net/socket/socks_client_socket.h

Issue 4039003: Add experimental option for TCP FastOpen.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
« no previous file with comments | « net/socket/socks5_client_socket.cc ('k') | net/socket/socks_client_socket.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ 5 #ifndef NET_SOCKET_SOCKS_CLIENT_SOCKET_H_
6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ 6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 // Does the SOCKS handshake and completes the protocol. 50 // Does the SOCKS handshake and completes the protocol.
51 virtual int Connect(CompletionCallback* callback); 51 virtual int Connect(CompletionCallback* callback);
52 virtual void Disconnect(); 52 virtual void Disconnect();
53 virtual bool IsConnected() const; 53 virtual bool IsConnected() const;
54 virtual bool IsConnectedAndIdle() const; 54 virtual bool IsConnectedAndIdle() const;
55 virtual const BoundNetLog& NetLog() const { return net_log_; } 55 virtual const BoundNetLog& NetLog() const { return net_log_; }
56 virtual void SetSubresourceSpeculation(); 56 virtual void SetSubresourceSpeculation();
57 virtual void SetOmniboxSpeculation(); 57 virtual void SetOmniboxSpeculation();
58 virtual bool WasEverUsed() const; 58 virtual bool WasEverUsed() const;
59 virtual bool UsingTCPFastOpen() const;
59 60
60 // Socket methods: 61 // Socket methods:
61 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); 62 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback);
62 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); 63 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback);
63 64
64 virtual bool SetReceiveBufferSize(int32 size); 65 virtual bool SetReceiveBufferSize(int32 size);
65 virtual bool SetSendBufferSize(int32 size); 66 virtual bool SetSendBufferSize(int32 size);
66 67
67 virtual int GetPeerAddress(AddressList* address) const; 68 virtual int GetPeerAddress(AddressList* address) const;
68 69
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 HostResolver::RequestInfo host_request_info_; 139 HostResolver::RequestInfo host_request_info_;
139 140
140 BoundNetLog net_log_; 141 BoundNetLog net_log_;
141 142
142 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket); 143 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket);
143 }; 144 };
144 145
145 } // namespace net 146 } // namespace net
146 147
147 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ 148 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « net/socket/socks5_client_socket.cc ('k') | net/socket/socks_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698