OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/http/http_proxy_client_socket_wrapper.h" | 5 #include "net/http/http_proxy_client_socket_wrapper.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 } | 225 } |
226 | 226 |
227 bool HttpProxyClientSocketWrapper::WasEverUsed() const { | 227 bool HttpProxyClientSocketWrapper::WasEverUsed() const { |
228 // TODO(mmenke): This is a little weird. Figure out if something else should | 228 // TODO(mmenke): This is a little weird. Figure out if something else should |
229 // be done. | 229 // be done. |
230 if (transport_socket_) | 230 if (transport_socket_) |
231 return transport_socket_->WasEverUsed(); | 231 return transport_socket_->WasEverUsed(); |
232 return false; | 232 return false; |
233 } | 233 } |
234 | 234 |
235 bool HttpProxyClientSocketWrapper::UsingTCPFastOpen() const { | |
236 if (transport_socket_) | |
237 return transport_socket_->UsingTCPFastOpen(); | |
238 return false; | |
239 } | |
240 | |
241 bool HttpProxyClientSocketWrapper::WasNpnNegotiated() const { | 235 bool HttpProxyClientSocketWrapper::WasNpnNegotiated() const { |
242 if (transport_socket_) | 236 if (transport_socket_) |
243 return transport_socket_->WasNpnNegotiated(); | 237 return transport_socket_->WasNpnNegotiated(); |
244 return false; | 238 return false; |
245 } | 239 } |
246 | 240 |
247 NextProto HttpProxyClientSocketWrapper::GetNegotiatedProtocol() const { | 241 NextProto HttpProxyClientSocketWrapper::GetNegotiatedProtocol() const { |
248 if (transport_socket_) | 242 if (transport_socket_) |
249 return transport_socket_->GetNegotiatedProtocol(); | 243 return transport_socket_->GetNegotiatedProtocol(); |
250 return kProtoUnknown; | 244 return kProtoUnknown; |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 const HostResolver::RequestInfo& | 622 const HostResolver::RequestInfo& |
629 HttpProxyClientSocketWrapper::GetDestination() { | 623 HttpProxyClientSocketWrapper::GetDestination() { |
630 if (transport_params_) { | 624 if (transport_params_) { |
631 return transport_params_->destination(); | 625 return transport_params_->destination(); |
632 } else { | 626 } else { |
633 return ssl_params_->GetDirectConnectionParams()->destination(); | 627 return ssl_params_->GetDirectConnectionParams()->destination(); |
634 } | 628 } |
635 } | 629 } |
636 | 630 |
637 } // namespace net | 631 } // namespace net |
OLD | NEW |