| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 bool IsConnected() const override; | 45 bool IsConnected() const override; |
| 46 bool IsConnectedAndIdle() const override; | 46 bool IsConnectedAndIdle() const override; |
| 47 const BoundNetLog& NetLog() const override; | 47 const BoundNetLog& NetLog() const override; |
| 48 void SetSubresourceSpeculation() override; | 48 void SetSubresourceSpeculation() override; |
| 49 void SetOmniboxSpeculation() override; | 49 void SetOmniboxSpeculation() override; |
| 50 bool WasEverUsed() const override; | 50 bool WasEverUsed() const override; |
| 51 bool UsingTCPFastOpen() const override; | 51 bool UsingTCPFastOpen() const override; |
| 52 bool WasNpnNegotiated() const override; | 52 bool WasNpnNegotiated() const override; |
| 53 NextProto GetNegotiatedProtocol() const override; | 53 NextProto GetNegotiatedProtocol() const override; |
| 54 bool GetSSLInfo(SSLInfo* ssl_info) override; | 54 bool GetSSLInfo(SSLInfo* ssl_info) override; |
| 55 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
| 56 void ClearConnectionAttempts() override {} |
| 57 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
| 55 | 58 |
| 56 // Socket implementation. | 59 // Socket implementation. |
| 57 int Read(IOBuffer* buf, | 60 int Read(IOBuffer* buf, |
| 58 int buf_len, | 61 int buf_len, |
| 59 const CompletionCallback& callback) override; | 62 const CompletionCallback& callback) override; |
| 60 int Write(IOBuffer* buf, | 63 int Write(IOBuffer* buf, |
| 61 int buf_len, | 64 int buf_len, |
| 62 const CompletionCallback& callback) override; | 65 const CompletionCallback& callback) override; |
| 63 | 66 |
| 64 int SetReceiveBufferSize(int32 size) override; | 67 int SetReceiveBufferSize(int32 size) override; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 RequestPriority priority_; | 134 RequestPriority priority_; |
| 132 | 135 |
| 133 BoundNetLog net_log_; | 136 BoundNetLog net_log_; |
| 134 | 137 |
| 135 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket); | 138 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket); |
| 136 }; | 139 }; |
| 137 | 140 |
| 138 } // namespace net | 141 } // namespace net |
| 139 | 142 |
| 140 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ | 143 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ |
| OLD | NEW |