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

Unified Diff: net/quic/quic_session_key.h

Issue 192583004: QUIC - use QuicSessionKey tuple (host, port, is_https) instead of server_hostname (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with TOT Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: net/quic/quic_session_key.h
diff --git a/net/quic/quic_session_key.h b/net/quic/quic_session_key.h
index 486efd1cca8b6105f9b9c97f99c5023fb38814d7..398fc00b4b274a46141c8456f46fb5900ffdfb7e 100644
--- a/net/quic/quic_session_key.h
+++ b/net/quic/quic_session_key.h
@@ -17,6 +17,7 @@ class NET_EXPORT_PRIVATE QuicSessionKey {
public:
QuicSessionKey();
QuicSessionKey(const HostPortPair& host_port_pair, bool is_https);
+ QuicSessionKey(const std::string& host, uint16 port, bool is_https);
~QuicSessionKey();
// Needed to be an element of std::set.
@@ -31,6 +32,10 @@ class NET_EXPORT_PRIVATE QuicSessionKey {
return host_port_pair_;
}
+ const std::string& host() const { return host_port_pair_.host(); }
+
+ uint16 port() const { return host_port_pair_.port(); }
+
bool is_https() const { return is_https_; }
private:

Powered by Google App Engine
This is Rietveld 408576698