| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/quic/core/quic_headers_stream.h" | 5 #include "net/quic/core/quic_headers_stream.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 } | 321 } |
| 322 | 322 |
| 323 private: | 323 private: |
| 324 QuicHeadersStream* stream_; | 324 QuicHeadersStream* stream_; |
| 325 QuicHeaderList header_list_; | 325 QuicHeaderList header_list_; |
| 326 | 326 |
| 327 DISALLOW_COPY_AND_ASSIGN(SpdyFramerVisitor); | 327 DISALLOW_COPY_AND_ASSIGN(SpdyFramerVisitor); |
| 328 }; | 328 }; |
| 329 | 329 |
| 330 QuicHeadersStream::QuicHeadersStream(QuicSpdySession* session) | 330 QuicHeadersStream::QuicHeadersStream(QuicSpdySession* session) |
| 331 : ReliableQuicStream(kHeadersStreamId, session), | 331 : QuicStream(kHeadersStreamId, session), |
| 332 spdy_session_(session), | 332 spdy_session_(session), |
| 333 stream_id_(kInvalidStreamId), | 333 stream_id_(kInvalidStreamId), |
| 334 promised_stream_id_(kInvalidStreamId), | 334 promised_stream_id_(kInvalidStreamId), |
| 335 fin_(false), | 335 fin_(false), |
| 336 frame_len_(0), | 336 frame_len_(0), |
| 337 uncompressed_frame_len_(0), | 337 uncompressed_frame_len_(0), |
| 338 supports_push_promise_(session->perspective() == Perspective::IS_CLIENT), | 338 supports_push_promise_(session->perspective() == Perspective::IS_CLIENT), |
| 339 cur_max_timestamp_(QuicTime::Zero()), | 339 cur_max_timestamp_(QuicTime::Zero()), |
| 340 prev_max_timestamp_(QuicTime::Zero()), | 340 prev_max_timestamp_(QuicTime::Zero()), |
| 341 spdy_framer_(HTTP2), | 341 spdy_framer_(HTTP2), |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 return true; | 606 return true; |
| 607 } | 607 } |
| 608 frame_len_ -= len; | 608 frame_len_ -= len; |
| 609 // Ignore fin_ while there is more data coming, if frame_len_ > 0. | 609 // Ignore fin_ while there is more data coming, if frame_len_ > 0. |
| 610 spdy_session_->OnStreamFrameData(stream_id, data, len, | 610 spdy_session_->OnStreamFrameData(stream_id, data, len, |
| 611 frame_len_ > 0 ? false : fin_); | 611 frame_len_ > 0 ? false : fin_); |
| 612 return true; | 612 return true; |
| 613 } | 613 } |
| 614 | 614 |
| 615 } // namespace net | 615 } // namespace net |
| OLD | NEW |