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

Unified Diff: webkit/plugins/ppapi/ppb_transport_impl.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
« webkit/glue/p2p_transport.h ('K') | « webkit/glue/p2p_transport.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_transport_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_transport_impl.cc b/webkit/plugins/ppapi/ppb_transport_impl.cc
index 5836b5f60c773ab0c65ea088dae7790cdc6aa434..07792ca39d31fedffff0c275d3c6c2033775b556 100644
--- a/webkit/plugins/ppapi/ppb_transport_impl.cc
+++ b/webkit/plugins/ppapi/ppb_transport_impl.cc
@@ -226,6 +226,18 @@ int32_t PPB_Transport_Impl::SetProperty(PP_TransportProperty property,
break;
}
+ case PP_TRANSPORTPROPERTY_PORT_TYPES: {
+ if (!use_tcp_)
+ return PP_ERROR_BADARGUMENT;
Wez 2011/09/13 19:57:19 Why does this only apply to "tcp"-tyle channels?
Sergey Ulanov 2011/09/13 20:31:38 Done.
+
+ if (value.type != PP_VARTYPE_INT32) {
+ return PP_ERROR_BADARGUMENT;
+ }
+
+ config_.port_types = value.value.as_int;
+ break;
+ }
+
default:
return PP_ERROR_BADARGUMENT;
}
« webkit/glue/p2p_transport.h ('K') | « webkit/glue/p2p_transport.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698