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 #include "net/socket/socks5_client_socket.h" | 5 #include "net/socket/socks5_client_socket.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 transport_->socket()->SetOmniboxSpeculation(); | 106 transport_->socket()->SetOmniboxSpeculation(); |
107 } else { | 107 } else { |
108 NOTREACHED(); | 108 NOTREACHED(); |
109 } | 109 } |
110 } | 110 } |
111 | 111 |
112 bool SOCKS5ClientSocket::WasEverUsed() const { | 112 bool SOCKS5ClientSocket::WasEverUsed() const { |
113 return was_ever_used_; | 113 return was_ever_used_; |
114 } | 114 } |
115 | 115 |
116 bool SOCKS5ClientSocket::UsingTCPFastOpen() const { | |
117 if (transport_.get() && transport_->socket()) { | |
118 return transport_->socket()->UsingTCPFastOpen(); | |
119 } | |
120 NOTREACHED(); | |
121 return false; | |
122 } | |
123 | |
124 bool SOCKS5ClientSocket::WasNpnNegotiated() const { | 116 bool SOCKS5ClientSocket::WasNpnNegotiated() const { |
125 if (transport_.get() && transport_->socket()) { | 117 if (transport_.get() && transport_->socket()) { |
126 return transport_->socket()->WasNpnNegotiated(); | 118 return transport_->socket()->WasNpnNegotiated(); |
127 } | 119 } |
128 NOTREACHED(); | 120 NOTREACHED(); |
129 return false; | 121 return false; |
130 } | 122 } |
131 | 123 |
132 NextProto SOCKS5ClientSocket::GetNegotiatedProtocol() const { | 124 NextProto SOCKS5ClientSocket::GetNegotiatedProtocol() const { |
133 if (transport_.get() && transport_->socket()) { | 125 if (transport_.get() && transport_->socket()) { |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 | 495 |
504 int SOCKS5ClientSocket::GetPeerAddress(IPEndPoint* address) const { | 496 int SOCKS5ClientSocket::GetPeerAddress(IPEndPoint* address) const { |
505 return transport_->socket()->GetPeerAddress(address); | 497 return transport_->socket()->GetPeerAddress(address); |
506 } | 498 } |
507 | 499 |
508 int SOCKS5ClientSocket::GetLocalAddress(IPEndPoint* address) const { | 500 int SOCKS5ClientSocket::GetLocalAddress(IPEndPoint* address) const { |
509 return transport_->socket()->GetLocalAddress(address); | 501 return transport_->socket()->GetLocalAddress(address); |
510 } | 502 } |
511 | 503 |
512 } // namespace net | 504 } // namespace net |
OLD | NEW |