OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef PPAPI_THUNK_WEBSOCKET_API_H_ | 5 #ifndef PPAPI_THUNK_WEBSOCKET_API_H_ |
6 #define PPAPI_THUNK_WEBSOCKET_API_H_ | 6 #define PPAPI_THUNK_WEBSOCKET_API_H_ |
7 | 7 |
8 #include "ppapi/c/pp_completion_callback.h" | 8 #include "ppapi/c/pp_completion_callback.h" |
9 #include "ppapi/c/dev/ppb_websocket_dev.h" | 9 #include "ppapi/c/dev/ppb_websocket_dev.h" |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 PP_CompletionCallback callback) = 0; | 26 PP_CompletionCallback callback) = 0; |
27 virtual int32_t SendMessage(PP_Var message) = 0; | 27 virtual int32_t SendMessage(PP_Var message) = 0; |
28 virtual uint64_t GetBufferedAmount() = 0; | 28 virtual uint64_t GetBufferedAmount() = 0; |
29 virtual uint16_t GetCloseCode() = 0; | 29 virtual uint16_t GetCloseCode() = 0; |
30 virtual PP_Var GetCloseReason() = 0; | 30 virtual PP_Var GetCloseReason() = 0; |
31 virtual PP_Bool GetCloseWasClean() = 0; | 31 virtual PP_Bool GetCloseWasClean() = 0; |
32 virtual PP_Var GetExtensions() = 0; | 32 virtual PP_Var GetExtensions() = 0; |
33 virtual PP_Var GetProtocol() = 0; | 33 virtual PP_Var GetProtocol() = 0; |
34 virtual PP_WebSocketReadyState_Dev GetReadyState() = 0; | 34 virtual PP_WebSocketReadyState_Dev GetReadyState() = 0; |
35 virtual PP_Var GetURL() = 0; | 35 virtual PP_Var GetURL() = 0; |
36 virtual PP_Bool SetBinaryType(PP_WebSocketBinaryType_Dev) = 0; | |
37 virtual PP_WebSocketBinaryType_Dev GetBinaryType() = 0; | |
38 }; | 36 }; |
39 | 37 |
40 } // namespace thunk | 38 } // namespace thunk |
41 } // namespace ppapi | 39 } // namespace ppapi |
42 | 40 |
43 #endif // PPAPI_THUNK_WEBSOCKET_API_H_ | 41 #endif // PPAPI_THUNK_WEBSOCKET_API_H_ |
OLD | NEW |