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

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

Issue 451383002: Plumbing for TCP FastOpen for SSL sockets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing linker error for Windows. Created 6 years, 3 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
« no previous file with comments | « net/socket/stream_socket.h ('k') | net/socket/tcp_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_TCP_CLIENT_SOCKET_H_ 5 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_H_
6 #define NET_SOCKET_TCP_CLIENT_SOCKET_H_ 6 #define NET_SOCKET_TCP_CLIENT_SOCKET_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 virtual void Disconnect() OVERRIDE; 42 virtual void Disconnect() OVERRIDE;
43 virtual bool IsConnected() const OVERRIDE; 43 virtual bool IsConnected() const OVERRIDE;
44 virtual bool IsConnectedAndIdle() const OVERRIDE; 44 virtual bool IsConnectedAndIdle() const OVERRIDE;
45 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; 45 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE;
46 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; 46 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
47 virtual const BoundNetLog& NetLog() const OVERRIDE; 47 virtual const BoundNetLog& NetLog() const OVERRIDE;
48 virtual void SetSubresourceSpeculation() OVERRIDE; 48 virtual void SetSubresourceSpeculation() OVERRIDE;
49 virtual void SetOmniboxSpeculation() OVERRIDE; 49 virtual void SetOmniboxSpeculation() OVERRIDE;
50 virtual bool WasEverUsed() const OVERRIDE; 50 virtual bool WasEverUsed() const OVERRIDE;
51 virtual bool UsingTCPFastOpen() const OVERRIDE; 51 virtual bool UsingTCPFastOpen() const OVERRIDE;
52 virtual void EnableTCPFastOpenIfSupported() OVERRIDE;
52 virtual bool WasNpnNegotiated() const OVERRIDE; 53 virtual bool WasNpnNegotiated() const OVERRIDE;
53 virtual NextProto GetNegotiatedProtocol() const OVERRIDE; 54 virtual NextProto GetNegotiatedProtocol() const OVERRIDE;
54 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; 55 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE;
55 56
56 // Socket implementation. 57 // Socket implementation.
57 // Multiple outstanding requests are not supported. 58 // Multiple outstanding requests are not supported.
58 // Full duplex mode (reading and writing at the same time) is supported. 59 // Full duplex mode (reading and writing at the same time) is supported.
59 virtual int Read(IOBuffer* buf, int buf_len, 60 virtual int Read(IOBuffer* buf, int buf_len,
60 const CompletionCallback& callback) OVERRIDE; 61 const CompletionCallback& callback) OVERRIDE;
61 virtual int Write(IOBuffer* buf, int buf_len, 62 virtual int Write(IOBuffer* buf, int buf_len,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // Record of connectivity and transmissions, for use in speculative connection 113 // Record of connectivity and transmissions, for use in speculative connection
113 // histograms. 114 // histograms.
114 UseHistory use_history_; 115 UseHistory use_history_;
115 116
116 DISALLOW_COPY_AND_ASSIGN(TCPClientSocket); 117 DISALLOW_COPY_AND_ASSIGN(TCPClientSocket);
117 }; 118 };
118 119
119 } // namespace net 120 } // namespace net
120 121
121 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_H_ 122 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « net/socket/stream_socket.h ('k') | net/socket/tcp_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698