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

Side by Side Diff: net/quic/chromium/quic_chromium_client_stream.cc

Issue 2391103003: Landing Recent QUIC changes until 3:24 PM, Oct 01, 2016 UTC-4 (Closed)
Patch Set: Add new error code to quic_error_mapping.cc Created 4 years, 2 months 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
OLDNEW
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/quic/chromium/quic_chromium_client_stream.h" 5 #include "net/quic/chromium/quic_chromium_client_stream.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 } 274 }
275 275
276 void QuicChromiumClientStream::NotifyDelegateOfHeadersComplete( 276 void QuicChromiumClientStream::NotifyDelegateOfHeadersComplete(
277 SpdyHeaderBlock headers, 277 SpdyHeaderBlock headers,
278 size_t frame_len) { 278 size_t frame_len) {
279 if (!delegate_) 279 if (!delegate_)
280 return; 280 return;
281 // Only mark trailers consumed when we are about to notify delegate. 281 // Only mark trailers consumed when we are about to notify delegate.
282 if (headers_delivered_) { 282 if (headers_delivered_) {
283 MarkTrailersConsumed(decompressed_trailers().length()); 283 MarkTrailersConsumed(decompressed_trailers().length());
284 MarkTrailersDelivered(); 284 MarkTrailersConsumed();
285 net_log_.AddEvent( 285 net_log_.AddEvent(
286 NetLogEventType::QUIC_CHROMIUM_CLIENT_STREAM_READ_RESPONSE_TRAILERS, 286 NetLogEventType::QUIC_CHROMIUM_CLIENT_STREAM_READ_RESPONSE_TRAILERS,
287 base::Bind(&SpdyHeaderBlockNetLogCallback, &headers)); 287 base::Bind(&SpdyHeaderBlockNetLogCallback, &headers));
288 } else { 288 } else {
289 headers_delivered_ = true; 289 headers_delivered_ = true;
290 net_log_.AddEvent( 290 net_log_.AddEvent(
291 NetLogEventType::QUIC_CHROMIUM_CLIENT_STREAM_READ_RESPONSE_HEADERS, 291 NetLogEventType::QUIC_CHROMIUM_CLIENT_STREAM_READ_RESPONSE_HEADERS,
292 base::Bind(&SpdyHeaderBlockNetLogCallback, &headers)); 292 base::Bind(&SpdyHeaderBlockNetLogCallback, &headers));
293 } 293 }
294 294
(...skipping 21 matching lines...) Expand all
316 316
317 void QuicChromiumClientStream::DisableConnectionMigration() { 317 void QuicChromiumClientStream::DisableConnectionMigration() {
318 can_migrate_ = false; 318 can_migrate_ = false;
319 } 319 }
320 320
321 bool QuicChromiumClientStream::IsFirstStream() { 321 bool QuicChromiumClientStream::IsFirstStream() {
322 return id() == kHeadersStreamId + 2; 322 return id() == kHeadersStreamId + 2;
323 } 323 }
324 324
325 } // namespace net 325 } // namespace net
OLDNEW
« no previous file with comments | « components/domain_reliability/quic_error_mapping.cc ('k') | net/quic/chromium/quic_http_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698