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

Side by Side Diff: net/quic/quic_spdy_stream.cc

Issue 1471573002: Replacing EffectivePriority with Priority for QUIC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@107595145
Patch Set: Created 5 years 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/quic_spdy_stream.h ('k') | net/quic/quic_spdy_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/quic_spdy_stream.h" 5 #include "net/quic/quic_spdy_stream.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/quic/quic_spdy_session.h" 8 #include "net/quic/quic_spdy_session.h"
9 #include "net/quic/quic_utils.h" 9 #include "net/quic/quic_utils.h"
10 #include "net/quic/quic_write_blocked_list.h" 10 #include "net/quic/quic_write_blocked_list.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 if (FinishedReadingHeaders()) { 110 if (FinishedReadingHeaders()) {
111 sequencer()->SetUnblocked(); 111 sequencer()->SetUnblocked();
112 } 112 }
113 } 113 }
114 114
115 void QuicSpdyStream::set_priority(QuicPriority priority) { 115 void QuicSpdyStream::set_priority(QuicPriority priority) {
116 DCHECK_EQ(0u, stream_bytes_written()); 116 DCHECK_EQ(0u, stream_bytes_written());
117 priority_ = priority; 117 priority_ = priority;
118 } 118 }
119 119
120 QuicPriority QuicSpdyStream::EffectivePriority() const { 120 QuicPriority QuicSpdyStream::Priority() const {
121 return priority(); 121 return priority();
122 } 122 }
123 123
124 void QuicSpdyStream::OnStreamHeaders(StringPiece headers_data) { 124 void QuicSpdyStream::OnStreamHeaders(StringPiece headers_data) {
125 headers_data.AppendToString(&decompressed_headers_); 125 headers_data.AppendToString(&decompressed_headers_);
126 } 126 }
127 127
128 void QuicSpdyStream::OnStreamHeadersPriority(QuicPriority priority) { 128 void QuicSpdyStream::OnStreamHeadersPriority(QuicPriority priority) {
129 DCHECK_EQ(Perspective::IS_SERVER, session()->connection()->perspective()); 129 DCHECK_EQ(Perspective::IS_SERVER, session()->connection()->perspective());
130 set_priority(priority); 130 set_priority(priority);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 visitor_ = nullptr; 163 visitor_ = nullptr;
164 visitor->OnClose(this); 164 visitor->OnClose(this);
165 } 165 }
166 } 166 }
167 167
168 bool QuicSpdyStream::FinishedReadingHeaders() const { 168 bool QuicSpdyStream::FinishedReadingHeaders() const {
169 return headers_decompressed_ && decompressed_headers_.empty(); 169 return headers_decompressed_ && decompressed_headers_.empty();
170 } 170 }
171 171
172 } // namespace net 172 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_spdy_stream.h ('k') | net/quic/quic_spdy_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698