OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |