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

Unified Diff: ppapi/cpp/dev/transport_dev.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/cpp/dev/transport_dev.h ('k') | ppapi/tests/test_transport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/transport_dev.cc
diff --git a/ppapi/cpp/dev/transport_dev.cc b/ppapi/cpp/dev/transport_dev.cc
index b625a7d7c02645b118b0b2ec765efdd16965b1fb..e72583841e5a5a053a0a9b690a5d9a3480772829 100644
--- a/ppapi/cpp/dev/transport_dev.cc
+++ b/ppapi/cpp/dev/transport_dev.cc
@@ -36,6 +36,14 @@ bool Transport_Dev::IsWritable() {
get_interface<PPB_Transport_Dev>()->IsWritable(pp_resource()));
}
+int32_t Transport_Dev::SetProperty(PP_TransportProperty property,
+ const Var& value) {
+ if (!has_interface<PPB_Transport_Dev>())
+ return PP_ERROR_NOINTERFACE;
+ return get_interface<PPB_Transport_Dev>()->SetProperty(
+ pp_resource(), property, value.pp_var());
+}
+
int32_t Transport_Dev::Connect(const CompletionCallback& cc) {
if (!has_interface<PPB_Transport_Dev>())
return cc.MayForce(PP_ERROR_NOINTERFACE);
« no previous file with comments | « ppapi/cpp/dev/transport_dev.h ('k') | ppapi/tests/test_transport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698