Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(535)

Side by Side Diff: net/quic/core/quic_headers_stream.cc

Issue 2487613002: Landing Recent QUIC changes until 12:43 PM, Nov 5, 2016 UTC+8 (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/core/quic_headers_stream.h ('k') | net/quic/core/quic_headers_stream_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/quic/core/quic_headers_stream.h ('k') | net/quic/core/quic_headers_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698