OLD | NEW |
1 // Copyright (c) 2011 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 WEBKIT_PLUGINS_PPAPI_PPB_UDP_SOCKET_PRIVATE_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_UDP_SOCKET_PRIVATE_IMPL_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PPB_UDP_SOCKET_PRIVATE_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_UDP_SOCKET_PRIVATE_IMPL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "ppapi/shared_impl/private/udp_socket_private_impl.h" | 9 #include "ppapi/shared_impl/private/udp_socket_private_impl.h" |
10 | 10 |
11 namespace webkit { | 11 namespace webkit { |
12 namespace ppapi { | 12 namespace ppapi { |
13 | 13 |
14 class PPB_UDPSocket_Private_Impl : public ::ppapi::UDPSocketPrivateImpl { | 14 class PPB_UDPSocket_Private_Impl : public ::ppapi::UDPSocketPrivateImpl { |
15 public: | 15 public: |
16 static PP_Resource CreateResource(PP_Instance instance); | 16 static PP_Resource CreateResource(PP_Instance instance); |
17 | 17 |
| 18 virtual void SendBoolSocketFeature(int32_t name, bool value) OVERRIDE; |
18 virtual void SendBind(const PP_NetAddress_Private& addr) OVERRIDE; | 19 virtual void SendBind(const PP_NetAddress_Private& addr) OVERRIDE; |
19 virtual void SendRecvFrom(int32_t num_bytes) OVERRIDE; | 20 virtual void SendRecvFrom(int32_t num_bytes) OVERRIDE; |
20 virtual void SendSendTo(const std::string& buffer, | 21 virtual void SendSendTo(const std::string& buffer, |
21 const PP_NetAddress_Private& addr) OVERRIDE; | 22 const PP_NetAddress_Private& addr) OVERRIDE; |
22 virtual void SendClose() OVERRIDE; | 23 virtual void SendClose() OVERRIDE; |
23 | 24 |
24 private: | 25 private: |
25 PPB_UDPSocket_Private_Impl(PP_Instance instance, uint32 socket_id); | 26 PPB_UDPSocket_Private_Impl(PP_Instance instance, uint32 socket_id); |
26 virtual ~PPB_UDPSocket_Private_Impl(); | 27 virtual ~PPB_UDPSocket_Private_Impl(); |
27 | 28 |
28 DISALLOW_COPY_AND_ASSIGN(PPB_UDPSocket_Private_Impl); | 29 DISALLOW_COPY_AND_ASSIGN(PPB_UDPSocket_Private_Impl); |
29 }; | 30 }; |
30 | 31 |
31 } // namespace ppapi | 32 } // namespace ppapi |
32 } // namespace webkit | 33 } // namespace webkit |
33 | 34 |
34 #endif // WEBKIT_PLUGINS_PPAPI_PPB_UDP_SOCKET_PRIVATE_IMPL_H_ | 35 #endif // WEBKIT_PLUGINS_PPAPI_PPB_UDP_SOCKET_PRIVATE_IMPL_H_ |
OLD | NEW |