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

Unified Diff: ppapi/thunk/ppb_transport_thunk.cc

Issue 7713021: Add SetProperty() in the PPB_Transport_Dev interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 4 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/thunk/ppb_transport_api.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: ppapi/thunk/ppb_transport_thunk.cc
diff --git a/ppapi/thunk/ppb_transport_thunk.cc b/ppapi/thunk/ppb_transport_thunk.cc
index cf573c51d84a39628982fc50c7d30de534933fe3..b245514b0c1ebe88286ae9c95f5eff58757cf0f1 100644
--- a/ppapi/thunk/ppb_transport_thunk.cc
+++ b/ppapi/thunk/ppb_transport_thunk.cc
@@ -36,6 +36,14 @@ PP_Bool IsWritable(PP_Resource transport) {
return enter.object()->IsWritable();
}
+int32_t SetProperty(PP_Resource transport, PP_TransportProperty property,
+ PP_Var value) {
+ EnterTransport enter(transport, true);
+ if (enter.failed())
+ return PP_ERROR_BADRESOURCE;
+ return enter.object()->SetProperty(property, value);
+}
+
int32_t Connect(PP_Resource transport, PP_CompletionCallback callback) {
EnterTransport enter(transport, true);
if (enter.failed())
@@ -89,6 +97,7 @@ const PPB_Transport_Dev g_ppb_transport_thunk = {
&Create,
&IsTransport,
&IsWritable,
+ &SetProperty,
&Connect,
&GetNextAddress,
&ReceiveRemoteAddress,
« no previous file with comments | « ppapi/thunk/ppb_transport_api.h ('k') | webkit/glue/p2p_transport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698