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

Unified Diff: ppapi/thunk/ppb_ext_socket_thunk.cc

Issue 238923007: PPAPI: Format ppapi/thunk using clang-format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use Popen instead, force carriage returns in thunks Created 6 years, 8 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
Index: ppapi/thunk/ppb_ext_socket_thunk.cc
diff --git a/ppapi/thunk/ppb_ext_socket_thunk.cc b/ppapi/thunk/ppb_ext_socket_thunk.cc
index e0afd66e27e245aeba082a06d7447ed374f24026..7ae78b4c72c5f967e8c0be13eb1cc98cf706af98 100644
--- a/ppapi/thunk/ppb_ext_socket_thunk.cc
+++ b/ppapi/thunk/ppb_ext_socket_thunk.cc
@@ -325,9 +325,11 @@ int32_t SetMulticastTimeToLive(PP_Instance instance,
input_args.push_back(socket_id);
input_args.push_back(ttl);
output_args.push_back(result);
- return enter.SetResult(enter.functions()->CallBrowser(
- "socket.setMulticastTimeToLive", input_args, output_args,
- enter.callback()));
+ return enter.SetResult(
+ enter.functions()->CallBrowser("socket.setMulticastTimeToLive",
+ input_args,
+ output_args,
+ enter.callback()));
}
int32_t SetMulticastLoopbackMode(PP_Instance instance,
@@ -344,9 +346,11 @@ int32_t SetMulticastLoopbackMode(PP_Instance instance,
input_args.push_back(socket_id);
input_args.push_back(enabled);
output_args.push_back(result);
- return enter.SetResult(enter.functions()->CallBrowser(
- "socket.setMulticastLoopbackMode", input_args, output_args,
- enter.callback()));
+ return enter.SetResult(
+ enter.functions()->CallBrowser("socket.setMulticastLoopbackMode",
+ input_args,
+ output_args,
+ enter.callback()));
}
int32_t GetJoinedGroups(PP_Instance instance,
@@ -366,45 +370,18 @@ int32_t GetJoinedGroups(PP_Instance instance,
}
const PPB_Ext_Socket_Dev_0_1 g_ppb_ext_socket_dev_0_1_thunk = {
- &Create,
- &Destroy,
- &Connect,
- &Bind,
- &Disconnect,
- &Read,
- &Write,
- &RecvFrom,
- &SendTo,
- &Listen,
- &Accept,
- &SetKeepAlive,
- &SetNoDelay,
- &GetInfo,
- &GetNetworkList
-};
+ &Create, &Destroy, &Connect, &Bind, &Disconnect,
+ &Read, &Write, &RecvFrom, &SendTo, &Listen,
+ &Accept, &SetKeepAlive, &SetNoDelay, &GetInfo, &GetNetworkList};
const PPB_Ext_Socket_Dev_0_2 g_ppb_ext_socket_dev_0_2_thunk = {
- &Create,
- &Destroy,
- &Connect,
- &Bind,
- &Disconnect,
- &Read,
- &Write,
- &RecvFrom,
- &SendTo,
- &Listen,
- &Accept,
- &SetKeepAlive,
- &SetNoDelay,
- &GetInfo,
- &GetNetworkList,
- &JoinGroup,
- &LeaveGroup,
- &SetMulticastTimeToLive,
- &SetMulticastLoopbackMode,
- &GetJoinedGroups
-};
+ &Create, &Destroy, &Connect,
+ &Bind, &Disconnect, &Read,
+ &Write, &RecvFrom, &SendTo,
+ &Listen, &Accept, &SetKeepAlive,
+ &SetNoDelay, &GetInfo, &GetNetworkList,
+ &JoinGroup, &LeaveGroup, &SetMulticastTimeToLive,
+ &SetMulticastLoopbackMode, &GetJoinedGroups};
} // namespace
const PPB_Ext_Socket_Dev_0_1* GetPPB_Ext_Socket_Dev_0_1_Thunk() {

Powered by Google App Engine
This is Rietveld 408576698