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

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

Issue 6990036: Deciding best connection to schedule requests on based on cwnd and idle time (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Reuploading from google.com account Created 9 years, 6 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
« no previous file with comments | « net/socket/client_socket_pool_base.cc ('k') | net/socket/socks5_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SOCKS5_CLIENT_SOCKET_H_ 5 #ifndef NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_
6 #define NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_ 6 #define NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // Does the SOCKS handshake and completes the protocol. 53 // Does the SOCKS handshake and completes the protocol.
54 virtual int Connect(CompletionCallback* callback); 54 virtual int Connect(CompletionCallback* callback);
55 virtual void Disconnect(); 55 virtual void Disconnect();
56 virtual bool IsConnected() const; 56 virtual bool IsConnected() const;
57 virtual bool IsConnectedAndIdle() const; 57 virtual bool IsConnectedAndIdle() const;
58 virtual const BoundNetLog& NetLog() const; 58 virtual const BoundNetLog& NetLog() const;
59 virtual void SetSubresourceSpeculation(); 59 virtual void SetSubresourceSpeculation();
60 virtual void SetOmniboxSpeculation(); 60 virtual void SetOmniboxSpeculation();
61 virtual bool WasEverUsed() const; 61 virtual bool WasEverUsed() const;
62 virtual bool UsingTCPFastOpen() const; 62 virtual bool UsingTCPFastOpen() const;
63 virtual int64 NumBytesRead() const;
64 virtual int GetConnectTimeMicros() const;
63 65
64 // Socket methods: 66 // Socket methods:
65 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); 67 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback);
66 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); 68 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback);
67 69
68 virtual bool SetReceiveBufferSize(int32 size); 70 virtual bool SetReceiveBufferSize(int32 size);
69 virtual bool SetSendBufferSize(int32 size); 71 virtual bool SetSendBufferSize(int32 size);
70 72
71 virtual int GetPeerAddress(AddressList* address) const; 73 virtual int GetPeerAddress(AddressList* address) const;
72 virtual int GetLocalAddress(IPEndPoint* address) const; 74 virtual int GetLocalAddress(IPEndPoint* address) const;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 HostResolver::RequestInfo host_request_info_; 149 HostResolver::RequestInfo host_request_info_;
148 150
149 BoundNetLog net_log_; 151 BoundNetLog net_log_;
150 152
151 DISALLOW_COPY_AND_ASSIGN(SOCKS5ClientSocket); 153 DISALLOW_COPY_AND_ASSIGN(SOCKS5ClientSocket);
152 }; 154 };
153 155
154 } // namespace net 156 } // namespace net
155 157
156 #endif // NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_ 158 #endif // NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « net/socket/client_socket_pool_base.cc ('k') | net/socket/socks5_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698