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

Side by Side Diff: net/socket/socks_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: '' 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
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_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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; 55 virtual const BoundNetLog& NetLog() const;
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 virtual bool UsingTCPFastOpen() const;
60 virtual int NumBytesRead() const;
61 virtual double GetRTTInMs() const;
60 62
61 // Socket methods: 63 // Socket methods:
62 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); 64 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback);
63 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); 65 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback);
64 66
65 virtual bool SetReceiveBufferSize(int32 size); 67 virtual bool SetReceiveBufferSize(int32 size);
66 virtual bool SetSendBufferSize(int32 size); 68 virtual bool SetSendBufferSize(int32 size);
67 69
68 virtual int GetPeerAddress(AddressList* address) const; 70 virtual int GetPeerAddress(AddressList* address) const;
69 virtual int GetLocalAddress(IPEndPoint* address) const; 71 virtual int GetLocalAddress(IPEndPoint* address) const;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 HostResolver::RequestInfo host_request_info_; 131 HostResolver::RequestInfo host_request_info_;
130 132
131 BoundNetLog net_log_; 133 BoundNetLog net_log_;
132 134
133 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket); 135 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket);
134 }; 136 };
135 137
136 } // namespace net 138 } // namespace net
137 139
138 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ 140 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698