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

Unified Diff: net/quic/quic_chromium_client_stream.cc

Issue 2107353003: QUIC - expand server push test coverage and fix recent regression. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: QUIC - expand server push test coverage and fix recent regression. Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_chromium_client_stream.h ('k') | net/quic/quic_network_transaction_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_chromium_client_stream.cc
diff --git a/net/quic/quic_chromium_client_stream.cc b/net/quic/quic_chromium_client_stream.cc
index 9a0da07dde963110fa13578f59fadfac1ccecd48..1075ad3852da6856f78e5650da44cc658c870d08 100644
--- a/net/quic/quic_chromium_client_stream.cc
+++ b/net/quic/quic_chromium_client_stream.cc
@@ -109,6 +109,24 @@ void QuicChromiumClientStream::OnPromiseHeadersComplete(
session_->HandlePromised(id(), promised_id, headers);
}
+void QuicChromiumClientStream::OnPromiseHeaderList(
+ QuicStreamId promised_id,
+ size_t frame_len,
+ const QuicHeaderList& header_list) {
+ SpdyHeaderBlock promise_headers;
+ int64_t content_length = -1;
+ if (!SpdyUtils::CopyAndValidateHeaders(header_list, &content_length,
+ &promise_headers)) {
+ DLOG(ERROR) << "Failed to parse header list: " << header_list.DebugString();
+ ConsumeHeaderList();
+ Reset(QUIC_BAD_APPLICATION_PAYLOAD);
+ return;
+ }
+ ConsumeHeaderList();
+
+ session_->HandlePromised(id(), promised_id, promise_headers);
+}
+
void QuicChromiumClientStream::OnDataAvailable() {
if (!FinishedReadingHeaders() || !headers_delivered_) {
// Buffer the data in the sequencer until the headers have been read.
« no previous file with comments | « net/quic/quic_chromium_client_stream.h ('k') | net/quic/quic_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698