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

Side by Side Diff: net/socket/tcp_socket_win.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/tcp_socket_libevent.cc ('k') | net/socket/tcp_socket_win.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SOCKET_WIN_H_ 5 #ifndef NET_SOCKET_TCP_SOCKET_WIN_H_
6 #define NET_SOCKET_TCP_SOCKET_WIN_H_ 6 #define NET_SOCKET_TCP_SOCKET_WIN_H_
7 7
8 #include <winsock2.h> 8 #include <winsock2.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // - SetKeepAlive(true, 45). 68 // - SetKeepAlive(true, 45).
69 void SetDefaultOptionsForClient(); 69 void SetDefaultOptionsForClient();
70 int SetExclusiveAddrUse(); 70 int SetExclusiveAddrUse();
71 int SetReceiveBufferSize(int32 size); 71 int SetReceiveBufferSize(int32 size);
72 int SetSendBufferSize(int32 size); 72 int SetSendBufferSize(int32 size);
73 bool SetKeepAlive(bool enable, int delay); 73 bool SetKeepAlive(bool enable, int delay);
74 bool SetNoDelay(bool no_delay); 74 bool SetNoDelay(bool no_delay);
75 75
76 void Close(); 76 void Close();
77 77
78 bool UsingTCPFastOpen() const; 78 // Setter/Getter methods for TCP FastOpen socket option.
79 // NOOPs since TCP FastOpen is not implemented in Windows.
80 bool UsingTCPFastOpen() const { return false; }
81 void EnableTCPFastOpenIfSupported() {}
82
79 bool IsValid() const { return socket_ != INVALID_SOCKET; } 83 bool IsValid() const { return socket_ != INVALID_SOCKET; }
80 84
81 // Marks the start/end of a series of connect attempts for logging purpose. 85 // Marks the start/end of a series of connect attempts for logging purpose.
82 // 86 //
83 // TCPClientSocket may attempt to connect to multiple addresses until it 87 // TCPClientSocket may attempt to connect to multiple addresses until it
84 // succeeds in establishing a connection. The corresponding log will have 88 // succeeds in establishing a connection. The corresponding log will have
85 // multiple NetLog::TYPE_TCP_CONNECT_ATTEMPT entries nested within a 89 // multiple NetLog::TYPE_TCP_CONNECT_ATTEMPT entries nested within a
86 // NetLog::TYPE_TCP_CONNECT. These methods set the start/end of 90 // NetLog::TYPE_TCP_CONNECT. These methods set the start/end of
87 // NetLog::TYPE_TCP_CONNECT. 91 // NetLog::TYPE_TCP_CONNECT.
88 // 92 //
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 bool logging_multiple_connect_attempts_; 149 bool logging_multiple_connect_attempts_;
146 150
147 BoundNetLog net_log_; 151 BoundNetLog net_log_;
148 152
149 DISALLOW_COPY_AND_ASSIGN(TCPSocketWin); 153 DISALLOW_COPY_AND_ASSIGN(TCPSocketWin);
150 }; 154 };
151 155
152 } // namespace net 156 } // namespace net
153 157
154 #endif // NET_SOCKET_TCP_SOCKET_WIN_H_ 158 #endif // NET_SOCKET_TCP_SOCKET_WIN_H_
155
OLDNEW
« no previous file with comments | « net/socket/tcp_socket_libevent.cc ('k') | net/socket/tcp_socket_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698