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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
230 // actual origin, which has a plausible set of initial certificates (or at | 230 // actual origin, which has a plausible set of initial certificates (or at |
231 // least server public key). | 231 // least server public key). |
232 CanonicalHostMap canonical_hostname_to_origin_map_; | 232 CanonicalHostMap canonical_hostname_to_origin_map_; |
233 | 233 |
234 // Contains list of suffixes (for exmaple ".c.youtube.com", | 234 // Contains list of suffixes (for exmaple ".c.youtube.com", |
235 // ".googlevideo.com") of cannoncial hostnames. | 235 // ".googlevideo.com") of cannoncial hostnames. |
236 std::vector<std::string> cannoncial_suffixes_; | 236 std::vector<std::string> cannoncial_suffixes_; |
237 | 237 |
238 QuicConfig config_; | 238 QuicConfig config_; |
239 | 239 |
240 // |quic_server_info_| is used to fetching crypto config information from disk | |
wtc
2014/01/30 20:14:26
Nit: to fetching => to fetch
ramant (doing other things)
2014/02/02 19:35:10
Deleted this code.
| |
241 // for a QUIC server (hostname of |host_port_proxy_pair|). | |
242 scoped_ptr<QuicServerInfo> quic_server_info_; | |
wtc
2014/01/30 20:14:26
It seems wrong for the QuicStreamFactory class to
ramant (doing other things)
2014/02/02 19:35:10
Thanks for catching this. Deleted this member from
| |
243 | |
240 JobMap active_jobs_; | 244 JobMap active_jobs_; |
241 JobRequestsMap job_requests_map_; | 245 JobRequestsMap job_requests_map_; |
242 RequestMap active_requests_; | 246 RequestMap active_requests_; |
243 | 247 |
244 QuicVersionVector supported_versions_; | 248 QuicVersionVector supported_versions_; |
245 | 249 |
246 // Determine if we should consistently select a client UDP port. If false, | 250 // Determine if we should consistently select a client UDP port. If false, |
247 // then we will just let the OS select a random client port for each new | 251 // then we will just let the OS select a random client port for each new |
248 // connection. | 252 // connection. |
249 bool enable_port_selection_; | 253 bool enable_port_selection_; |
250 | 254 |
251 // Each profile will (probably) have a unique port_seed_ value. This value is | 255 // Each profile will (probably) have a unique port_seed_ value. This value is |
252 // used to help seed a pseudo-random number generator (PortSuggester) so that | 256 // used to help seed a pseudo-random number generator (PortSuggester) so that |
253 // we consistently (within this profile) suggest the same ephemeral port when | 257 // we consistently (within this profile) suggest the same ephemeral port when |
254 // we re-connect to any given server/port. The differences between profiles | 258 // we re-connect to any given server/port. The differences between profiles |
255 // (probablistically) prevent two profiles from colliding in their ephemeral | 259 // (probablistically) prevent two profiles from colliding in their ephemeral |
256 // port requests. | 260 // port requests. |
257 uint64 port_seed_; | 261 uint64 port_seed_; |
258 | 262 |
259 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 263 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
260 | 264 |
261 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 265 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
262 }; | 266 }; |
263 | 267 |
264 } // namespace net | 268 } // namespace net |
265 | 269 |
266 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 270 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
OLD | NEW |