| 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) {
|
|
|