| 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_CURVECP_CURVECP_CLIENT_SOCKET_H_ | 5 #ifndef NET_CURVECP_CURVECP_CLIENT_SOCKET_H_ |
| 6 #define NET_CURVECP_CURVECP_CLIENT_SOCKET_H_ | 6 #define NET_CURVECP_CURVECP_CLIENT_SOCKET_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "net/base/completion_callback.h" | 10 #include "net/base/completion_callback.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 CurveCPClientSocket(const AddressList& addresses, | 23 CurveCPClientSocket(const AddressList& addresses, |
| 24 net::NetLog* net_log, | 24 net::NetLog* net_log, |
| 25 const net::NetLog::Source& source); | 25 const net::NetLog::Source& source); |
| 26 virtual ~CurveCPClientSocket(); | 26 virtual ~CurveCPClientSocket(); |
| 27 | 27 |
| 28 // ClientSocket methods: | 28 // ClientSocket methods: |
| 29 virtual int Connect(const CompletionCallback& callback) OVERRIDE; | 29 virtual int Connect(const CompletionCallback& callback) OVERRIDE; |
| 30 virtual void Disconnect() OVERRIDE; | 30 virtual void Disconnect() OVERRIDE; |
| 31 virtual bool IsConnected() const OVERRIDE; | 31 virtual bool IsConnected() const OVERRIDE; |
| 32 virtual bool IsConnectedAndIdle() const OVERRIDE; | 32 virtual bool IsConnectedAndIdle() const OVERRIDE; |
| 33 virtual int GetPeerAddress(AddressList* address) const OVERRIDE; | 33 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; |
| 34 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; | 34 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; |
| 35 virtual const BoundNetLog& NetLog() const OVERRIDE; | 35 virtual const BoundNetLog& NetLog() const OVERRIDE; |
| 36 virtual void SetSubresourceSpeculation() OVERRIDE; | 36 virtual void SetSubresourceSpeculation() OVERRIDE; |
| 37 virtual void SetOmniboxSpeculation() OVERRIDE; | 37 virtual void SetOmniboxSpeculation() OVERRIDE; |
| 38 virtual bool WasEverUsed() const OVERRIDE; | 38 virtual bool WasEverUsed() const OVERRIDE; |
| 39 virtual bool UsingTCPFastOpen() const OVERRIDE; | 39 virtual bool UsingTCPFastOpen() const OVERRIDE; |
| 40 virtual int64 NumBytesRead() const OVERRIDE; | 40 virtual int64 NumBytesRead() const OVERRIDE; |
| 41 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; | 41 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; |
| 42 virtual net::NextProto GetNegotiatedProtocol() const OVERRIDE; | 42 virtual net::NextProto GetNegotiatedProtocol() const OVERRIDE; |
| 43 | 43 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 56 BoundNetLog net_log_; | 56 BoundNetLog net_log_; |
| 57 Messenger messenger_; | 57 Messenger messenger_; |
| 58 ClientPacketizer packetizer_; | 58 ClientPacketizer packetizer_; |
| 59 | 59 |
| 60 DISALLOW_COPY_AND_ASSIGN(CurveCPClientSocket); | 60 DISALLOW_COPY_AND_ASSIGN(CurveCPClientSocket); |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace net | 63 } // namespace net |
| 64 | 64 |
| 65 #endif // NET_CURVECP_CURVECP_CLIENT_SOCKET_H_ | 65 #endif // NET_CURVECP_CURVECP_CLIENT_SOCKET_H_ |
| OLD | NEW |