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

Unified Diff: ppapi/thunk/ppb_udp_socket_thunk.cc

Issue 238923007: PPAPI: Format ppapi/thunk using clang-format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 1 month 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/thunk/ppb_truetype_font_dev_thunk.cc ('k') | ppapi/thunk/ppb_uma_private_thunk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7391526f682b431595927d5f1b30e066df752ee0 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 Mon Jun 24 15:10:54 2013.
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/pp_errors.h"
@@ -58,10 +58,8 @@ int32_t RecvFrom(PP_Resource udp_socket,
EnterResource<PPB_UDPSocket_API> enter(udp_socket, callback, true);
if (enter.failed())
return enter.retval();
- return enter.SetResult(enter.object()->RecvFrom(buffer,
- num_bytes,
- addr,
- enter.callback()));
+ return enter.SetResult(
+ enter.object()->RecvFrom(buffer, num_bytes, addr, enter.callback()));
}
int32_t SendTo(PP_Resource udp_socket,
@@ -73,10 +71,8 @@ int32_t SendTo(PP_Resource udp_socket,
EnterResource<PPB_UDPSocket_API> enter(udp_socket, callback, true);
if (enter.failed())
return enter.retval();
- return enter.SetResult(enter.object()->SendTo(buffer,
- num_bytes,
- addr,
- enter.callback()));
+ return enter.SetResult(
+ enter.object()->SendTo(buffer, num_bytes, addr, enter.callback()));
}
void Close(PP_Resource udp_socket) {
@@ -95,21 +91,18 @@ int32_t SetOption(PP_Resource udp_socket,
EnterResource<PPB_UDPSocket_API> enter(udp_socket, callback, true);
if (enter.failed())
return enter.retval();
- return enter.SetResult(enter.object()->SetOption(name,
- value,
- enter.callback()));
+ return enter.SetResult(
+ enter.object()->SetOption(name, value, enter.callback()));
}
-const PPB_UDPSocket_1_0 g_ppb_udpsocket_thunk_1_0 = {
- &Create,
- &IsUDPSocket,
- &Bind,
- &GetBoundAddress,
- &RecvFrom,
- &SendTo,
- &Close,
- &SetOption
-};
+const PPB_UDPSocket_1_0 g_ppb_udpsocket_thunk_1_0 = {&Create,
+ &IsUDPSocket,
+ &Bind,
+ &GetBoundAddress,
+ &RecvFrom,
+ &SendTo,
+ &Close,
+ &SetOption};
} // namespace
« no previous file with comments | « ppapi/thunk/ppb_truetype_font_dev_thunk.cc ('k') | ppapi/thunk/ppb_uma_private_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698