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

Side by Side Diff: net/http/http_proxy_client_socket.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.h ('k') | net/http/http_proxy_client_socket_wrapper.h » ('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 (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/http/http_proxy_client_socket.h" 5 #include "net/http/http_proxy_client_socket.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/profiler/scoped_tracker.h" 9 #include "base/profiler/scoped_tracker.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 } 167 }
168 168
169 bool HttpProxyClientSocket::WasEverUsed() const { 169 bool HttpProxyClientSocket::WasEverUsed() const {
170 if (transport_.get() && transport_->socket()) { 170 if (transport_.get() && transport_->socket()) {
171 return transport_->socket()->WasEverUsed(); 171 return transport_->socket()->WasEverUsed();
172 } 172 }
173 NOTREACHED(); 173 NOTREACHED();
174 return false; 174 return false;
175 } 175 }
176 176
177 bool HttpProxyClientSocket::UsingTCPFastOpen() const {
178 if (transport_.get() && transport_->socket()) {
179 return transport_->socket()->UsingTCPFastOpen();
180 }
181 NOTREACHED();
182 return false;
183 }
184
185 bool HttpProxyClientSocket::WasNpnNegotiated() const { 177 bool HttpProxyClientSocket::WasNpnNegotiated() const {
186 if (transport_.get() && transport_->socket()) { 178 if (transport_.get() && transport_->socket()) {
187 return transport_->socket()->WasNpnNegotiated(); 179 return transport_->socket()->WasNpnNegotiated();
188 } 180 }
189 NOTREACHED(); 181 NOTREACHED();
190 return false; 182 return false;
191 } 183 }
192 184
193 NextProto HttpProxyClientSocket::GetNegotiatedProtocol() const { 185 NextProto HttpProxyClientSocket::GetNegotiatedProtocol() const {
194 if (transport_.get() && transport_->socket()) { 186 if (transport_.get() && transport_->socket()) {
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 next_state_ = STATE_DRAIN_BODY; 526 next_state_ = STATE_DRAIN_BODY;
535 return OK; 527 return OK;
536 } 528 }
537 529
538 return DidDrainBodyForAuthRestart(); 530 return DidDrainBodyForAuthRestart();
539 } 531 }
540 532
541 //---------------------------------------------------------------- 533 //----------------------------------------------------------------
542 534
543 } // namespace net 535 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_proxy_client_socket.h ('k') | net/http/http_proxy_client_socket_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698