| 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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 ScheduleBufferedReadCallback(); | 358 ScheduleBufferedReadCallback(); |
| 359 } | 359 } |
| 360 } | 360 } |
| 361 } | 361 } |
| 362 | 362 |
| 363 void SpdyHttpStream::OnDataSent() { | 363 void SpdyHttpStream::OnDataSent() { |
| 364 request_body_buf_size_ = 0; | 364 request_body_buf_size_ = 0; |
| 365 ReadAndSendRequestBodyData(); | 365 ReadAndSendRequestBodyData(); |
| 366 } | 366 } |
| 367 | 367 |
| 368 // TODO(xunjieli): Maybe do something with the trailers. crbug.com/422958. |
| 369 void SpdyHttpStream::OnTrailers(const SpdyHeaderBlock& trailers) {} |
| 370 |
| 368 void SpdyHttpStream::OnClose(int status) { | 371 void SpdyHttpStream::OnClose(int status) { |
| 369 if (stream_.get()) { | 372 if (stream_.get()) { |
| 370 stream_closed_ = true; | 373 stream_closed_ = true; |
| 371 closed_stream_status_ = status; | 374 closed_stream_status_ = status; |
| 372 closed_stream_id_ = stream_->stream_id(); | 375 closed_stream_id_ = stream_->stream_id(); |
| 373 closed_stream_has_load_timing_info_ = | 376 closed_stream_has_load_timing_info_ = |
| 374 stream_->GetLoadTimingInfo(&closed_stream_load_timing_info_); | 377 stream_->GetLoadTimingInfo(&closed_stream_load_timing_info_); |
| 375 closed_stream_received_bytes_ = stream_->raw_received_bytes(); | 378 closed_stream_received_bytes_ = stream_->raw_received_bytes(); |
| 376 } | 379 } |
| 377 stream_.reset(); | 380 stream_.reset(); |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 Close(false); | 536 Close(false); |
| 534 delete this; | 537 delete this; |
| 535 } | 538 } |
| 536 | 539 |
| 537 void SpdyHttpStream::SetPriority(RequestPriority priority) { | 540 void SpdyHttpStream::SetPriority(RequestPriority priority) { |
| 538 // TODO(akalin): Plumb this through to |stream_request_| and | 541 // TODO(akalin): Plumb this through to |stream_request_| and |
| 539 // |stream_|. | 542 // |stream_|. |
| 540 } | 543 } |
| 541 | 544 |
| 542 } // namespace net | 545 } // namespace net |
| OLD | NEW |