summaryrefslogtreecommitdiffstats
path: root/net/quic/quic_stream_factory.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/quic/quic_stream_factory.h')
-rw-r--r--net/quic/quic_stream_factory.h38
1 files changed, 4 insertions, 34 deletions
diff --git a/net/quic/quic_stream_factory.h b/net/quic/quic_stream_factory.h
index 61806a7..44686c8 100644
--- a/net/quic/quic_stream_factory.h
+++ b/net/quic/quic_stream_factory.h
@@ -55,7 +55,6 @@ class NET_EXPORT_PRIVATE QuicStreamRequest {
int Request(const HostPortPair& host_port_pair,
bool is_https,
base::StringPiece method,
- CertVerifier* cert_verifier,
const BoundNetLog& net_log,
const CompletionCallback& callback);
@@ -73,7 +72,6 @@ class NET_EXPORT_PRIVATE QuicStreamRequest {
QuicStreamFactory* factory_;
HostPortPair host_port_pair_;
bool is_https_;
- CertVerifier* cert_verifier_;
BoundNetLog net_log_;
CompletionCallback callback_;
scoped_ptr<QuicHttpStream> stream_;
@@ -91,6 +89,7 @@ class NET_EXPORT_PRIVATE QuicStreamFactory
HostResolver* host_resolver,
ClientSocketFactory* client_socket_factory,
base::WeakPtr<HttpServerProperties> http_server_properties,
+ CertVerifier* cert_verifier,
QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory,
QuicRandom* random_generator,
QuicClock* clock,
@@ -110,7 +109,6 @@ class NET_EXPORT_PRIVATE QuicStreamFactory
int Create(const HostPortPair& host_port_pair,
bool is_https,
base::StringPiece method,
- CertVerifier* cert_verifier,
const BoundNetLog& net_log,
QuicStreamRequest* request);
@@ -187,7 +185,6 @@ class NET_EXPORT_PRIVATE QuicStreamFactory
typedef std::set<QuicClientSession*> SessionSet;
typedef std::map<IpAliasKey, SessionSet> IPAliasMap;
typedef std::map<QuicSessionKey, QuicCryptoClientConfig*> CryptoConfigMap;
- typedef std::map<QuicSessionKey, QuicSessionKey> CanonicalHostMap;
typedef std::map<QuicSessionKey, Job*> JobMap;
typedef std::map<QuicStreamRequest*, Job*> RequestMap;
typedef std::set<QuicStreamRequest*> RequestSet;
@@ -205,7 +202,6 @@ class NET_EXPORT_PRIVATE QuicStreamFactory
bool HasActiveJob(const QuicSessionKey& session_key) const;
int CreateSession(const HostPortPair& host_port_pair,
bool is_https,
- CertVerifier* cert_verifier,
scoped_ptr<QuicServerInfo> quic_server_info,
const AddressList& address_list,
const BoundNetLog& net_log,
@@ -213,20 +209,9 @@ class NET_EXPORT_PRIVATE QuicStreamFactory
void ActivateSession(const QuicSessionKey& key,
QuicClientSession* session);
- QuicCryptoClientConfig* GetOrCreateCryptoConfig(
- const QuicSessionKey& session_key);
-
- // If the suffix of the hostname in |session_key| is in |canoncial_suffixes_|,
- // then populate |crypto_config| with a canonical server config data from
- // |canonical_hostname_to_origin_map_| for that suffix.
- void PopulateFromCanonicalConfig(
- const QuicSessionKey& session_key,
- QuicCryptoClientConfig* crypto_config);
-
// Initializes the cached state associated with |session_key| in
- // |crypto_config| with the information in |server_info|.
+ // |crypto_config_| with the information in |server_info|.
void InitializeCachedState(const QuicSessionKey& session_key,
- QuicCryptoClientConfig* crypto_config,
const scoped_ptr<QuicServerInfo>& server_info);
void ExpireBrokenAlternateProtocolMappings();
@@ -236,6 +221,7 @@ class NET_EXPORT_PRIVATE QuicStreamFactory
HostResolver* host_resolver_;
ClientSocketFactory* client_socket_factory_;
base::WeakPtr<HttpServerProperties> http_server_properties_;
+ CertVerifier* cert_verifier_;
QuicServerInfoFactory* quic_server_info_factory_;
QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory_;
QuicRandom* random_generator_;
@@ -258,23 +244,6 @@ class NET_EXPORT_PRIVATE QuicStreamFactory
// Origins which have gone away recently.
AliasSet gone_away_aliases_;
- // Contains owning pointers to QuicCryptoClientConfig. QuicCryptoClientConfig
- // contains configuration and cached state about servers.
- // TODO(rtenneti): Persist all_crypto_configs_ to disk and decide when to
- // clear the data in the map.
- CryptoConfigMap all_crypto_configs_;
-
- // Contains a map of servers which could share the same server config. Map
- // from a Canonical host/port/scheme (host is some postfix of host names) to
- // an actual origin, which has a plausible set of initial certificates (or at
- // least server public key).
- CanonicalHostMap canonical_hostname_to_origin_map_;
-
- // Contains list of suffixes (for exmaple ".c.youtube.com",
- // ".googlevideo.com") of canoncial hostnames.
- std::vector<std::string> canoncial_suffixes_;
-
-
// List of broken host:ports and the times when they can be expired.
struct BrokenAlternateProtocolEntry {
HostPortPair origin;
@@ -290,6 +259,7 @@ class NET_EXPORT_PRIVATE QuicStreamFactory
BrokenAlternateProtocolMap broken_alternate_protocol_map_;
QuicConfig config_;
+ QuicCryptoClientConfig crypto_config_;
JobMap active_jobs_;
JobRequestsMap job_requests_map_;