| Index: ppapi/thunk/ppb_udp_socket_thunk.cc
|
| diff --git a/ppapi/thunk/ppb_udp_socket_thunk.cc b/ppapi/thunk/ppb_udp_socket_thunk.cc
|
| index 212ff93f6fa730141e09942868c9f1719ccb3b64..54b1bfcad6d50fd7f135ccf37a071acc31f4785b 100644
|
| --- a/ppapi/thunk/ppb_udp_socket_thunk.cc
|
| +++ b/ppapi/thunk/ppb_udp_socket_thunk.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -// From ppb_udp_socket.idl modified Tue Aug 20 08:13:36 2013.
|
| +// From ppb_udp_socket.idl modified Fri Nov 7 15:04:15 2014.
|
|
|
| #include "ppapi/c/pp_completion_callback.h"
|
| #include "ppapi/c/pp_errors.h"
|
| @@ -87,6 +87,19 @@ void Close(PP_Resource udp_socket) {
|
| enter.object()->Close();
|
| }
|
|
|
| +int32_t SetOption1_0(PP_Resource udp_socket,
|
| + PP_UDPSocket_Option name,
|
| + struct PP_Var value,
|
| + struct PP_CompletionCallback callback) {
|
| + VLOG(4) << "PPB_UDPSocket::SetOption1_0()";
|
| + EnterResource<PPB_UDPSocket_API> enter(udp_socket, callback, true);
|
| + if (enter.failed())
|
| + return enter.retval();
|
| + return enter.SetResult(enter.object()->SetOption1_0(name,
|
| + value,
|
| + enter.callback()));
|
| +}
|
| +
|
| int32_t SetOption(PP_Resource udp_socket,
|
| PP_UDPSocket_Option name,
|
| struct PP_Var value,
|
| @@ -108,6 +121,17 @@ const PPB_UDPSocket_1_0 g_ppb_udpsocket_thunk_1_0 = {
|
| &RecvFrom,
|
| &SendTo,
|
| &Close,
|
| + &SetOption1_0
|
| +};
|
| +
|
| +const PPB_UDPSocket_1_1 g_ppb_udpsocket_thunk_1_1 = {
|
| + &Create,
|
| + &IsUDPSocket,
|
| + &Bind,
|
| + &GetBoundAddress,
|
| + &RecvFrom,
|
| + &SendTo,
|
| + &Close,
|
| &SetOption
|
| };
|
|
|
| @@ -117,5 +141,9 @@ PPAPI_THUNK_EXPORT const PPB_UDPSocket_1_0* GetPPB_UDPSocket_1_0_Thunk() {
|
| return &g_ppb_udpsocket_thunk_1_0;
|
| }
|
|
|
| +PPAPI_THUNK_EXPORT const PPB_UDPSocket_1_1* GetPPB_UDPSocket_1_1_Thunk() {
|
| + return &g_ppb_udpsocket_thunk_1_1;
|
| +}
|
| +
|
| } // namespace thunk
|
| } // namespace ppapi
|
|
|