Chromium Code Reviews| Index: webkit/plugins/ppapi/ppb_udp_socket_private_impl.h |
| diff --git a/webkit/plugins/ppapi/ppb_udp_socket_private_impl.h b/webkit/plugins/ppapi/ppb_udp_socket_private_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3bb4832338cc3329e3366b729e1f5bdab97f00b7 |
| --- /dev/null |
| +++ b/webkit/plugins/ppapi/ppb_udp_socket_private_impl.h |
| @@ -0,0 +1,34 @@ |
| +// 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 WEBKIT_PLUGINS_PPAPI_PPB_UDP_SOCKET_PRIVATE_IMPL_H_ |
| +#define WEBKIT_PLUGINS_PPAPI_PPB_UDP_SOCKET_PRIVATE_IMPL_H_ |
| + |
| +#include "ppapi/shared_impl/udp_socket_impl.h" |
| + |
| +namespace webkit { |
| +namespace ppapi { |
| + |
| +class PPB_UDPSocket_Private_Impl : public ::ppapi::UDPSocketImpl { |
| + public: |
| + static PP_Resource CreateResource(PP_Instance instance); |
| + |
| + virtual void SendBind(const PP_NetAddress_Private& addr); |
| + virtual void SendRecvFrom(int32_t num_bytes); |
| + virtual void SendSendTo(const std::string& buffer, |
| + const PP_NetAddress_Private& addr); |
| + virtual void SendClose(); |
| + virtual void PostAbort(PP_CompletionCallback callback); |
| + |
| + private: |
| + PPB_UDPSocket_Private_Impl(PP_Instance instance, uint32 socket_id); |
| + virtual ~PPB_UDPSocket_Private_Impl(); |
|
yzshen1
2011/11/28 20:59:16
Why it needs to be private?
ygorshenin
2011/11/29 18:30:09
There are no possibility to create instance of thi
|
| + |
| + DISALLOW_COPY_AND_ASSIGN(PPB_UDPSocket_Private_Impl); |
| +}; |
| + |
| +} // namespace ppapi |
| +} // namespace webkit |
| + |
| +#endif // WEBKIT_PLUGINS_PPAPI_PPB_UDP_SOCKET_PRIVATE_IMPL_H_ |