| Index: net/socket/tcp_client_socket.h
|
| diff --git a/net/socket/tcp_client_socket.h b/net/socket/tcp_client_socket.h
|
| index 0e27f81a02f00a264b95d75fe763c0a5bef2e406..ed18dff4c6cc94147f964227f55c6f1df2c02239 100644
|
| --- a/net/socket/tcp_client_socket.h
|
| +++ b/net/socket/tcp_client_socket.h
|
| @@ -5,40 +5,19 @@
|
| #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_H_
|
| #define NET_SOCKET_TCP_CLIENT_SOCKET_H_
|
|
|
| -#include "build/build_config.h"
|
| -#include "net/base/net_export.h"
|
| -
|
| -// TODO(yzshen): Switch OS_POSIX to use the same platform-independent
|
| -// TCPClientSocket.
|
| -#if defined(OS_WIN)
|
| -
|
| #include "base/basictypes.h"
|
| #include "base/compiler_specific.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "net/base/address_list.h"
|
| #include "net/base/completion_callback.h"
|
| +#include "net/base/net_export.h"
|
| #include "net/base/net_log.h"
|
| #include "net/socket/stream_socket.h"
|
| #include "net/socket/tcp_socket.h"
|
|
|
| -#elif defined(OS_POSIX)
|
| -#include "net/socket/tcp_client_socket_libevent.h"
|
| -#endif
|
| -
|
| 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();
|
| -
|
| // A client socket that uses TCP as the transport layer.
|
| -#if defined(OS_POSIX)
|
| -typedef TCPClientSocketLibevent TCPClientSocket;
|
| -#elif defined(OS_WIN)
|
| -
|
| class NET_EXPORT TCPClientSocket : public StreamSocket {
|
| public:
|
| // The IP address(es) and port number to connect to. The TCP socket will try
|
| @@ -60,17 +39,17 @@ class NET_EXPORT TCPClientSocket : public StreamSocket {
|
| int Bind(const IPEndPoint& address);
|
|
|
| // StreamSocket implementation.
|
| - virtual int Connect(const CompletionCallback& callback);
|
| - virtual void Disconnect();
|
| - virtual bool IsConnected() const;
|
| - virtual bool IsConnectedAndIdle() const;
|
| - virtual int GetPeerAddress(IPEndPoint* address) const;
|
| - virtual int GetLocalAddress(IPEndPoint* address) const;
|
| - virtual const BoundNetLog& NetLog() const { return socket_->net_log(); }
|
| - virtual void SetSubresourceSpeculation();
|
| - virtual void SetOmniboxSpeculation();
|
| - virtual bool WasEverUsed() const;
|
| - virtual bool UsingTCPFastOpen() const;
|
| + virtual int Connect(const CompletionCallback& callback) OVERRIDE;
|
| + virtual void Disconnect() OVERRIDE;
|
| + virtual bool IsConnected() const OVERRIDE;
|
| + virtual bool IsConnectedAndIdle() const OVERRIDE;
|
| + virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE;
|
| + virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
|
| + virtual const BoundNetLog& NetLog() const OVERRIDE;
|
| + virtual void SetSubresourceSpeculation() OVERRIDE;
|
| + virtual void SetOmniboxSpeculation() OVERRIDE;
|
| + virtual bool WasEverUsed() const OVERRIDE;
|
| + virtual bool UsingTCPFastOpen() const OVERRIDE;
|
| virtual bool WasNpnNegotiated() const OVERRIDE;
|
| virtual NextProto GetNegotiatedProtocol() const OVERRIDE;
|
| virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE;
|
| @@ -139,8 +118,6 @@ class NET_EXPORT TCPClientSocket : public StreamSocket {
|
| DISALLOW_COPY_AND_ASSIGN(TCPClientSocket);
|
| };
|
|
|
| -#endif
|
| -
|
| } // namespace net
|
|
|
| #endif // NET_SOCKET_TCP_CLIENT_SOCKET_H_
|
|
|