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

Side by Side Diff: net/quic/core/quic_headers_stream.h

Issue 2424863002: Automated g4 rollback of internal changelist 134345701 (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | net/quic/core/quic_headers_stream.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 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_QUIC_HEADERS_STREAM_H_
6 #define NET_QUIC_QUIC_HEADERS_STREAM_H_ 6 #define NET_QUIC_QUIC_HEADERS_STREAM_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 const char* header_data, 129 const char* header_data,
130 size_t len); 130 size_t len);
131 131
132 // Called when the complete list of headers is available. 132 // Called when the complete list of headers is available.
133 void OnHeaderList(const QuicHeaderList& header_list); 133 void OnHeaderList(const QuicHeaderList& header_list);
134 134
135 // Called when the size of the compressed frame payload is available. 135 // Called when the size of the compressed frame payload is available.
136 void OnCompressedFrameSize(size_t frame_len); 136 void OnCompressedFrameSize(size_t frame_len);
137 137
138 // For force HOL blocking, where stream frames from all streams are 138 // For force HOL blocking, where stream frames from all streams are
139 // plumbed through headers stream as HTTP/2 data frames. 139 // plumbed through headers stream as HTTP/2 data frames. Return false
140 // The following two return false if force_hol_blocking_ is false. 140 // if force_hol_blocking_ is false;
141 bool OnDataFrameHeader(QuicStreamId stream_id, size_t length, bool fin); 141 bool OnDataFrameHeader(QuicStreamId stream_id, size_t length, bool fin);
142 bool OnStreamFrameData(QuicStreamId stream_id, const char* data, size_t len); 142 bool OnStreamFrameData(QuicStreamId stream_id, const char* data, size_t len);
143 // Helper for |WritevStreamData()|.
144 void WriteDataFrame(QuicStreamId stream_id,
145 base::StringPiece data,
146 bool fin,
147 QuicAckListenerInterface* ack_notifier_delegate);
148 143
149 // Returns true if the session is still connected. 144 // Returns true if the session is still connected.
150 bool IsConnected(); 145 bool IsConnected();
151 146
152 QuicSpdySession* spdy_session_; 147 QuicSpdySession* spdy_session_;
153 148
154 // Data about the stream whose headers are being processed. 149 // Data about the stream whose headers are being processed.
155 QuicStreamId stream_id_; 150 QuicStreamId stream_id_;
156 QuicStreamId promised_stream_id_; 151 QuicStreamId promised_stream_id_;
157 bool fin_; 152 bool fin_;
(...skipping 13 matching lines...) Expand all
171 166
172 SpdyFramer spdy_framer_; 167 SpdyFramer spdy_framer_;
173 std::unique_ptr<SpdyFramerVisitor> spdy_framer_visitor_; 168 std::unique_ptr<SpdyFramerVisitor> spdy_framer_visitor_;
174 169
175 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); 170 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream);
176 }; 171 };
177 172
178 } // namespace net 173 } // namespace net
179 174
180 #endif // NET_QUIC_QUIC_HEADERS_STREAM_H_ 175 #endif // NET_QUIC_QUIC_HEADERS_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/core/quic_headers_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698