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

Unified Diff: ppapi/thunk/ppb_websocket_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_view_thunk.cc ('k') | ppapi/thunk/ppb_widget_dev_thunk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_websocket_thunk.cc
diff --git a/ppapi/thunk/ppb_websocket_thunk.cc b/ppapi/thunk/ppb_websocket_thunk.cc
index fa7ed561643b120f5e70b918e9fd1282832fcc23..a632305e7fad7bd4f0cc38b1516aff904284d78b 100644
--- a/ppapi/thunk/ppb_websocket_thunk.cc
+++ b/ppapi/thunk/ppb_websocket_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_websocket.idl modified Tue Aug 20 08:13:36 2013.
+// From ppb_websocket.idl modified Mon May 6 10:11:29 2013.
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/pp_errors.h"
@@ -40,9 +40,7 @@ int32_t Connect(PP_Resource web_socket,
EnterResource<PPB_WebSocket_API> enter(web_socket, callback, false);
if (enter.failed())
return enter.retval();
- return enter.SetResult(enter.object()->Connect(url,
- protocols,
- protocol_count,
+ return enter.SetResult(enter.object()->Connect(url, protocols, protocol_count,
enter.callback()));
}
@@ -64,8 +62,8 @@ int32_t ReceiveMessage(PP_Resource web_socket,
EnterResource<PPB_WebSocket_API> enter(web_socket, callback, false);
if (enter.failed())
return enter.retval();
- return enter.SetResult(enter.object()->ReceiveMessage(message,
- enter.callback()));
+ return enter.SetResult(
+ enter.object()->ReceiveMessage(message, enter.callback()));
}
int32_t SendMessage(PP_Resource web_socket, struct PP_Var message) {
@@ -140,22 +138,20 @@ struct PP_Var GetURL(PP_Resource web_socket) {
return enter.object()->GetURL();
}
-const PPB_WebSocket_1_0 g_ppb_websocket_thunk_1_0 = {
- &Create,
- &IsWebSocket,
- &Connect,
- &Close,
- &ReceiveMessage,
- &SendMessage,
- &GetBufferedAmount,
- &GetCloseCode,
- &GetCloseReason,
- &GetCloseWasClean,
- &GetExtensions,
- &GetProtocol,
- &GetReadyState,
- &GetURL
-};
+const PPB_WebSocket_1_0 g_ppb_websocket_thunk_1_0 = {&Create,
+ &IsWebSocket,
+ &Connect,
+ &Close,
+ &ReceiveMessage,
+ &SendMessage,
+ &GetBufferedAmount,
+ &GetCloseCode,
+ &GetCloseReason,
+ &GetCloseWasClean,
+ &GetExtensions,
+ &GetProtocol,
+ &GetReadyState,
+ &GetURL};
} // namespace
« no previous file with comments | « ppapi/thunk/ppb_view_thunk.cc ('k') | ppapi/thunk/ppb_widget_dev_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698