summaryrefslogtreecommitdiffstats
path: root/remoting
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-21 00:21:06 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-21 00:21:06 +0000
commit00e39bfff43983a6b8e45842482b35e557f5bffd (patch)
treee5f7cd40af6f5d41a011b1530e2ae0c400e177b1 /remoting
parentc8a066de678599513b366931c56cee86b2190129 (diff)
downloadchromium_src-00e39bfff43983a6b8e45842482b35e557f5bffd.zip
chromium_src-00e39bfff43983a6b8e45842482b35e557f5bffd.tar.gz
chromium_src-00e39bfff43983a6b8e45842482b35e557f5bffd.tar.bz2
Add DISABLE_TCP_TRANSPORT flag in the Transport API.
The new property allows disabling TCP-based transport ports which improves performance for stream connections. BUG=41776 TEST=None Review URL: http://codereview.chromium.org/7888022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102060 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r--remoting/protocol/pepper_stream_channel.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/remoting/protocol/pepper_stream_channel.cc b/remoting/protocol/pepper_stream_channel.cc
index e6b07d8..1508ca3 100644
--- a/remoting/protocol/pepper_stream_channel.cc
+++ b/remoting/protocol/pepper_stream_channel.cc
@@ -143,6 +143,11 @@ void PepperStreamChannel::Connect(pp::Instance* pp_instance,
}
}
+ if (transport->SetProperty(PP_TRANSPORTPROPERTY_DISABLE_TCP_TRANSPORT,
+ pp::Var(true)) != PP_OK) {
+ LOG(ERROR) << "Failed to set DISABLE_TCP_TRANSPORT flag.";
+ }
+
channel_ = new PepperTransportSocketAdapter(transport, name_, this);
owned_channel_.reset(channel_);