| Index: ppapi/thunk/ppb_tcp_socket_private_thunk.cc
|
| diff --git a/ppapi/thunk/ppb_tcp_socket_private_thunk.cc b/ppapi/thunk/ppb_tcp_socket_private_thunk.cc
|
| index 928f07381c8f7d491b37ebbf8e808dfcae1651ef..6bf779ce1897d7afbff1ab9cb114a30c21f67e0f 100644
|
| --- a/ppapi/thunk/ppb_tcp_socket_private_thunk.cc
|
| +++ b/ppapi/thunk/ppb_tcp_socket_private_thunk.cc
|
| @@ -73,8 +73,8 @@ int32_t SSLHandshake(PP_Resource tcp_socket,
|
| EnterTCP enter(tcp_socket, callback, true);
|
| if (enter.failed())
|
| return enter.retval();
|
| - return enter.SetResult(enter.object()->SSLHandshake(server_name, server_port,
|
| - enter.callback()));
|
| + return enter.SetResult(
|
| + enter.object()->SSLHandshake(server_name, server_port, enter.callback()));
|
| }
|
|
|
| PP_Resource GetServerCertificate(PP_Resource tcp_socket) {
|
| @@ -100,8 +100,8 @@ int32_t Read(PP_Resource tcp_socket,
|
| EnterTCP enter(tcp_socket, callback, true);
|
| if (enter.failed())
|
| return enter.retval();
|
| - return enter.SetResult(enter.object()->Read(buffer, bytes_to_read,
|
| - enter.callback()));
|
| + return enter.SetResult(
|
| + enter.object()->Read(buffer, bytes_to_read, enter.callback()));
|
| }
|
|
|
| int32_t Write(PP_Resource tcp_socket,
|
| @@ -111,8 +111,8 @@ int32_t Write(PP_Resource tcp_socket,
|
| EnterTCP enter(tcp_socket, callback, true);
|
| if (enter.failed())
|
| return enter.retval();
|
| - return enter.SetResult(enter.object()->Write(buffer, bytes_to_write,
|
| - enter.callback()));
|
| + return enter.SetResult(
|
| + enter.object()->Write(buffer, bytes_to_write, enter.callback()));
|
| }
|
|
|
| void Disconnect(PP_Resource tcp_socket) {
|
| @@ -133,48 +133,22 @@ int32_t SetOption(PP_Resource tcp_socket,
|
| }
|
|
|
| const PPB_TCPSocket_Private_0_3 g_ppb_tcp_socket_thunk_0_3 = {
|
| - &Create,
|
| - &IsTCPSocket,
|
| - &Connect,
|
| - &ConnectWithNetAddress,
|
| - &GetLocalAddress,
|
| - &GetRemoteAddress,
|
| - &SSLHandshake,
|
| - &Read,
|
| - &Write,
|
| - &Disconnect
|
| -};
|
| + &Create, &IsTCPSocket, &Connect, &ConnectWithNetAddress,
|
| + &GetLocalAddress, &GetRemoteAddress, &SSLHandshake, &Read,
|
| + &Write, &Disconnect};
|
|
|
| const PPB_TCPSocket_Private_0_4 g_ppb_tcp_socket_thunk_0_4 = {
|
| - &Create,
|
| - &IsTCPSocket,
|
| - &Connect,
|
| - &ConnectWithNetAddress,
|
| - &GetLocalAddress,
|
| - &GetRemoteAddress,
|
| - &SSLHandshake,
|
| - &GetServerCertificate,
|
| - &AddChainBuildingCertificate,
|
| - &Read,
|
| - &Write,
|
| - &Disconnect
|
| -};
|
| + &Create, &IsTCPSocket, &Connect,
|
| + &ConnectWithNetAddress, &GetLocalAddress, &GetRemoteAddress,
|
| + &SSLHandshake, &GetServerCertificate, &AddChainBuildingCertificate,
|
| + &Read, &Write, &Disconnect};
|
|
|
| const PPB_TCPSocket_Private_0_5 g_ppb_tcp_socket_thunk_0_5 = {
|
| - &Create,
|
| - &IsTCPSocket,
|
| - &Connect,
|
| - &ConnectWithNetAddress,
|
| - &GetLocalAddress,
|
| - &GetRemoteAddress,
|
| - &SSLHandshake,
|
| - &GetServerCertificate,
|
| - &AddChainBuildingCertificate,
|
| - &Read,
|
| - &Write,
|
| - &Disconnect,
|
| - &SetOption
|
| -};
|
| + &Create, &IsTCPSocket, &Connect,
|
| + &ConnectWithNetAddress, &GetLocalAddress, &GetRemoteAddress,
|
| + &SSLHandshake, &GetServerCertificate, &AddChainBuildingCertificate,
|
| + &Read, &Write, &Disconnect,
|
| + &SetOption};
|
|
|
| } // namespace
|
|
|
|
|