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

Unified Diff: ppapi/thunk/ppb_websocket_api.h

Issue 10081020: PPAPI: Make blocking completion callbacks work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated TestURLLoader to test blocking callbacks. Created 8 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_websocket_api.h
diff --git a/ppapi/thunk/ppb_websocket_api.h b/ppapi/thunk/ppb_websocket_api.h
index 04fc9604beb71c5d054e092a7070bf272cd6aa17..ae67ccff92ed060956bae7598349b4025c414373 100644
--- a/ppapi/thunk/ppb_websocket_api.h
+++ b/ppapi/thunk/ppb_websocket_api.h
@@ -7,6 +7,7 @@
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/ppb_websocket.h"
+#include "ppapi/shared_impl/api_callback_type.h"
namespace ppapi {
namespace thunk {
@@ -25,19 +26,19 @@ class PPB_WebSocket_API {
virtual int32_t Connect(PP_Var url,
const PP_Var protocols[],
uint32_t protocol_count,
- PP_CompletionCallback callback) = 0;
+ ApiCallbackType callback) = 0;
// Closes the established connection with specified |code| and |reason|.
// Returns an int32_t error code from pp_errors.h.
virtual int32_t Close(uint16_t code,
PP_Var reason,
- PP_CompletionCallback callback) = 0;
+ ApiCallbackType callback) = 0;
// Receives a message from the WebSocket server. Caller must keep specified
// |message| object as valid until completion callback is invoked. Returns an
// int32_t error code from pp_errors.h.
virtual int32_t ReceiveMessage(PP_Var* message,
- PP_CompletionCallback callback) = 0;
+ ApiCallbackType callback) = 0;
// Sends a message to the WebSocket server. Returns an int32_t error code
// from pp_errors.h.

Powered by Google App Engine
This is Rietveld 408576698