OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |