| 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/socks_client_socket.h" | 5 #include "net/socket/socks_client_socket.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 transport_->socket()->SetOmniboxSpeculation(); | 135 transport_->socket()->SetOmniboxSpeculation(); |
| 136 } else { | 136 } else { |
| 137 NOTREACHED(); | 137 NOTREACHED(); |
| 138 } | 138 } |
| 139 } | 139 } |
| 140 | 140 |
| 141 bool SOCKSClientSocket::WasEverUsed() const { | 141 bool SOCKSClientSocket::WasEverUsed() const { |
| 142 return was_ever_used_; | 142 return was_ever_used_; |
| 143 } | 143 } |
| 144 | 144 |
| 145 bool SOCKSClientSocket::UsingTCPFastOpen() const { | |
| 146 if (transport_.get() && transport_->socket()) { | |
| 147 return transport_->socket()->UsingTCPFastOpen(); | |
| 148 } | |
| 149 NOTREACHED(); | |
| 150 return false; | |
| 151 } | |
| 152 | |
| 153 bool SOCKSClientSocket::WasNpnNegotiated() const { | 145 bool SOCKSClientSocket::WasNpnNegotiated() const { |
| 154 if (transport_.get() && transport_->socket()) { | 146 if (transport_.get() && transport_->socket()) { |
| 155 return transport_->socket()->WasNpnNegotiated(); | 147 return transport_->socket()->WasNpnNegotiated(); |
| 156 } | 148 } |
| 157 NOTREACHED(); | 149 NOTREACHED(); |
| 158 return false; | 150 return false; |
| 159 } | 151 } |
| 160 | 152 |
| 161 NextProto SOCKSClientSocket::GetNegotiatedProtocol() const { | 153 NextProto SOCKSClientSocket::GetNegotiatedProtocol() const { |
| 162 if (transport_.get() && transport_->socket()) { | 154 if (transport_.get() && transport_->socket()) { |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 | 446 |
| 455 int SOCKSClientSocket::GetPeerAddress(IPEndPoint* address) const { | 447 int SOCKSClientSocket::GetPeerAddress(IPEndPoint* address) const { |
| 456 return transport_->socket()->GetPeerAddress(address); | 448 return transport_->socket()->GetPeerAddress(address); |
| 457 } | 449 } |
| 458 | 450 |
| 459 int SOCKSClientSocket::GetLocalAddress(IPEndPoint* address) const { | 451 int SOCKSClientSocket::GetLocalAddress(IPEndPoint* address) const { |
| 460 return transport_->socket()->GetLocalAddress(address); | 452 return transport_->socket()->GetLocalAddress(address); |
| 461 } | 453 } |
| 462 | 454 |
| 463 } // namespace net | 455 } // namespace net |
| OLD | NEW |