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. |