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

Unified Diff: net/http/disk_cache_based_quic_server_info.cc

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/http/disk_cache_based_quic_server_info.cc
diff --git a/net/http/disk_cache_based_quic_server_info.cc b/net/http/disk_cache_based_quic_server_info.cc
index 91625bc973cec0eee0174c9348fd858d127212f2..e9858071a504a938caca23514f7d04ffc10c6f72 100644
--- a/net/http/disk_cache_based_quic_server_info.cc
+++ b/net/http/disk_cache_based_quic_server_info.cc
@@ -12,6 +12,7 @@
#include "net/base/net_errors.h"
#include "net/http/http_cache.h"
#include "net/http/http_network_session.h"
+#include "net/quic/quic_session_key.h"
namespace net {
@@ -43,9 +44,9 @@ struct DiskCacheBasedQuicServerInfo::CacheOperationDataShim {
};
DiskCacheBasedQuicServerInfo::DiskCacheBasedQuicServerInfo(
- const std::string& hostname,
+ const QuicSessionKey& server_key,
HttpCache* http_cache)
- : QuicServerInfo(hostname),
+ : QuicServerInfo(server_key),
weak_factory_(this),
data_shim_(new CacheOperationDataShim()),
io_callback_(
@@ -55,7 +56,7 @@ DiskCacheBasedQuicServerInfo::DiskCacheBasedQuicServerInfo(
state_(GET_BACKEND),
ready_(false),
found_entry_(false),
- hostname_(hostname),
+ server_key_(server_key),
http_cache_(http_cache),
backend_(NULL),
entry_(NULL) {
@@ -113,7 +114,7 @@ DiskCacheBasedQuicServerInfo::~DiskCacheBasedQuicServerInfo() {
}
std::string DiskCacheBasedQuicServerInfo::key() const {
- return "quicserverinfo:" + hostname_;
+ return "quicserverinfo:" + server_key_.ToString();
}
void DiskCacheBasedQuicServerInfo::OnIOComplete(CacheOperationDataShim* unused,

Powered by Google App Engine
This is Rietveld 408576698