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

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

Issue 1572013002: relnote: QUIC header streams support to receive PUSH_PROMISE. Protected by --quic_supports_push_pr… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@14_CL_111507546
Patch Set: Created 4 years, 11 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
« no previous file with comments | « net/quic/quic_spdy_session.h ('k') | net/quic/quic_spdy_stream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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
OLDNEW
« no previous file with comments | « net/quic/quic_spdy_session.h ('k') | net/quic/quic_spdy_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698