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

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

Issue 1216943003: Use the CT policy enforcer for QUIC, if specified. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/network_change_notifier.h" 18 #include "net/base/network_change_notifier.h"
19 #include "net/cert/cert_database.h" 19 #include "net/cert/cert_database.h"
20 #include "net/log/net_log.h" 20 #include "net/log/net_log.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/network_connection.h"
23 #include "net/quic/quic_config.h" 23 #include "net/quic/quic_config.h"
24 #include "net/quic/quic_crypto_stream.h" 24 #include "net/quic/quic_crypto_stream.h"
25 #include "net/quic/quic_http_stream.h" 25 #include "net/quic/quic_http_stream.h"
26 #include "net/quic/quic_protocol.h" 26 #include "net/quic/quic_protocol.h"
27 27
28 namespace net { 28 namespace net {
29 29
30 class CertPolicyEnforcer;
30 class CertVerifier; 31 class CertVerifier;
31 class ChannelIDService; 32 class ChannelIDService;
32 class ClientSocketFactory; 33 class ClientSocketFactory;
33 class HostResolver; 34 class HostResolver;
34 class HttpServerProperties; 35 class HttpServerProperties;
35 class QuicClock; 36 class QuicClock;
36 class QuicClientSession; 37 class QuicClientSession;
37 class QuicConnectionHelper; 38 class QuicConnectionHelper;
38 class QuicCryptoClientStreamFactory; 39 class QuicCryptoClientStreamFactory;
39 class QuicRandom; 40 class QuicRandom;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // QuicClientSessions. 97 // QuicClientSessions.
97 class NET_EXPORT_PRIVATE QuicStreamFactory 98 class NET_EXPORT_PRIVATE QuicStreamFactory
98 : public NetworkChangeNotifier::IPAddressObserver, 99 : public NetworkChangeNotifier::IPAddressObserver,
99 public CertDatabase::Observer { 100 public CertDatabase::Observer {
100 public: 101 public:
101 QuicStreamFactory( 102 QuicStreamFactory(
102 HostResolver* host_resolver, 103 HostResolver* host_resolver,
103 ClientSocketFactory* client_socket_factory, 104 ClientSocketFactory* client_socket_factory,
104 base::WeakPtr<HttpServerProperties> http_server_properties, 105 base::WeakPtr<HttpServerProperties> http_server_properties,
105 CertVerifier* cert_verifier, 106 CertVerifier* cert_verifier,
107 CertPolicyEnforcer* cert_policy_enforcer,
106 ChannelIDService* channel_id_service, 108 ChannelIDService* channel_id_service,
107 TransportSecurityState* transport_security_state, 109 TransportSecurityState* transport_security_state,
108 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory, 110 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory,
109 QuicRandom* random_generator, 111 QuicRandom* random_generator,
110 QuicClock* clock, 112 QuicClock* clock,
111 size_t max_packet_length, 113 size_t max_packet_length,
112 const std::string& user_agent_id, 114 const std::string& user_agent_id,
113 const QuicVersionVector& supported_versions, 115 const QuicVersionVector& supported_versions,
114 bool enable_port_selection, 116 bool enable_port_selection,
115 bool always_require_handshake_confirmation, 117 bool always_require_handshake_confirmation,
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 base::TaskRunner* task_runner_; 391 base::TaskRunner* task_runner_;
390 392
391 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 393 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
392 394
393 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 395 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
394 }; 396 };
395 397
396 } // namespace net 398 } // namespace net
397 399
398 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 400 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698