| 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_http_stream.h" | 5 #include "net/spdy/spdy_http_stream.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <list> | 8 #include <list> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 NOTREACHED(); | 541 NOTREACHED(); |
| 542 } | 542 } |
| 543 | 543 |
| 544 bool SpdyHttpStream::GetRemoteEndpoint(IPEndPoint* endpoint) { | 544 bool SpdyHttpStream::GetRemoteEndpoint(IPEndPoint* endpoint) { |
| 545 if (!spdy_session_) | 545 if (!spdy_session_) |
| 546 return false; | 546 return false; |
| 547 | 547 |
| 548 return spdy_session_->GetPeerAddress(endpoint) == OK; | 548 return spdy_session_->GetPeerAddress(endpoint) == OK; |
| 549 } | 549 } |
| 550 | 550 |
| 551 int SpdyHttpStream::GetTokenBindingMessageHeader(std::string* out) { |
| 552 return ERR_NOT_IMPLEMENTED; |
| 553 } |
| 554 |
| 551 void SpdyHttpStream::Drain(HttpNetworkSession* session) { | 555 void SpdyHttpStream::Drain(HttpNetworkSession* session) { |
| 552 NOTREACHED(); | 556 NOTREACHED(); |
| 553 Close(false); | 557 Close(false); |
| 554 delete this; | 558 delete this; |
| 555 } | 559 } |
| 556 | 560 |
| 557 void SpdyHttpStream::SetPriority(RequestPriority priority) { | 561 void SpdyHttpStream::SetPriority(RequestPriority priority) { |
| 558 // TODO(akalin): Plumb this through to |stream_request_| and | 562 // TODO(akalin): Plumb this through to |stream_request_| and |
| 559 // |stream_|. | 563 // |stream_|. |
| 560 } | 564 } |
| 561 | 565 |
| 562 } // namespace net | 566 } // namespace net |
| OLD | NEW |