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

Unified Diff: net/socket/stream_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/ssl_client_socket_pool_unittest.cc ('k') | net/socket/tcp_client_socket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/stream_socket.h
diff --git a/net/socket/stream_socket.h b/net/socket/stream_socket.h
index 72088103a3d7669f30dd3151da55b975f6f4245c..7631e126fc50d724996e31cc38b5f550a447e1e6 100644
--- a/net/socket/stream_socket.h
+++ b/net/socket/stream_socket.h
@@ -75,10 +75,15 @@ class NET_EXPORT_PRIVATE StreamSocket : public Socket {
// Write() methods had been called, not the underlying transport's.
virtual bool WasEverUsed() const = 0;
+ // TODO(jri): Clean up -- remove this method.
// Returns true if the underlying transport socket is using TCP FastOpen.
// TCP FastOpen is an experiment with sending data in the TCP SYN packet.
virtual bool UsingTCPFastOpen() const = 0;
+ // TODO(jri): Clean up -- rename to a more general EnableAutoConnectOnWrite.
+ // Enables use of TCP FastOpen for the underlying transport socket.
+ virtual void EnableTCPFastOpenIfSupported() {}
+
// Returns true if NPN was negotiated during the connection of this socket.
virtual bool WasNpnNegotiated() const = 0;
« no previous file with comments | « net/socket/ssl_client_socket_pool_unittest.cc ('k') | net/socket/tcp_client_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698