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

Unified Diff: remoting/protocol/pepper_stream_channel.cc

Issue 7888022: Add DISABLE_TCP_TRANSPORT flag in the Transport API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 3 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
« no previous file with comments | « ppapi/c/dev/ppb_transport_dev.h ('k') | webkit/glue/p2p_transport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/pepper_stream_channel.cc
diff --git a/remoting/protocol/pepper_stream_channel.cc b/remoting/protocol/pepper_stream_channel.cc
index e6b07d8f023d105d29d33da1cb61f848a996cc6e..1508ca3dd2bbea39234391b1893ad2851789fff7 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_);
« no previous file with comments | « ppapi/c/dev/ppb_transport_dev.h ('k') | webkit/glue/p2p_transport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698