| 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 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 return false; | 567 return false; |
| 568 | 568 |
| 569 return spdy_session_->GetPeerAddress(endpoint) == OK; | 569 return spdy_session_->GetPeerAddress(endpoint) == OK; |
| 570 } | 570 } |
| 571 | 571 |
| 572 Error SpdyHttpStream::GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, | 572 Error SpdyHttpStream::GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, |
| 573 std::vector<uint8_t>* out) { | 573 std::vector<uint8_t>* out) { |
| 574 return spdy_session_->GetSignedEKMForTokenBinding(key, out); | 574 return spdy_session_->GetSignedEKMForTokenBinding(key, out); |
| 575 } | 575 } |
| 576 | 576 |
| 577 void SpdyHttpStream::Drain(HttpNetworkSession* session) { | 577 void SpdyHttpStream::Drain(HttpNetworkSession* session, |
| 578 scoped_ptr<HttpResponseInfo> response_info) { |
| 578 NOTREACHED(); | 579 NOTREACHED(); |
| 579 Close(false); | 580 Close(false); |
| 580 delete this; | 581 delete this; |
| 581 } | 582 } |
| 582 | 583 |
| 583 void SpdyHttpStream::PopulateNetErrorDetails(NetErrorDetails* details) { | 584 void SpdyHttpStream::PopulateNetErrorDetails(NetErrorDetails* details) { |
| 584 details->connection_info = HttpResponseInfo::CONNECTION_INFO_HTTP2; | 585 details->connection_info = HttpResponseInfo::CONNECTION_INFO_HTTP2; |
| 585 return; | 586 return; |
| 586 } | 587 } |
| 587 | 588 |
| 588 void SpdyHttpStream::SetPriority(RequestPriority priority) { | 589 void SpdyHttpStream::SetPriority(RequestPriority priority) { |
| 589 // TODO(akalin): Plumb this through to |stream_request_| and | 590 // TODO(akalin): Plumb this through to |stream_request_| and |
| 590 // |stream_|. | 591 // |stream_|. |
| 591 } | 592 } |
| 592 | 593 |
| 593 } // namespace net | 594 } // namespace net |
| OLD | NEW |