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_headers_stream.h" | 8 #include "net/quic/quic_headers_stream.h" |
8 | 9 |
9 namespace net { | 10 namespace net { |
10 | 11 |
11 QuicSpdySession::QuicSpdySession(QuicConnection* connection, | 12 QuicSpdySession::QuicSpdySession(QuicConnection* connection, |
12 const QuicConfig& config) | 13 const QuicConfig& config) |
13 : QuicSession(connection, config) {} | 14 : QuicSession(connection, config) {} |
14 | 15 |
15 QuicSpdySession::~QuicSpdySession() {} | 16 QuicSpdySession::~QuicSpdySession() {} |
16 | 17 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 void QuicSpdySession::UpdateStreamPriority(QuicStreamId id, | 87 void QuicSpdySession::UpdateStreamPriority(QuicStreamId id, |
87 SpdyPriority new_priority) { | 88 SpdyPriority new_priority) { |
88 write_blocked_streams()->UpdateStreamPriority(id, new_priority); | 89 write_blocked_streams()->UpdateStreamPriority(id, new_priority); |
89 } | 90 } |
90 | 91 |
91 QuicSpdyStream* QuicSpdySession::GetSpdyDataStream( | 92 QuicSpdyStream* QuicSpdySession::GetSpdyDataStream( |
92 const QuicStreamId stream_id) { | 93 const QuicStreamId stream_id) { |
93 return static_cast<QuicSpdyStream*>(GetOrCreateDynamicStream(stream_id)); | 94 return static_cast<QuicSpdyStream*>(GetOrCreateDynamicStream(stream_id)); |
94 } | 95 } |
95 | 96 |
| 97 void QuicSpdySession::OnPromiseHeaders(QuicStreamId stream_id, |
| 98 StringPiece headers_data) { |
| 99 QUIC_BUG << "OnPromiseHeaders should be overriden in client code."; |
| 100 connection()->CloseConnection(QUIC_INTERNAL_ERROR, false); |
| 101 } |
| 102 |
| 103 void QuicSpdySession::OnPromiseHeadersComplete(QuicStreamId stream_id, |
| 104 QuicStreamId promised_stream_id, |
| 105 size_t frame_len) { |
| 106 QUIC_BUG << "OnPromiseHeadersComplete shoule be overriden in client code."; |
| 107 connection()->CloseConnection(QUIC_INTERNAL_ERROR, false); |
| 108 } |
| 109 |
96 } // namespace net | 110 } // namespace net |
OLD | NEW |