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