| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_ | 5 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_ |
| 6 #define NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_ | 6 #define NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 int AdoptSocket(int socket); | 40 int AdoptSocket(int socket); |
| 41 | 41 |
| 42 // Binds the socket to a local IP address and port. | 42 // Binds the socket to a local IP address and port. |
| 43 int Bind(const IPEndPoint& address); | 43 int Bind(const IPEndPoint& address); |
| 44 | 44 |
| 45 // StreamSocket implementation. | 45 // StreamSocket implementation. |
| 46 virtual int Connect(const CompletionCallback& callback) OVERRIDE; | 46 virtual int Connect(const CompletionCallback& callback) OVERRIDE; |
| 47 virtual void Disconnect() OVERRIDE; | 47 virtual void Disconnect() OVERRIDE; |
| 48 virtual bool IsConnected() const OVERRIDE; | 48 virtual bool IsConnected() const OVERRIDE; |
| 49 virtual bool IsConnectedAndIdle() const OVERRIDE; | 49 virtual bool IsConnectedAndIdle() const OVERRIDE; |
| 50 virtual int GetPeerAddress(AddressList* address) const OVERRIDE; | 50 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; |
| 51 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; | 51 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; |
| 52 virtual const BoundNetLog& NetLog() const OVERRIDE; | 52 virtual const BoundNetLog& NetLog() const OVERRIDE; |
| 53 virtual void SetSubresourceSpeculation() OVERRIDE; | 53 virtual void SetSubresourceSpeculation() OVERRIDE; |
| 54 virtual void SetOmniboxSpeculation() OVERRIDE; | 54 virtual void SetOmniboxSpeculation() OVERRIDE; |
| 55 virtual bool WasEverUsed() const OVERRIDE; | 55 virtual bool WasEverUsed() const OVERRIDE; |
| 56 virtual bool UsingTCPFastOpen() const OVERRIDE; | 56 virtual bool UsingTCPFastOpen() const OVERRIDE; |
| 57 virtual int64 NumBytesRead() const OVERRIDE; | 57 virtual int64 NumBytesRead() const OVERRIDE; |
| 58 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; | 58 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; |
| 59 virtual NextProto GetNegotiatedProtocol() const OVERRIDE; | 59 virtual NextProto GetNegotiatedProtocol() const OVERRIDE; |
| 60 | 60 |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 base::TimeTicks connect_start_time_; | 207 base::TimeTicks connect_start_time_; |
| 208 base::TimeDelta connect_time_micros_; | 208 base::TimeDelta connect_time_micros_; |
| 209 int64 num_bytes_read_; | 209 int64 num_bytes_read_; |
| 210 | 210 |
| 211 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketLibevent); | 211 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketLibevent); |
| 212 }; | 212 }; |
| 213 | 213 |
| 214 } // namespace net | 214 } // namespace net |
| 215 | 215 |
| 216 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_ | 216 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_ |
| OLD | NEW |