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

Side by Side Diff: net/curvecp/curvecp_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_CURVECP_CURVECP_CLIENT_SOCKET_H_ 5 #ifndef NET_CURVECP_CURVECP_CLIENT_SOCKET_H_
6 #define NET_CURVECP_CURVECP_CLIENT_SOCKET_H_ 6 #define NET_CURVECP_CURVECP_CLIENT_SOCKET_H_
7 #pragma once 7 #pragma once
8 8
9 #include "net/base/completion_callback.h" 9 #include "net/base/completion_callback.h"
10 #include "net/curvecp/client_packetizer.h" 10 #include "net/curvecp/client_packetizer.h"
(...skipping 18 matching lines...) Expand all
29 virtual void Disconnect(); 29 virtual void Disconnect();
30 virtual bool IsConnected() const; 30 virtual bool IsConnected() const;
31 virtual bool IsConnectedAndIdle() const; 31 virtual bool IsConnectedAndIdle() const;
32 virtual int GetPeerAddress(AddressList* address) const; 32 virtual int GetPeerAddress(AddressList* address) const;
33 virtual int GetLocalAddress(IPEndPoint* address) const; 33 virtual int GetLocalAddress(IPEndPoint* address) const;
34 virtual const BoundNetLog& NetLog() const; 34 virtual const BoundNetLog& NetLog() const;
35 virtual void SetSubresourceSpeculation(); 35 virtual void SetSubresourceSpeculation();
36 virtual void SetOmniboxSpeculation(); 36 virtual void SetOmniboxSpeculation();
37 virtual bool WasEverUsed() const; 37 virtual bool WasEverUsed() const;
38 virtual bool UsingTCPFastOpen() const; 38 virtual bool UsingTCPFastOpen() const;
39 virtual int64 NumBytesRead() const;
40 virtual base::TimeDelta GetConnectTimeMicros() const;
39 41
40 // Socket methods: 42 // Socket methods:
41 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); 43 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback);
42 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); 44 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback);
43 virtual bool SetReceiveBufferSize(int32 size); 45 virtual bool SetReceiveBufferSize(int32 size);
44 virtual bool SetSendBufferSize(int32 size); 46 virtual bool SetSendBufferSize(int32 size);
45 47
46 private: 48 private:
47 AddressList addresses_; 49 AddressList addresses_;
48 BoundNetLog net_log_; 50 BoundNetLog net_log_;
49 Messenger messenger_; 51 Messenger messenger_;
50 ClientPacketizer packetizer_; 52 ClientPacketizer packetizer_;
51 53
52 DISALLOW_COPY_AND_ASSIGN(CurveCPClientSocket); 54 DISALLOW_COPY_AND_ASSIGN(CurveCPClientSocket);
53 }; 55 };
54 56
55 } // namespace net 57 } // namespace net
56 58
57 #endif // NET_CURVECP_CURVECP_CLIENT_SOCKET_H_ 59 #endif // NET_CURVECP_CURVECP_CLIENT_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698