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

Side by Side Diff: net/spdy/spdy_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/spdy/spdy_proxy_client_socket.h ('k') | net/spdy/spdy_test_util_common.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 (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/spdy/spdy_proxy_client_socket.h" 5 #include "net/spdy/spdy_proxy_client_socket.h"
6 6
7 #include <algorithm> // min 7 #include <algorithm> // min
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 } 163 }
164 164
165 void SpdyProxyClientSocket::SetOmniboxSpeculation() { 165 void SpdyProxyClientSocket::SetOmniboxSpeculation() {
166 // TODO(rch): what should this implementation be? 166 // TODO(rch): what should this implementation be?
167 } 167 }
168 168
169 bool SpdyProxyClientSocket::WasEverUsed() const { 169 bool SpdyProxyClientSocket::WasEverUsed() const {
170 return was_ever_used_ || (spdy_stream_.get() && spdy_stream_->WasEverUsed()); 170 return was_ever_used_ || (spdy_stream_.get() && spdy_stream_->WasEverUsed());
171 } 171 }
172 172
173 bool SpdyProxyClientSocket::UsingTCPFastOpen() const {
174 return false;
175 }
176
177 bool SpdyProxyClientSocket::WasNpnNegotiated() const { 173 bool SpdyProxyClientSocket::WasNpnNegotiated() const {
178 return false; 174 return false;
179 } 175 }
180 176
181 NextProto SpdyProxyClientSocket::GetNegotiatedProtocol() const { 177 NextProto SpdyProxyClientSocket::GetNegotiatedProtocol() const {
182 return kProtoUnknown; 178 return kProtoUnknown;
183 } 179 }
184 180
185 bool SpdyProxyClientSocket::GetSSLInfo(SSLInfo* ssl_info) { 181 bool SpdyProxyClientSocket::GetSSLInfo(SSLInfo* ssl_info) {
186 bool was_npn_negotiated; 182 bool was_npn_negotiated;
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 } else if (!read_callback_.is_null()) { 526 } else if (!read_callback_.is_null()) {
531 // If we have a read_callback_, the we need to make sure we call it back. 527 // If we have a read_callback_, the we need to make sure we call it back.
532 OnDataReceived(scoped_ptr<SpdyBuffer>()); 528 OnDataReceived(scoped_ptr<SpdyBuffer>());
533 } 529 }
534 // This may have been deleted by read_callback_, so check first. 530 // This may have been deleted by read_callback_, so check first.
535 if (weak_ptr.get() && !write_callback.is_null()) 531 if (weak_ptr.get() && !write_callback.is_null())
536 write_callback.Run(ERR_CONNECTION_CLOSED); 532 write_callback.Run(ERR_CONNECTION_CLOSED);
537 } 533 }
538 534
539 } // namespace net 535 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_proxy_client_socket.h ('k') | net/spdy/spdy_test_util_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698