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

Unified Diff: net/http/http_network_layer.cc

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_network_layer.cc
diff --git a/net/http/http_network_layer.cc b/net/http/http_network_layer.cc
index b326438d2950b2c2a8f0887cf3ce4b5682a2a720..4989b5de5b927c0746aabdd24b25bc1d62cdb6b3 100644
--- a/net/http/http_network_layer.cc
+++ b/net/http/http_network_layer.cc
@@ -11,6 +11,7 @@
#include "net/http/http_network_session.h"
#include "net/http/http_network_transaction.h"
#include "net/http/http_server_properties_impl.h"
+#include "net/http/http_stream_factory_impl_job.h"
#include "net/spdy/spdy_framer.h"
#include "net/spdy/spdy_session.h"
#include "net/spdy/spdy_session_pool.h"
@@ -100,6 +101,14 @@ void HttpNetworkLayer::EnableSpdy(const std::string& mode) {
}
}
+// static
+void HttpNetworkLayer::EnableQuic(const std::string& value) {
+ int port;
+ if (base::StringToInt(value, &port) && port > 0) {
+ HttpStreamFactory::set_force_quic_port(port);
+ }
+}
+
//-----------------------------------------------------------------------------
int HttpNetworkLayer::CreateTransaction(scoped_ptr<HttpTransaction>* trans,

Powered by Google App Engine
This is Rietveld 408576698