Chromium Code Reviews| Index: ppapi/shared_impl/private/udp_socket_private_impl.cc |
| diff --git a/ppapi/shared_impl/private/udp_socket_private_impl.cc b/ppapi/shared_impl/private/udp_socket_private_impl.cc |
| index 9b509e1f307cf8daf413908e531a4a7b27012ce3..a529137f16969a1d6eb3f7bf0c23223096a5aa0c 100644 |
| --- a/ppapi/shared_impl/private/udp_socket_private_impl.cc |
| +++ b/ppapi/shared_impl/private/udp_socket_private_impl.cc |
| @@ -40,6 +40,16 @@ UDPSocketPrivateImpl::AsPPB_UDPSocket_Private_API() { |
| return this; |
| } |
| +int32_t UDPSocketPrivateImpl::SetSocketFeature(PP_UDPSocketFeature_Private name, |
| + PP_Var value) { |
| + if (bound_ || closed_) |
| + return PP_ERROR_FAILED; |
| + |
| + // Send the request, no response needed. |
| + SendSetSocketFeature(name, value); |
|
brettw
2012/08/22 22:45:21
If you want to keep this function returning int32_
ygorshenin1
2012/08/23 09:48:40
Done.
|
| + return PP_OK; |
| +} |
| + |
| int32_t UDPSocketPrivateImpl::Bind(const PP_NetAddress_Private* addr, |
| scoped_refptr<TrackedCallback> callback) { |
| if (!addr) |