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