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

Unified Diff: net/http/http_stream_factory.h

Issue 11416058: Integrating the QuicStreamFactory into the network stack. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Done Created 8 years, 1 month 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/http_stream_factory.h
diff --git a/net/http/http_stream_factory.h b/net/http/http_stream_factory.h
index 5f6ef2f8265fabf07ec887020a1ba5e3ef8cbf5b..dabe9121fe25bb76074d1520a928d6f9d9199cff 100644
--- a/net/http/http_stream_factory.h
+++ b/net/http/http_stream_factory.h
@@ -247,6 +247,14 @@ class NET_EXPORT HttpStreamFactory {
return *next_protos_;
}
+ // Sets QUIC to be used for all requests on the specified port.
+ static void set_force_quic_port(int port) {
+ force_quic_port_ = port;
+ }
+ static int force_quic_port() {
+ return force_quic_port_;
+ }
+
protected:
HttpStreamFactory();
@@ -257,6 +265,7 @@ class NET_EXPORT HttpStreamFactory {
static bool use_alternate_protocols_;
static bool force_spdy_over_ssl_;
static bool force_spdy_always_;
+ static int force_quic_port_;
static std::list<HostPortPair>* forced_spdy_exclusions_;
DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory);

Powered by Google App Engine
This is Rietveld 408576698