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

Unified Diff: net/socket/tcp_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/socket/tcp_client_socket.cc ('k') | net/socket/tcp_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/tcp_socket.h
diff --git a/net/socket/tcp_socket.h b/net/socket/tcp_socket.h
index 8b36fade758e05db222d9fa4e2ee739e110b2779..04fd7d2ba6f7c64ea564bba56b76070d67d6daa0 100644
--- a/net/socket/tcp_socket.h
+++ b/net/socket/tcp_socket.h
@@ -16,13 +16,6 @@
namespace net {
-// Enable/disable experimental TCP FastOpen option.
-// Not thread safe. Must be called during initialization/startup only.
-NET_EXPORT void SetTCPFastOpenEnabled(bool value);
-
-// Check if the TCP FastOpen option is enabled.
-bool IsTCPFastOpenEnabled();
-
// TCPSocket provides a platform-independent interface for TCP sockets.
//
// It is recommended to use TCPClientSocket/TCPServerSocket instead of this
@@ -35,6 +28,17 @@ typedef TCPSocketWin TCPSocket;
typedef TCPSocketLibevent TCPSocket;
#endif
+// Check if TCP FastOpen is supported by the OS.
+bool IsTCPFastOpenSupported();
+
+// Check if TCP FastOpen is enabled by the user.
+bool IsTCPFastOpenUserEnabled();
+
+// Checks if TCP FastOpen is supported by the kernel. Also enables TFO for all
+// connections if indicated by user.
+// Not thread safe. Must be called during initialization/startup only.
+NET_EXPORT void CheckSupportAndMaybeEnableTCPFastOpen(bool user_enabled);
+
} // namespace net
#endif // NET_SOCKET_TCP_SOCKET_H_
« no previous file with comments | « net/socket/tcp_client_socket.cc ('k') | net/socket/tcp_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698