Chromium Code Reviews| Index: net/quic/crypto/quic_crypto_client_config.h |
| diff --git a/net/quic/crypto/quic_crypto_client_config.h b/net/quic/crypto/quic_crypto_client_config.h |
| index 4221ada97036ed7a05b89c658fc66a31d8352dc1..2944c4cd519be2eb76973791fe3b45762b7849ce 100644 |
| --- a/net/quic/crypto/quic_crypto_client_config.h |
| +++ b/net/quic/crypto/quic_crypto_client_config.h |
| @@ -143,18 +143,19 @@ class NET_EXPORT_PRIVATE QuicCryptoClientConfig : public QuicCryptoConfig { |
| // Sets the members to reasonable, default values. |
| void SetDefaults(); |
| - // Create returns a CachedState for the given hostname. It creates a |
| + // Create returns a CachedState for the given hostname and port. It creates a |
| // CachedState and caches it. If |quic_server_info_factory| is not NULL, then |
| // it is used to create QuicServerInfo which is used to fetch crypto config |
| // information from disk for the given hostname. |
| CachedState* Create(const std::string& server_hostname, |
| + uint16 port, |
|
wtc
2014/03/11 01:41:39
Can we replace the two argument with a HostPortPai
Ryan Hamilton
2014/03/11 15:47:43
As I understand it, HostPortPair is a chrome-ism w
ramant (doing other things)
2014/03/13 01:50:12
Used QuicSessionKey and will port HostPortPair to
ramant (doing other things)
2014/03/13 01:50:12
Will port HostPortPair as we merge this CL into sh
|
| QuicServerInfoFactory* quic_server_info_factory); |
| - // LookupOrCreate returns a CachedState for the given hostname. If no such |
| - // CachedState currently exists, it will be created and cached. |
| + // LookupOrCreate returns a CachedState for the given hostname and port. If no |
| + // such CachedState currently exists, it will be created and cached. |
| // TODO(rtenneti): fix the server code and pass QuicServerInfoFactory as |
| // argument. |
| - CachedState* LookupOrCreate(const std::string& server_hostname); |
| + CachedState* LookupOrCreate(const std::string& server_hostname, uint16 port); |
| // FillInchoateClientHello sets |out| to be a CHLO message that elicits a |
| // source-address token or SCFG from a server. If |cached| is non-NULL, the |
| @@ -232,11 +233,13 @@ class NET_EXPORT_PRIVATE QuicCryptoClientConfig : public QuicCryptoConfig { |
| void SetChannelIDSigner(ChannelIDSigner* signer); |
| // Initialize the CachedState from |canonical_crypto_config| for the |
| - // |canonical_server_hostname| as the initial CachedState for |
| - // |server_hostname|. We will copy config data only if |
| - // |canonical_crypto_config| has valid proof. |
| + // |canonical_server_hostname| and |canonical_server_port| as the initial |
| + // CachedState for |server_hostname| and |server_port|. We will copy config |
| + // data only if |canonical_crypto_config| has valid proof. |
| void InitializeFrom(const std::string& server_hostname, |
| + uint16 server_port, |
| const std::string& canonical_server_hostname, |
| + uint16 canonical_server_port, |
| QuicCryptoClientConfig* canonical_crypto_config); |
| private: |