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

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

Issue 48893003: QUIC - added googlevideo.com to the list of cannonical hostnames to (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merging with tip Created 7 years, 1 month 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 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
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_
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