Chromium Code Reviews| 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 | 10 |
|
jar (doing other things)
2013/11/01 23:12:01
nit: go ahead and include <vector> here, and don't
ramant (doing other things)
2013/11/01 23:28:19
Done.
| |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "net/base/address_list.h" | 12 #include "net/base/address_list.h" |
| 13 #include "net/base/completion_callback.h" | 13 #include "net/base/completion_callback.h" |
| 14 #include "net/base/host_port_pair.h" | 14 #include "net/base/host_port_pair.h" |
| 15 #include "net/base/net_log.h" | 15 #include "net/base/net_log.h" |
| 16 #include "net/base/network_change_notifier.h" | 16 #include "net/base/network_change_notifier.h" |
| 17 #include "net/proxy/proxy_server.h" | 17 #include "net/proxy/proxy_server.h" |
| 18 #include "net/quic/quic_config.h" | 18 #include "net/quic/quic_config.h" |
| 19 #include "net/quic/quic_crypto_stream.h" | 19 #include "net/quic/quic_crypto_stream.h" |
| 20 #include "net/quic/quic_http_stream.h" | 20 #include "net/quic/quic_http_stream.h" |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 200 // TODO(rtenneti): Persist all_crypto_configs_ to disk and decide when to | 200 // TODO(rtenneti): Persist all_crypto_configs_ to disk and decide when to |
| 201 // clear the data in the map. | 201 // clear the data in the map. |
| 202 CryptoConfigMap all_crypto_configs_; | 202 CryptoConfigMap all_crypto_configs_; |
| 203 | 203 |
| 204 // Contains a map of servers which could share the same server config. Map | 204 // Contains a map of servers which could share the same server config. Map |
| 205 // from a Canonical host/port (host is some postfix of host names) to an | 205 // from a Canonical host/port (host is some postfix of host names) to an |
| 206 // actual origin, which has a plausible set of initial certificates (or at | 206 // actual origin, which has a plausible set of initial certificates (or at |
| 207 // least server public key). | 207 // least server public key). |
| 208 CanonicalHostMap canonical_hostname_to_origin_map_; | 208 CanonicalHostMap canonical_hostname_to_origin_map_; |
| 209 | 209 |
| 210 // Contains list of suffixes (for exmaple ".c.youtube.com", | |
| 211 // ".googlevideo.com") of cannoncial hostnames. | |
| 212 std::vector<std::string> cannoncial_suffixes_; | |
| 213 | |
| 210 QuicConfig config_; | 214 QuicConfig config_; |
| 211 | 215 |
| 212 JobMap active_jobs_; | 216 JobMap active_jobs_; |
| 213 JobRequestsMap job_requests_map_; | 217 JobRequestsMap job_requests_map_; |
| 214 RequestMap active_requests_; | 218 RequestMap active_requests_; |
| 215 | 219 |
| 216 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 220 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
| 217 | 221 |
| 218 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 222 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
| 219 }; | 223 }; |
| 220 | 224 |
| 221 } // namespace net | 225 } // namespace net |
| 222 | 226 |
| 223 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 227 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| OLD | NEW |