Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: net/http/http_proxy_client_socket_wrapper.cc

Issue 1821633003: net: remove UsingTCPFastOpen() method from StreamSocket class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove use_tcp_fastopen_ from transport_client_socket_pool_test_util.cc Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/http/http_proxy_client_socket_wrapper.h ('k') | net/server/http_server_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/http/http_proxy_client_socket_wrapper.h ('k') | net/server/http_server_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698