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

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

Issue 968233004: Land Recent QUIC Changes until 03/02/2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup
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/quic_data_writer_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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // Deletes all sessions on the closed session list and clears the list. 122 // Deletes all sessions on the closed session list and clears the list.
123 void DeleteSessions(); 123 void DeleteSessions();
124 124
125 const SessionMap& session_map() const { return session_map_; } 125 const SessionMap& session_map() const { return session_map_; }
126 126
127 protected: 127 protected:
128 virtual QuicSession* CreateQuicSession(QuicConnectionId connection_id, 128 virtual QuicSession* CreateQuicSession(QuicConnectionId connection_id,
129 const IPEndPoint& server_address, 129 const IPEndPoint& server_address,
130 const IPEndPoint& client_address); 130 const IPEndPoint& client_address);
131 131
132 virtual QuicConnection* CreateQuicConnection(
133 QuicConnectionId connection_id,
134 const IPEndPoint& server_address,
135 const IPEndPoint& client_address);
136
137 // Called by |framer_visitor_| when the public header has been parsed. 132 // Called by |framer_visitor_| when the public header has been parsed.
138 virtual bool OnUnauthenticatedPublicHeader( 133 virtual bool OnUnauthenticatedPublicHeader(
139 const QuicPacketPublicHeader& header); 134 const QuicPacketPublicHeader& header);
140 135
141 // Create and return the time wait list manager for this dispatcher, which 136 // Create and return the time wait list manager for this dispatcher, which
142 // will be owned by the dispatcher as time_wait_list_manager_ 137 // will be owned by the dispatcher as time_wait_list_manager_
143 virtual QuicTimeWaitListManager* CreateQuicTimeWaitListManager(); 138 virtual QuicTimeWaitListManager* CreateQuicTimeWaitListManager();
144 139
145 // Replaces the packet writer with |writer|. Takes ownership of |writer|.
146 void set_writer(QuicServerPacketWriter* writer) {
147 writer_.reset(writer);
148 }
149
150 QuicTimeWaitListManager* time_wait_list_manager() { 140 QuicTimeWaitListManager* time_wait_list_manager() {
151 return time_wait_list_manager_.get(); 141 return time_wait_list_manager_.get();
152 } 142 }
153 143
154 const QuicVersionVector& supported_versions() const { 144 const QuicVersionVector& supported_versions() const {
155 return supported_versions_; 145 return supported_versions_;
156 } 146 }
157 147
158 const IPEndPoint& current_server_address() { 148 const IPEndPoint& current_server_address() {
159 return current_server_address_; 149 return current_server_address_;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 241
252 QuicFramer framer_; 242 QuicFramer framer_;
253 scoped_ptr<QuicFramerVisitor> framer_visitor_; 243 scoped_ptr<QuicFramerVisitor> framer_visitor_;
254 244
255 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); 245 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher);
256 }; 246 };
257 247
258 } // namespace net 248 } // namespace net
259 249
260 #endif // NET_QUIC_QUIC_DISPATCHER_H_ 250 #endif // NET_QUIC_QUIC_DISPATCHER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_data_writer_test.cc ('k') | net/quic/quic_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698