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

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

Issue 346303006: Removing deprecated flag FLAGS_enable_quic_stream_flow_control_2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Deleted quic_flags.h include Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_data_stream_test.cc ('k') | net/quic/quic_dispatcher.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // A server side dispatcher which dispatches a given client's data to their 5 // A server side dispatcher which dispatches a given client's data to their
6 // stream. 6 // stream.
7 7
8 #ifndef NET_QUIC_QUIC_DISPATCHER_H_ 8 #ifndef NET_QUIC_QUIC_DISPATCHER_H_
9 #define NET_QUIC_QUIC_DISPATCHER_H_ 9 #define NET_QUIC_QUIC_DISPATCHER_H_
10 10
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 } 129 }
130 130
131 QuicTimeWaitListManager* time_wait_list_manager() { 131 QuicTimeWaitListManager* time_wait_list_manager() {
132 return time_wait_list_manager_.get(); 132 return time_wait_list_manager_.get();
133 } 133 }
134 134
135 const QuicVersionVector& supported_versions() const { 135 const QuicVersionVector& supported_versions() const {
136 return supported_versions_; 136 return supported_versions_;
137 } 137 }
138 138
139 const QuicVersionVector& supported_versions_no_flow_control() const {
140 return supported_versions_no_flow_control_;
141 }
142
143 const QuicVersionVector& supported_versions_no_connection_flow_control() 139 const QuicVersionVector& supported_versions_no_connection_flow_control()
144 const { 140 const {
145 return supported_versions_no_connection_flow_control_; 141 return supported_versions_no_connection_flow_control_;
146 } 142 }
147 143
148 const IPEndPoint& current_server_address() { 144 const IPEndPoint& current_server_address() {
149 return current_server_address_; 145 return current_server_address_;
150 } 146 }
151 const IPEndPoint& current_client_address() { 147 const IPEndPoint& current_client_address() {
152 return current_client_address_; 148 return current_client_address_;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 198
203 // The writer to write to the socket with. 199 // The writer to write to the socket with.
204 scoped_ptr<QuicPacketWriter> writer_; 200 scoped_ptr<QuicPacketWriter> writer_;
205 201
206 // This vector contains QUIC versions which we currently support. 202 // This vector contains QUIC versions which we currently support.
207 // This should be ordered such that the highest supported version is the first 203 // This should be ordered such that the highest supported version is the first
208 // element, with subsequent elements in descending order (versions can be 204 // element, with subsequent elements in descending order (versions can be
209 // skipped as necessary). 205 // skipped as necessary).
210 const QuicVersionVector supported_versions_; 206 const QuicVersionVector supported_versions_;
211 207
212 // Versions which do not support flow control (introduced in QUIC_VERSION_17).
213 // This is used to construct new QuicConnections when flow control is disabled
214 // via flag.
215 // TODO(rjshade): Remove this when
216 // FLAGS_enable_quic_stream_flow_control_2 is removed.
217 QuicVersionVector supported_versions_no_flow_control_;
218 // Versions which do not support *connection* flow control (introduced in 208 // Versions which do not support *connection* flow control (introduced in
219 // QUIC_VERSION_19). 209 // QUIC_VERSION_19).
220 // This is used to construct new QuicConnections when connection flow control 210 // This is used to construct new QuicConnections when connection flow control
221 // is disabled via flag. 211 // is disabled via flag.
222 // TODO(rjshade): Remove this when 212 // TODO(rjshade): Remove this when
223 // FLAGS_enable_quic_connection_flow_control_2 is removed. 213 // FLAGS_enable_quic_connection_flow_control_2 is removed.
224 QuicVersionVector supported_versions_no_connection_flow_control_; 214 QuicVersionVector supported_versions_no_connection_flow_control_;
225 215
226 // Information about the packet currently being handled. 216 // Information about the packet currently being handled.
227 IPEndPoint current_client_address_; 217 IPEndPoint current_client_address_;
228 IPEndPoint current_server_address_; 218 IPEndPoint current_server_address_;
229 const QuicEncryptedPacket* current_packet_; 219 const QuicEncryptedPacket* current_packet_;
230 220
231 QuicFramer framer_; 221 QuicFramer framer_;
232 scoped_ptr<QuicFramerVisitor> framer_visitor_; 222 scoped_ptr<QuicFramerVisitor> framer_visitor_;
233 223
234 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); 224 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher);
235 }; 225 };
236 226
237 } // namespace net 227 } // namespace net
238 228
239 #endif // NET_QUIC_QUIC_DISPATCHER_H_ 229 #endif // NET_QUIC_QUIC_DISPATCHER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_data_stream_test.cc ('k') | net/quic/quic_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698