Index: net/tools/quic/quic_client.h |
diff --git a/net/tools/quic/quic_client.h b/net/tools/quic/quic_client.h |
index aec66798ab70c7da6693e0206d60bf7ea27dc106..b928a97f90d2bcb231a70318301ff738b4b2a0f3 100644 |
--- a/net/tools/quic/quic_client.h |
+++ b/net/tools/quic/quic_client.h |
@@ -25,6 +25,7 @@ |
namespace net { |
class ProofVerifier; |
+class QuicSessionKey; |
namespace tools { |
@@ -47,11 +48,11 @@ class QuicClient : public EpollCallbackInterface, |
}; |
QuicClient(IPEndPoint server_address, |
- const string& server_hostname, |
+ const QuicSessionKey& session_key, |
const QuicVersionVector& supported_versions, |
bool print_response); |
QuicClient(IPEndPoint server_address, |
- const std::string& server_hostname, |
+ const QuicSessionKey& session_key, |
const QuicConfig& config, |
const QuicVersionVector& supported_versions); |
@@ -134,13 +135,11 @@ class QuicClient : public EpollCallbackInterface, |
int fd() { return fd_; } |
- string server_hostname() { |
- return server_hostname_; |
- } |
+ const QuicSessionKey& session_key() const { return session_key_; } |
// This should only be set before the initial Connect() |
- void set_server_hostname(const string& hostname) { |
- server_hostname_ = hostname; |
+ void set_session_key(const QuicSessionKey& session_key) { |
+ session_key_ = session_key; |
} |
// SetProofVerifier sets the ProofVerifier that will be used to verify the |
@@ -181,8 +180,8 @@ class QuicClient : public EpollCallbackInterface, |
// Address of the server. |
const IPEndPoint server_address_; |
- // Hostname of the server. This may be a DNS name or an IP address literal. |
- std::string server_hostname_; |
+ // |session_key_| is a tuple (is_https, hostname, port) of the server. |
+ QuicSessionKey session_key_; |
// config_ and crypto_config_ contain configuration and cached state about |
// servers. |