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_SOCKS_CLIENT_SOCKET_H_ | 5 #ifndef NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ |
6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ | 6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 virtual void Disconnect() OVERRIDE; | 51 virtual void Disconnect() OVERRIDE; |
52 virtual bool IsConnected() const OVERRIDE; | 52 virtual bool IsConnected() const OVERRIDE; |
53 virtual bool IsConnectedAndIdle() const OVERRIDE; | 53 virtual bool IsConnectedAndIdle() const OVERRIDE; |
54 virtual const BoundNetLog& NetLog() const OVERRIDE; | 54 virtual const BoundNetLog& NetLog() const OVERRIDE; |
55 virtual void SetSubresourceSpeculation() OVERRIDE; | 55 virtual void SetSubresourceSpeculation() OVERRIDE; |
56 virtual void SetOmniboxSpeculation() OVERRIDE; | 56 virtual void SetOmniboxSpeculation() OVERRIDE; |
57 virtual bool WasEverUsed() const OVERRIDE; | 57 virtual bool WasEverUsed() const OVERRIDE; |
58 virtual bool UsingTCPFastOpen() const OVERRIDE; | 58 virtual bool UsingTCPFastOpen() const OVERRIDE; |
59 virtual int64 NumBytesRead() const OVERRIDE; | 59 virtual int64 NumBytesRead() const OVERRIDE; |
60 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; | 60 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; |
| 61 virtual bool WasNpnNegotiated() const OVERRIDE; |
61 virtual NextProto GetNegotiatedProtocol() const OVERRIDE; | 62 virtual NextProto GetNegotiatedProtocol() const OVERRIDE; |
| 63 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; |
62 | 64 |
63 // Socket implementation. | 65 // Socket implementation. |
64 virtual int Read(IOBuffer* buf, | 66 virtual int Read(IOBuffer* buf, |
65 int buf_len, | 67 int buf_len, |
66 const CompletionCallback& callback) OVERRIDE; | 68 const CompletionCallback& callback) OVERRIDE; |
67 virtual int Write(IOBuffer* buf, | 69 virtual int Write(IOBuffer* buf, |
68 int buf_len, | 70 int buf_len, |
69 const CompletionCallback& callback) OVERRIDE; | 71 const CompletionCallback& callback) OVERRIDE; |
70 | 72 |
71 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; | 73 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 HostResolver::RequestInfo host_request_info_; | 135 HostResolver::RequestInfo host_request_info_; |
134 | 136 |
135 BoundNetLog net_log_; | 137 BoundNetLog net_log_; |
136 | 138 |
137 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket); | 139 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket); |
138 }; | 140 }; |
139 | 141 |
140 } // namespace net | 142 } // namespace net |
141 | 143 |
142 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ | 144 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ |
OLD | NEW |