OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_HEADERS_STREAM_H_ | 5 #ifndef NET_QUIC_CORE_QUIC_HEADERS_STREAM_H_ |
6 #define NET_QUIC_QUIC_HEADERS_STREAM_H_ | 6 #define NET_QUIC_CORE_QUIC_HEADERS_STREAM_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
14 #include "net/quic/core/quic_header_list.h" | 14 #include "net/quic/core/quic_header_list.h" |
15 #include "net/quic/core/quic_protocol.h" | 15 #include "net/quic/core/quic_protocol.h" |
16 #include "net/quic/core/reliable_quic_stream.h" | 16 #include "net/quic/core/reliable_quic_stream.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 void OnHeaders(SpdyStreamId stream_id, | 115 void OnHeaders(SpdyStreamId stream_id, |
116 bool has_priority, | 116 bool has_priority, |
117 SpdyPriority priority, | 117 SpdyPriority priority, |
118 bool fin); | 118 bool fin); |
119 | 119 |
120 // Called when a PUSH_PROMISE frame has been received. | 120 // Called when a PUSH_PROMISE frame has been received. |
121 void OnPushPromise(SpdyStreamId stream_id, | 121 void OnPushPromise(SpdyStreamId stream_id, |
122 SpdyStreamId promised_stream_id, | 122 SpdyStreamId promised_stream_id, |
123 bool end); | 123 bool end); |
124 | 124 |
125 // Called when a chunk of header data is available. This is called | |
126 // after OnHeaders. | |
127 // |stream_id| The stream receiving the header data. | |
128 // |header_data| A buffer containing the header data chunk received. | |
129 // |len| The length of the header data buffer. A length of zero indicates | |
130 // that the header data block has been completely sent. | |
131 void OnControlFrameHeaderData(SpdyStreamId stream_id, | |
132 const char* header_data, | |
133 size_t len); | |
134 | |
135 // Called when the complete list of headers is available. | 125 // Called when the complete list of headers is available. |
136 void OnHeaderList(const QuicHeaderList& header_list); | 126 void OnHeaderList(const QuicHeaderList& header_list); |
137 | 127 |
138 // Called when the size of the compressed frame payload is available. | 128 // Called when the size of the compressed frame payload is available. |
139 void OnCompressedFrameSize(size_t frame_len); | 129 void OnCompressedFrameSize(size_t frame_len); |
140 | 130 |
141 // For force HOL blocking, where stream frames from all streams are | 131 // For force HOL blocking, where stream frames from all streams are |
142 // plumbed through headers stream as HTTP/2 data frames. Return false | 132 // plumbed through headers stream as HTTP/2 data frames. Return false |
143 // if force_hol_blocking_ is false; | 133 // if force_hol_blocking_ is false; |
144 bool OnDataFrameHeader(QuicStreamId stream_id, size_t length, bool fin); | 134 bool OnDataFrameHeader(QuicStreamId stream_id, size_t length, bool fin); |
(...skipping 23 matching lines...) Expand all Loading... |
168 QuicTime prev_max_timestamp_; | 158 QuicTime prev_max_timestamp_; |
169 | 159 |
170 SpdyFramer spdy_framer_; | 160 SpdyFramer spdy_framer_; |
171 std::unique_ptr<SpdyFramerVisitor> spdy_framer_visitor_; | 161 std::unique_ptr<SpdyFramerVisitor> spdy_framer_visitor_; |
172 | 162 |
173 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); | 163 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); |
174 }; | 164 }; |
175 | 165 |
176 } // namespace net | 166 } // namespace net |
177 | 167 |
178 #endif // NET_QUIC_QUIC_HEADERS_STREAM_H_ | 168 #endif // NET_QUIC_CORE_QUIC_HEADERS_STREAM_H_ |
OLD | NEW |