OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PPB_UDP_SOCKET_API_H_ | 5 #ifndef PPAPI_THUNK_PPB_UDP_SOCKET_API_H_ |
6 #define PPAPI_THUNK_PPB_UDP_SOCKET_API_H_ | 6 #define PPAPI_THUNK_PPB_UDP_SOCKET_API_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "ppapi/c/ppb_udp_socket.h" | 9 #include "ppapi/c/ppb_udp_socket.h" |
10 #include "ppapi/thunk/ppapi_thunk_export.h" | 10 #include "ppapi/thunk/ppapi_thunk_export.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 virtual PP_Resource GetBoundAddress() = 0; | 24 virtual PP_Resource GetBoundAddress() = 0; |
25 virtual int32_t RecvFrom(char* buffer, | 25 virtual int32_t RecvFrom(char* buffer, |
26 int32_t num_bytes, | 26 int32_t num_bytes, |
27 PP_Resource* addr, | 27 PP_Resource* addr, |
28 scoped_refptr<TrackedCallback> callback) = 0; | 28 scoped_refptr<TrackedCallback> callback) = 0; |
29 virtual int32_t SendTo(const char* buffer, | 29 virtual int32_t SendTo(const char* buffer, |
30 int32_t num_bytes, | 30 int32_t num_bytes, |
31 PP_Resource addr, | 31 PP_Resource addr, |
32 scoped_refptr<TrackedCallback> callback) = 0; | 32 scoped_refptr<TrackedCallback> callback) = 0; |
33 virtual void Close() = 0; | 33 virtual void Close() = 0; |
| 34 virtual int32_t SetOption1_0(PP_UDPSocket_Option name, |
| 35 const PP_Var& value, |
| 36 scoped_refptr<TrackedCallback> callback) = 0; |
34 virtual int32_t SetOption(PP_UDPSocket_Option name, | 37 virtual int32_t SetOption(PP_UDPSocket_Option name, |
35 const PP_Var& value, | 38 const PP_Var& value, |
36 scoped_refptr<TrackedCallback> callback) = 0; | 39 scoped_refptr<TrackedCallback> callback) = 0; |
37 }; | 40 }; |
38 | 41 |
39 } // namespace thunk | 42 } // namespace thunk |
40 } // namespace ppapi | 43 } // namespace ppapi |
41 | 44 |
42 #endif // PPAPI_THUNK_PPB_UDP_SOCKET_API_H_ | 45 #endif // PPAPI_THUNK_PPB_UDP_SOCKET_API_H_ |
OLD | NEW |