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

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

Issue 944883003: QUIC - Cache the connection type and connection description. Make the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move description caching into a distinct class Created 5 years, 10 months 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
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 <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "net/base/address_list.h" 15 #include "net/base/address_list.h"
16 #include "net/base/completion_callback.h" 16 #include "net/base/completion_callback.h"
17 #include "net/base/host_port_pair.h" 17 #include "net/base/host_port_pair.h"
18 #include "net/base/net_log.h" 18 #include "net/base/net_log.h"
19 #include "net/base/network_change_notifier.h" 19 #include "net/base/network_change_notifier.h"
20 #include "net/cert/cert_database.h" 20 #include "net/cert/cert_database.h"
21 #include "net/proxy/proxy_server.h" 21 #include "net/proxy/proxy_server.h"
22 #include "net/quic/network_connection.h"
22 #include "net/quic/quic_config.h" 23 #include "net/quic/quic_config.h"
23 #include "net/quic/quic_crypto_stream.h" 24 #include "net/quic/quic_crypto_stream.h"
24 #include "net/quic/quic_http_stream.h" 25 #include "net/quic/quic_http_stream.h"
25 #include "net/quic/quic_protocol.h" 26 #include "net/quic/quic_protocol.h"
26 27
27 namespace net { 28 namespace net {
28 29
29 class CertVerifier; 30 class CertVerifier;
30 class ChannelIDService; 31 class ChannelIDService;
31 class ClientSocketFactory; 32 class ClientSocketFactory;
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 // we re-connect to any given server/port. The differences between profiles 334 // we re-connect to any given server/port. The differences between profiles
334 // (probablistically) prevent two profiles from colliding in their ephemeral 335 // (probablistically) prevent two profiles from colliding in their ephemeral
335 // port requests. 336 // port requests.
336 uint64 port_seed_; 337 uint64 port_seed_;
337 338
338 // Local address of socket that was created in CreateSession. 339 // Local address of socket that was created in CreateSession.
339 IPEndPoint local_address_; 340 IPEndPoint local_address_;
340 bool check_persisted_supports_quic_; 341 bool check_persisted_supports_quic_;
341 std::set<HostPortPair> quic_supported_servers_at_startup_; 342 std::set<HostPortPair> quic_supported_servers_at_startup_;
342 343
344 NetworkConnection network_connection_;
345
343 base::TaskRunner* task_runner_; 346 base::TaskRunner* task_runner_;
344 347
345 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 348 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
346 349
347 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 350 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
348 }; 351 };
349 352
350 } // namespace net 353 } // namespace net
351 354
352 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 355 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698