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

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

Issue 1865803007: relnote: Add QUIC connection option DHDT to disable HPACK dynamic table. Guarded by FLAGS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@02_CL_118983961
Patch Set: Created 4 years, 8 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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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_session.h" 5 #include "net/quic/quic_spdy_session.h"
6 6
7 #include "net/quic/quic_bug_tracker.h" 7 #include "net/quic/quic_bug_tracker.h"
8 #include "net/quic/quic_headers_stream.h" 8 #include "net/quic/quic_headers_stream.h"
9 9
10 using std::string; 10 using std::string;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 void QuicSpdySession::OnPromiseHeadersComplete(QuicStreamId stream_id, 107 void QuicSpdySession::OnPromiseHeadersComplete(QuicStreamId stream_id,
108 QuicStreamId promised_stream_id, 108 QuicStreamId promised_stream_id,
109 size_t frame_len) { 109 size_t frame_len) {
110 string error = "OnPromiseHeadersComplete should be overriden in client code."; 110 string error = "OnPromiseHeadersComplete should be overriden in client code.";
111 QUIC_BUG << error; 111 QUIC_BUG << error;
112 connection()->CloseConnection(QUIC_INTERNAL_ERROR, error, 112 connection()->CloseConnection(QUIC_INTERNAL_ERROR, error,
113 ConnectionCloseBehavior::SILENT_CLOSE); 113 ConnectionCloseBehavior::SILENT_CLOSE);
114 } 114 }
115 115
116 void QuicSpdySession::OnConfigNegotiated() {
117 QuicSession::OnConfigNegotiated();
118 if (FLAGS_quic_disable_hpack_dynamic_table &&
119 config()->HasClientSentConnectionOption(kDHDT, perspective())) {
120 headers_stream_->DisableHpackDynamicTable();
121 }
122 }
123
116 } // namespace net 124 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698