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

Side by Side Diff: net/socket/socks5_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/socks5_client_socket.h ('k') | net/socket/socks_client_socket.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/socks5_client_socket.h" 5 #include "net/socket/socks5_client_socket.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 transport_->socket()->SetOmniboxSpeculation(); 106 transport_->socket()->SetOmniboxSpeculation();
107 } else { 107 } else {
108 NOTREACHED(); 108 NOTREACHED();
109 } 109 }
110 } 110 }
111 111
112 bool SOCKS5ClientSocket::WasEverUsed() const { 112 bool SOCKS5ClientSocket::WasEverUsed() const {
113 return was_ever_used_; 113 return was_ever_used_;
114 } 114 }
115 115
116 bool SOCKS5ClientSocket::UsingTCPFastOpen() const {
117 if (transport_.get() && transport_->socket()) {
118 return transport_->socket()->UsingTCPFastOpen();
119 }
120 NOTREACHED();
121 return false;
122 }
123
124 bool SOCKS5ClientSocket::WasNpnNegotiated() const { 116 bool SOCKS5ClientSocket::WasNpnNegotiated() const {
125 if (transport_.get() && transport_->socket()) { 117 if (transport_.get() && transport_->socket()) {
126 return transport_->socket()->WasNpnNegotiated(); 118 return transport_->socket()->WasNpnNegotiated();
127 } 119 }
128 NOTREACHED(); 120 NOTREACHED();
129 return false; 121 return false;
130 } 122 }
131 123
132 NextProto SOCKS5ClientSocket::GetNegotiatedProtocol() const { 124 NextProto SOCKS5ClientSocket::GetNegotiatedProtocol() const {
133 if (transport_.get() && transport_->socket()) { 125 if (transport_.get() && transport_->socket()) {
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 495
504 int SOCKS5ClientSocket::GetPeerAddress(IPEndPoint* address) const { 496 int SOCKS5ClientSocket::GetPeerAddress(IPEndPoint* address) const {
505 return transport_->socket()->GetPeerAddress(address); 497 return transport_->socket()->GetPeerAddress(address);
506 } 498 }
507 499
508 int SOCKS5ClientSocket::GetLocalAddress(IPEndPoint* address) const { 500 int SOCKS5ClientSocket::GetLocalAddress(IPEndPoint* address) const {
509 return transport_->socket()->GetLocalAddress(address); 501 return transport_->socket()->GetLocalAddress(address);
510 } 502 }
511 503
512 } // namespace net 504 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/socks5_client_socket.h ('k') | net/socket/socks_client_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698