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

Side by Side Diff: net/socket/socks_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/socket/socks_client_socket.h ('k') | net/socket/ssl_client_socket_nss.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/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
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
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
OLDNEW
« no previous file with comments | « net/socket/socks_client_socket.h ('k') | net/socket/ssl_client_socket_nss.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698