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

Side by Side Diff: net/spdy/spdy_proxy_client_socket.h

Issue 7251004: Deciding best connection to schedule requests on based on cwnd and idle time (Reopened after revert) (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Syncing to head 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_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ 5 #ifndef NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_
6 #define NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ 6 #define NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <list> 10 #include <list>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // StreamSocket methods: 70 // StreamSocket methods:
71 virtual int Connect(CompletionCallback* callback); 71 virtual int Connect(CompletionCallback* callback);
72 virtual void Disconnect(); 72 virtual void Disconnect();
73 virtual bool IsConnected() const; 73 virtual bool IsConnected() const;
74 virtual bool IsConnectedAndIdle() const; 74 virtual bool IsConnectedAndIdle() const;
75 virtual const BoundNetLog& NetLog() const; 75 virtual const BoundNetLog& NetLog() const;
76 virtual void SetSubresourceSpeculation(); 76 virtual void SetSubresourceSpeculation();
77 virtual void SetOmniboxSpeculation(); 77 virtual void SetOmniboxSpeculation();
78 virtual bool WasEverUsed() const; 78 virtual bool WasEverUsed() const;
79 virtual bool UsingTCPFastOpen() const; 79 virtual bool UsingTCPFastOpen() const;
80 virtual int64 NumBytesRead() const;
81 virtual base::TimeDelta GetConnectTimeMicros() const;
80 82
81 // Socket methods: 83 // Socket methods:
82 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); 84 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback);
83 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); 85 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback);
84 virtual bool SetReceiveBufferSize(int32 size); 86 virtual bool SetReceiveBufferSize(int32 size);
85 virtual bool SetSendBufferSize(int32 size); 87 virtual bool SetSendBufferSize(int32 size);
86 virtual int GetPeerAddress(AddressList* address) const; 88 virtual int GetPeerAddress(AddressList* address) const;
87 virtual int GetLocalAddress(IPEndPoint* address) const; 89 virtual int GetLocalAddress(IPEndPoint* address) const;
88 90
89 // SpdyStream::Delegate methods: 91 // SpdyStream::Delegate methods:
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 scoped_ptr<SpdyHttpStream> response_stream_; 165 scoped_ptr<SpdyHttpStream> response_stream_;
164 166
165 const BoundNetLog net_log_; 167 const BoundNetLog net_log_;
166 168
167 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); 169 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket);
168 }; 170 };
169 171
170 } // namespace net 172 } // namespace net
171 173
172 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ 174 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698