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

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

Issue 103343004: Change port_entropy to port_seed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | net/quic/quic_stream_factory.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 #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 233 // Each profile will (probably) have a unique port_seed_ value. This value is
234 // is used to help seed a pseudo-random number generator (PortSuggester) so 234 // used to help seed a pseudo-random number generator (PortSuggester) so that
235 // that we consistently (within this profile) suggest the same ephemeral port 235 // we consistently (within this profile) suggest the same ephemeral port when
236 // when we re-connect to any given server/port. The differences between 236 // we re-connect to any given server/port. The differences between profiles
237 // profiles (probablistically) prevent two profiles from colliding in their 237 // (probablistically) prevent two profiles from colliding in their ephemeral
238 // ephemeral port requests. 238 // port requests.
239 uint64 port_entropy_; 239 uint64 port_seed_;
240 240
241 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 241 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
242 }; 242 };
243 243
244 } // namespace net 244 } // namespace net
245 245
246 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 246 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698