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

Unified Diff: net/quic/quic_stream_factory.h

Issue 1540463003: Change the interface of GetAlternativeServicesFor, always return the best Alt-Svc entry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change hanging_data_ to vector Created 4 years, 11 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_stream_factory.h
diff --git a/net/quic/quic_stream_factory.h b/net/quic/quic_stream_factory.h
index fd317d669d690757c537aae0a95b21f20f763961..8ce70a9b6703e307282519e631be0bc6d7b4b84e 100644
--- a/net/quic/quic_stream_factory.h
+++ b/net/quic/quic_stream_factory.h
@@ -23,6 +23,7 @@
#include "net/base/host_port_pair.h"
#include "net/base/network_change_notifier.h"
#include "net/cert/cert_database.h"
+#include "net/http/http_server_properties.h"
#include "net/log/net_log.h"
#include "net/proxy/proxy_server.h"
#include "net/quic/network_connection.h"
@@ -151,6 +152,12 @@ class NET_EXPORT_PRIVATE QuicStreamFactory
const QuicTagVector& connection_options);
~QuicStreamFactory() override;
+ // Returns true if there is an existing session to |server_id| which can be
+ // used for request to |origin_host|.
+ bool CanUseExistingSession(QuicServerId server_id,
+ PrivacyMode privacy_mode,
+ StringPiece origin_host);
+
// Creates a new QuicHttpStream to |host_port_pair| which will be
// owned by |request|.
// If a matching session already exists, this method will return OK. If no

Powered by Google App Engine
This is Rietveld 408576698