Resize destination bus to the actual number of decoded frames.
[chromium-blink-merge.git] / net / socket / tcp_client_socket.h
blob8a2c0cd73f06f944ae5aa7f5ba4520542a5b9b72
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
3 // found in the LICENSE file.
5 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_H_
6 #define NET_SOCKET_TCP_CLIENT_SOCKET_H_
8 #include "build/build_config.h"
9 #include "net/base/net_export.h"
11 #if defined(OS_WIN)
12 #include "net/socket/tcp_client_socket_win.h"
13 #elif defined(OS_POSIX)
14 #include "net/socket/tcp_client_socket_libevent.h"
15 #endif
17 namespace net {
19 // A client socket that uses TCP as the transport layer.
20 #if defined(OS_WIN)
21 typedef TCPClientSocketWin TCPClientSocket;
22 #elif defined(OS_POSIX)
23 typedef TCPClientSocketLibevent TCPClientSocket;
24 #endif
26 // Enable/disable experimental TCP FastOpen option.
27 // Not thread safe. Must be called during initialization/startup only.
28 NET_EXPORT void SetTCPFastOpenEnabled(bool value);
30 // Check if the TCP FastOpen option is enabled.
31 bool IsTCPFastOpenEnabled();
33 } // namespace net
35 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_H_