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

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

Issue 20227003: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Land Recent QUIC changes Created 7 years, 5 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/tools/quic/quic_client_bin.cc ('k') | net/tools/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 (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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 void DeleteSessions(); 97 void DeleteSessions();
98 98
99 const SessionMap& session_map() const { return session_map_; } 99 const SessionMap& session_map() const { return session_map_; }
100 100
101 WriteBlockedList* write_blocked_list() { return &write_blocked_list_; } 101 WriteBlockedList* write_blocked_list() { return &write_blocked_list_; }
102 102
103 protected: 103 protected:
104 const QuicConfig& config_; 104 const QuicConfig& config_;
105 const QuicCryptoServerConfig& crypto_config_; 105 const QuicCryptoServerConfig& crypto_config_;
106 106
107 QuicTimeWaitListManager* time_wait_list_manager() {
108 return time_wait_list_manager_.get();
109 }
110
107 private: 111 private:
108 friend class net::tools::test::QuicDispatcherPeer; 112 friend class net::tools::test::QuicDispatcherPeer;
109 113
110 // Removes the session from the session map and write blocked list, and 114 // Removes the session from the session map and write blocked list, and
111 // adds the GUID to the time-wait list. 115 // adds the GUID to the time-wait list.
112 void CleanUpSession(SessionMap::iterator it); 116 void CleanUpSession(SessionMap::iterator it);
113 117
114 // The list of connections waiting to write. 118 // The list of connections waiting to write.
115 WriteBlockedList write_blocked_list_; 119 WriteBlockedList write_blocked_list_;
116 120
(...skipping 17 matching lines...) Expand all
134 // False if we have gotten a call to OnCanWrite after the last failed write. 138 // False if we have gotten a call to OnCanWrite after the last failed write.
135 bool write_blocked_; 139 bool write_blocked_;
136 140
137 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); 141 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher);
138 }; 142 };
139 143
140 } // namespace tools 144 } // namespace tools
141 } // namespace net 145 } // namespace net
142 146
143 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ 147 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_client_bin.cc ('k') | net/tools/quic/quic_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698