Chromium Code Reviews| 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 void SpdyHttpStream::OnTrailers(const SpdyHeaderBlock& trailers) {} | |
|
Ryan Hamilton
2015/08/10 22:37:38
nit: Can you add a TODO here to do something with
xunjieli
2015/08/11 15:07:14
Done. Good idea! I added the bug number as well. A
| |
| 369 | |
| 368 void SpdyHttpStream::OnClose(int status) { | 370 void SpdyHttpStream::OnClose(int status) { |
| 369 if (stream_.get()) { | 371 if (stream_.get()) { |
| 370 stream_closed_ = true; | 372 stream_closed_ = true; |
| 371 closed_stream_status_ = status; | 373 closed_stream_status_ = status; |
| 372 closed_stream_id_ = stream_->stream_id(); | 374 closed_stream_id_ = stream_->stream_id(); |
| 373 closed_stream_has_load_timing_info_ = | 375 closed_stream_has_load_timing_info_ = |
| 374 stream_->GetLoadTimingInfo(&closed_stream_load_timing_info_); | 376 stream_->GetLoadTimingInfo(&closed_stream_load_timing_info_); |
| 375 closed_stream_received_bytes_ = stream_->raw_received_bytes(); | 377 closed_stream_received_bytes_ = stream_->raw_received_bytes(); |
| 376 } | 378 } |
| 377 stream_.reset(); | 379 stream_.reset(); |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 533 Close(false); | 535 Close(false); |
| 534 delete this; | 536 delete this; |
| 535 } | 537 } |
| 536 | 538 |
| 537 void SpdyHttpStream::SetPriority(RequestPriority priority) { | 539 void SpdyHttpStream::SetPriority(RequestPriority priority) { |
| 538 // TODO(akalin): Plumb this through to |stream_request_| and | 540 // TODO(akalin): Plumb this through to |stream_request_| and |
| 539 // |stream_|. | 541 // |stream_|. |
| 540 } | 542 } |
| 541 | 543 |
| 542 } // namespace net | 544 } // namespace net |
| OLD | NEW |