| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PPAPI_CPP_PRIVATE_UDP_SOCKET_PRIVATE_H_ |
| 6 #define PPAPI_CPP_PRIVATE_UDP_SOCKET_PRIVATE_H_ |
| 7 |
| 8 #include "ppapi/c/pp_stdint.h" |
| 9 #include "ppapi/c/private/ppb_udp_socket_private.h" |
| 10 #include "ppapi/cpp/resource.h" |
| 11 |
| 12 namespace pp { |
| 13 |
| 14 class CompletionCallback; |
| 15 class Instance; |
| 16 |
| 17 class UDPSocketPrivate : public Resource { |
| 18 public: |
| 19 explicit UDPSocketPrivate(Instance* instance); |
| 20 |
| 21 int32_t Bind(const PP_NetAddress_Private* addr, |
| 22 const CompletionCallback& callback); |
| 23 int32_t RecvFrom(char* buffer, |
| 24 int32_t num_bytes, |
| 25 const CompletionCallback& callback); |
| 26 bool GetRecvFromAddress(PP_NetAddress_Private* addr); |
| 27 int32_t SendTo(const char* buffer, |
| 28 int32_t num_bytes, |
| 29 const PP_NetAddress_Private* addr, |
| 30 const CompletionCallback& callback); |
| 31 void Close(); |
| 32 }; |
| 33 |
| 34 } // namespace pp |
| 35 |
| 36 #endif // PPAPI_CPP_PRIVATE_UDP_SOCKET_PRIVATE_H_ |
| 37 |
| OLD | NEW |