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 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "net/base/completion_callback.h" | 9 #include "net/base/completion_callback.h" |
10 #include "net/curvecp/client_packetizer.h" | 10 #include "net/curvecp/client_packetizer.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 virtual bool IsConnectedAndIdle() const OVERRIDE; | 31 virtual bool IsConnectedAndIdle() const OVERRIDE; |
32 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; | 32 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; |
33 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; | 33 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; |
34 virtual const BoundNetLog& NetLog() const OVERRIDE; | 34 virtual const BoundNetLog& NetLog() const OVERRIDE; |
35 virtual void SetSubresourceSpeculation() OVERRIDE; | 35 virtual void SetSubresourceSpeculation() OVERRIDE; |
36 virtual void SetOmniboxSpeculation() OVERRIDE; | 36 virtual void SetOmniboxSpeculation() OVERRIDE; |
37 virtual bool WasEverUsed() const OVERRIDE; | 37 virtual bool WasEverUsed() const OVERRIDE; |
38 virtual bool UsingTCPFastOpen() const OVERRIDE; | 38 virtual bool UsingTCPFastOpen() const OVERRIDE; |
39 virtual int64 NumBytesRead() const OVERRIDE; | 39 virtual int64 NumBytesRead() const OVERRIDE; |
40 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; | 40 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; |
41 virtual net::NextProto GetNegotiatedProtocol() const OVERRIDE; | 41 virtual bool WasNpnNegotiated() const OVERRIDE; |
| 42 virtual NextProto GetNegotiatedProtocol() const OVERRIDE; |
| 43 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; |
42 | 44 |
43 // Socket methods: | 45 // Socket methods: |
44 virtual int Read(IOBuffer* buf, | 46 virtual int Read(IOBuffer* buf, |
45 int buf_len, | 47 int buf_len, |
46 const CompletionCallback& callback) OVERRIDE; | 48 const CompletionCallback& callback) OVERRIDE; |
47 virtual int Write(IOBuffer* buf, | 49 virtual int Write(IOBuffer* buf, |
48 int buf_len, | 50 int buf_len, |
49 const CompletionCallback& callback) OVERRIDE; | 51 const CompletionCallback& callback) OVERRIDE; |
50 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; | 52 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; |
51 virtual bool SetSendBufferSize(int32 size) OVERRIDE; | 53 virtual bool SetSendBufferSize(int32 size) OVERRIDE; |
52 | 54 |
53 private: | 55 private: |
54 AddressList addresses_; | 56 AddressList addresses_; |
55 BoundNetLog net_log_; | 57 BoundNetLog net_log_; |
56 Messenger messenger_; | 58 Messenger messenger_; |
57 ClientPacketizer packetizer_; | 59 ClientPacketizer packetizer_; |
58 | 60 |
59 DISALLOW_COPY_AND_ASSIGN(CurveCPClientSocket); | 61 DISALLOW_COPY_AND_ASSIGN(CurveCPClientSocket); |
60 }; | 62 }; |
61 | 63 |
62 } // namespace net | 64 } // namespace net |
63 | 65 |
64 #endif // NET_CURVECP_CURVECP_CLIENT_SOCKET_H_ | 66 #endif // NET_CURVECP_CURVECP_CLIENT_SOCKET_H_ |
OLD | NEW |