| 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 21 matching lines...) Expand all Loading... |
| 32 closed_stream_status_(ERR_FAILED), | 32 closed_stream_status_(ERR_FAILED), |
| 33 closed_stream_id_(0), | 33 closed_stream_id_(0), |
| 34 request_info_(NULL), | 34 request_info_(NULL), |
| 35 response_info_(NULL), | 35 response_info_(NULL), |
| 36 response_headers_status_(RESPONSE_HEADERS_ARE_INCOMPLETE), | 36 response_headers_status_(RESPONSE_HEADERS_ARE_INCOMPLETE), |
| 37 user_buffer_len_(0), | 37 user_buffer_len_(0), |
| 38 request_body_buf_size_(0), | 38 request_body_buf_size_(0), |
| 39 buffered_read_callback_pending_(false), | 39 buffered_read_callback_pending_(false), |
| 40 more_read_data_pending_(false), | 40 more_read_data_pending_(false), |
| 41 direct_(direct) { | 41 direct_(direct) { |
| 42 DCHECK(spdy_session_); | 42 DCHECK(spdy_session_.get()); |
| 43 } | 43 } |
| 44 | 44 |
| 45 SpdyHttpStream::~SpdyHttpStream() { | 45 SpdyHttpStream::~SpdyHttpStream() { |
| 46 if (stream_.get()) { | 46 if (stream_.get()) { |
| 47 stream_->DetachDelegate(); | 47 stream_->DetachDelegate(); |
| 48 DCHECK(!stream_.get()); | 48 DCHECK(!stream_.get()); |
| 49 } | 49 } |
| 50 } | 50 } |
| 51 | 51 |
| 52 int SpdyHttpStream::InitializeStream(const HttpRequestInfo* request_info, | 52 int SpdyHttpStream::InitializeStream(const HttpRequestInfo* request_info, |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 bool SpdyHttpStream::IsSpdyHttpStream() const { | 523 bool SpdyHttpStream::IsSpdyHttpStream() const { |
| 524 return true; | 524 return true; |
| 525 } | 525 } |
| 526 | 526 |
| 527 void SpdyHttpStream::Drain(HttpNetworkSession* session) { | 527 void SpdyHttpStream::Drain(HttpNetworkSession* session) { |
| 528 Close(false); | 528 Close(false); |
| 529 delete this; | 529 delete this; |
| 530 } | 530 } |
| 531 | 531 |
| 532 } // namespace net | 532 } // namespace net |
| OLD | NEW |