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

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

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_protocol.h ('k') | net/quic/quic_spdy_session.cc » ('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 #ifndef NET_QUIC_QUIC_SPDY_SESSION_H_ 5 #ifndef NET_QUIC_QUIC_SPDY_SESSION_H_
6 #define NET_QUIC_QUIC_SPDY_SESSION_H_ 6 #define NET_QUIC_QUIC_SPDY_SESSION_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 24 matching lines...) Expand all
35 // streams. 35 // streams.
36 virtual void OnStreamHeadersPriority(QuicStreamId stream_id, 36 virtual void OnStreamHeadersPriority(QuicStreamId stream_id,
37 SpdyPriority priority); 37 SpdyPriority priority);
38 // Called by |headers_stream_| when headers have been completely received 38 // Called by |headers_stream_| when headers have been completely received
39 // for a stream. |fin| will be true if the fin flag was set in the headers 39 // for a stream. |fin| will be true if the fin flag was set in the headers
40 // frame. 40 // frame.
41 virtual void OnStreamHeadersComplete(QuicStreamId stream_id, 41 virtual void OnStreamHeadersComplete(QuicStreamId stream_id,
42 bool fin, 42 bool fin,
43 size_t frame_len); 43 size_t frame_len);
44 44
45 // Called by |headers_stream_| when push promise headers have been
46 // received for a stream.
47 virtual void OnPromiseHeaders(QuicStreamId stream_id,
48 StringPiece headers_data);
49
50 // Called by |headers_stream_| when push promise headers have been
51 // completely received. |fin| will be true if the fin flag was set
52 // in the headers.
53 virtual void OnPromiseHeadersComplete(QuicStreamId stream_id,
54 QuicStreamId promised_stream_id,
55 size_t frame_len);
56
45 // Writes |headers| for the stream |id| to the dedicated headers stream. 57 // Writes |headers| for the stream |id| to the dedicated headers stream.
46 // If |fin| is true, then no more data will be sent for the stream |id|. 58 // If |fin| is true, then no more data will be sent for the stream |id|.
47 // If provided, |ack_notifier_delegate| will be registered to be notified when 59 // If provided, |ack_notifier_delegate| will be registered to be notified when
48 // we have seen ACKs for all packets resulting from this call. 60 // we have seen ACKs for all packets resulting from this call.
49 virtual size_t WriteHeaders(QuicStreamId id, 61 virtual size_t WriteHeaders(QuicStreamId id,
50 const SpdyHeaderBlock& headers, 62 const SpdyHeaderBlock& headers,
51 bool fin, 63 bool fin,
52 SpdyPriority priority, 64 SpdyPriority priority,
53 QuicAckListenerInterface* ack_notifier_delegate); 65 QuicAckListenerInterface* ack_notifier_delegate);
54 66
(...skipping 26 matching lines...) Expand all
81 friend class test::QuicSpdySessionPeer; 93 friend class test::QuicSpdySessionPeer;
82 94
83 scoped_ptr<QuicHeadersStream> headers_stream_; 95 scoped_ptr<QuicHeadersStream> headers_stream_;
84 96
85 DISALLOW_COPY_AND_ASSIGN(QuicSpdySession); 97 DISALLOW_COPY_AND_ASSIGN(QuicSpdySession);
86 }; 98 };
87 99
88 } // namespace net 100 } // namespace net
89 101
90 #endif // NET_QUIC_QUIC_SPDY_SESSION_H_ 102 #endif // NET_QUIC_QUIC_SPDY_SESSION_H_
OLDNEW
« no previous file with comments | « net/quic/quic_protocol.h ('k') | net/quic/quic_spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698