OLD | NEW |
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 Loading... |
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 |
OLD | NEW |