Chromium Code Reviews| Index: ppapi/cpp/private/udp_socket_private.h |
| diff --git a/ppapi/cpp/private/udp_socket_private.h b/ppapi/cpp/private/udp_socket_private.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6f60bb317625d68e427aa03c58657e5859787f13 |
| --- /dev/null |
| +++ b/ppapi/cpp/private/udp_socket_private.h |
| @@ -0,0 +1,37 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef PPAPI_CPP_PRIVATE_UDP_SOCKET_PRIVATE_H_ |
| +#define PPAPI_CPP_PRIVATE_UDP_SOCKET_PRIVATE_H_ |
| + |
| +#include "ppapi/c/pp_stdint.h" |
| +#include "ppapi/c/private/ppb_udp_socket_private.h" |
| +#include "ppapi/cpp/resource.h" |
| + |
| +namespace pp { |
| + |
| +class CompletionCallback; |
| +class Instance; |
| + |
| +class UDPSocket : public Resource { |
|
yzshen1
2011/11/11 21:04:28
It should have "Private" in the name.
(So that it
Dmitry Polukhin
2011/11/14 13:03:02
Done.
|
| + public: |
| + explicit UDPSocket(Instance* instance); |
| + |
| + int32_t Bind(const PP_NetAddress_Private* addr, |
| + const CompletionCallback& callback); |
| + int32_t RecvFrom(char* buffer, |
| + int32_t num_bytes, |
| + const CompletionCallback& callback); |
| + bool GetRecvFromAddress(PP_NetAddress_Private* addr); |
| + int32_t SendTo(const char* buffer, |
| + int32_t num_bytes, |
| + const PP_NetAddress_Private* addr, |
| + const CompletionCallback& callback); |
| + void Close(); |
| +}; |
| + |
| +} // namespace pp |
| + |
| +#endif // PPAPI_CPP_PRIVATE_UDP_SOCKET_PRIVATE_H_ |
| + |