Chromium Code Reviews| Index: net/socket/tcp_socket.h |
| diff --git a/net/socket/tcp_socket.h b/net/socket/tcp_socket.h |
| index 8b36fade758e05db222d9fa4e2ee739e110b2779..61dd84232d837248b0fdffa7687abd5f4765e05e 100644 |
| --- a/net/socket/tcp_socket.h |
| +++ b/net/socket/tcp_socket.h |
| @@ -15,14 +15,6 @@ |
| #endif |
| namespace net { |
|
mmenke
2014/09/12 14:20:18
nit: We generally have a blank line after the sta
Jana
2014/09/12 15:25:52
Done.
|
| - |
| -// 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 +27,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_ |