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

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

Issue 973683003: CL generated with data from dead-code analysis using (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Change_PrrSender_TimeUntilSend_87535917
Patch Set: Created 5 years, 9 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/reliable_quic_stream_test.cc ('k') | net/tools/quic/quic_packet_writer_wrapper.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_TOOLS_QUIC_QUIC_DISPATCHER_H_ 8 #ifndef NET_TOOLS_QUIC_QUIC_DISPATCHER_H_
9 #define NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ 9 #define NET_TOOLS_QUIC_QUIC_DISPATCHER_H_
10 10
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 const IPEndPoint& client_address); 136 const IPEndPoint& client_address);
137 137
138 // Called by |framer_visitor_| when the public header has been parsed. 138 // Called by |framer_visitor_| when the public header has been parsed.
139 virtual bool OnUnauthenticatedPublicHeader( 139 virtual bool OnUnauthenticatedPublicHeader(
140 const QuicPacketPublicHeader& header); 140 const QuicPacketPublicHeader& header);
141 141
142 // Create and return the time wait list manager for this dispatcher, which 142 // Create and return the time wait list manager for this dispatcher, which
143 // will be owned by the dispatcher as time_wait_list_manager_ 143 // will be owned by the dispatcher as time_wait_list_manager_
144 virtual QuicTimeWaitListManager* CreateQuicTimeWaitListManager(); 144 virtual QuicTimeWaitListManager* CreateQuicTimeWaitListManager();
145 145
146 // Replaces the packet writer with |writer|. Takes ownership of |writer|.
147 void set_writer(QuicPacketWriter* writer) {
148 writer_.reset(writer);
149 }
150
151 QuicTimeWaitListManager* time_wait_list_manager() { 146 QuicTimeWaitListManager* time_wait_list_manager() {
152 return time_wait_list_manager_.get(); 147 return time_wait_list_manager_.get();
153 } 148 }
154 149
155 EpollServer* epoll_server() { return epoll_server_; } 150 EpollServer* epoll_server() { return epoll_server_; }
156 151
157 const QuicVersionVector& supported_versions() const { 152 const QuicVersionVector& supported_versions() const {
158 return supported_versions_; 153 return supported_versions_;
159 } 154 }
160 155
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 QuicFramer framer_; 252 QuicFramer framer_;
258 scoped_ptr<QuicFramerVisitor> framer_visitor_; 253 scoped_ptr<QuicFramerVisitor> framer_visitor_;
259 254
260 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); 255 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher);
261 }; 256 };
262 257
263 } // namespace tools 258 } // namespace tools
264 } // namespace net 259 } // namespace net
265 260
266 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ 261 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_
OLDNEW
« no previous file with comments | « net/quic/reliable_quic_stream_test.cc ('k') | net/tools/quic/quic_packet_writer_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698