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

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

Issue 107803002: Consistently suggest ephemeral port for QUIC client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Repond to wtc review Created 7 years 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
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 #ifndef NET_QUIC_QUIC_STREAM_FACTORY_H_ 5 #ifndef NET_QUIC_QUIC_STREAM_FACTORY_H_
6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_ 6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 std::vector<std::string> cannoncial_suffixes_; 223 std::vector<std::string> cannoncial_suffixes_;
224 224
225 QuicConfig config_; 225 QuicConfig config_;
226 226
227 JobMap active_jobs_; 227 JobMap active_jobs_;
228 JobRequestsMap job_requests_map_; 228 JobRequestsMap job_requests_map_;
229 RequestMap active_requests_; 229 RequestMap active_requests_;
230 230
231 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 231 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
232 232
233 // Each profile will (probably) have a unique port_entropy_ value. This value
234 // is used to help seed a pseudo-random number generator (PortSuggester) so
235 // that we consistently (within this profile) suggest the same ephemeral port
236 // when we re-connect to any given server/port. The differences between
237 // profiles (probabalistically) prevent two profiles from colliding in their
wtc 2013/12/07 01:03:38 probabalistically => probablistically
jar (doing other things) 2013/12/07 03:12:18 Done.
238 // ephemeral port requests.
239 uint64 port_entropy_;
240
233 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 241 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
234 }; 242 };
235 243
236 } // namespace net 244 } // namespace net
237 245
238 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 246 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698