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

Unified Diff: net/http/http_network_layer.cc

Issue 6800009: Attn: Mike Belshe Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 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/http_network_layer.cc
===================================================================
--- net/http/http_network_layer.cc (revision 80449)
+++ net/http/http_network_layer.cc (working copy)
@@ -10,6 +10,7 @@
#include "base/string_util.h"
#include "net/http/http_network_session.h"
#include "net/http/http_network_transaction.h"
+#include "net/socket/sctp_support.h"
#include "net/spdy/spdy_framer.h"
#include "net/spdy/spdy_session.h"
#include "net/spdy/spdy_session_pool.h"
@@ -134,6 +135,21 @@
}
}
+void HttpNetworkLayer::EnableSctp(const std::string& sctp_mode) {
+ static const char kSctpControlStream[] = "control-stream";
+ static const char kNoSctpControlStream[] = "no-control-stream";
+
+ set_sctp_enabled();
+ if (sctp_mode == kSctpControlStream) {
+ set_sctp_control_stream_enabled();
+ } else if (sctp_mode == kNoSctpControlStream || sctp_mode == "") {
+ // noop
+ } else {
+ LOG(WARNING) << "Invalid SCTP mode -> " << sctp_mode << ". Defaulting to "
+ << "mode = no-control-stream.";
+ }
+}
+
//-----------------------------------------------------------------------------
int HttpNetworkLayer::CreateTransaction(scoped_ptr<HttpTransaction>* trans) {

Powered by Google App Engine
This is Rietveld 408576698