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