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_PROXY_NET_ADDRESS_RESOURCE_H_ | 5 #ifndef PPAPI_PROXY_NET_ADDRESS_RESOURCE_H_ |
6 #define PPAPI_PROXY_NET_ADDRESS_RESOURCE_H_ | 6 #define PPAPI_PROXY_NET_ADDRESS_RESOURCE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "ppapi/c/private/ppb_net_address_private.h" | 10 #include "ppapi/c/private/ppb_net_address_private.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 NetAddressResource(Connection connection, | 24 NetAddressResource(Connection connection, |
25 PP_Instance instance, | 25 PP_Instance instance, |
26 const PP_NetAddress_IPv6& ipv6_addr); | 26 const PP_NetAddress_IPv6& ipv6_addr); |
27 NetAddressResource(Connection connection, | 27 NetAddressResource(Connection connection, |
28 PP_Instance instance, | 28 PP_Instance instance, |
29 const PP_NetAddress_Private& private_addr); | 29 const PP_NetAddress_Private& private_addr); |
30 | 30 |
31 virtual ~NetAddressResource(); | 31 virtual ~NetAddressResource(); |
32 | 32 |
33 // PluginResource implementation. | 33 // PluginResource implementation. |
34 virtual thunk::PPB_NetAddress_API* AsPPB_NetAddress_API() OVERRIDE; | 34 virtual thunk::PPB_NetAddress_API* AsPPB_NetAddress_API() override; |
35 | 35 |
36 // PPB_NetAddress_API implementation. | 36 // PPB_NetAddress_API implementation. |
37 virtual PP_NetAddress_Family GetFamily() OVERRIDE; | 37 virtual PP_NetAddress_Family GetFamily() override; |
38 virtual PP_Var DescribeAsString(PP_Bool include_port) OVERRIDE; | 38 virtual PP_Var DescribeAsString(PP_Bool include_port) override; |
39 virtual PP_Bool DescribeAsIPv4Address( | 39 virtual PP_Bool DescribeAsIPv4Address( |
40 PP_NetAddress_IPv4* ipv4_addr) OVERRIDE; | 40 PP_NetAddress_IPv4* ipv4_addr) override; |
41 virtual PP_Bool DescribeAsIPv6Address( | 41 virtual PP_Bool DescribeAsIPv6Address( |
42 PP_NetAddress_IPv6* ipv6_addr) OVERRIDE; | 42 PP_NetAddress_IPv6* ipv6_addr) override; |
43 virtual const PP_NetAddress_Private& GetNetAddressPrivate() OVERRIDE; | 43 virtual const PP_NetAddress_Private& GetNetAddressPrivate() override; |
44 | 44 |
45 private: | 45 private: |
46 // TODO(yzshen): Refactor the code so that PPB_NetAddress resource doesn't | 46 // TODO(yzshen): Refactor the code so that PPB_NetAddress resource doesn't |
47 // use PP_NetAddress_Private as storage type. | 47 // use PP_NetAddress_Private as storage type. |
48 PP_NetAddress_Private address_; | 48 PP_NetAddress_Private address_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(NetAddressResource); | 50 DISALLOW_COPY_AND_ASSIGN(NetAddressResource); |
51 }; | 51 }; |
52 | 52 |
53 } // namespace proxy | 53 } // namespace proxy |
54 } // namespace ppapi | 54 } // namespace ppapi |
55 | 55 |
56 #endif // PPAPI_PROXY_NET_ADDRESS_RESOURCE_H_ | 56 #endif // PPAPI_PROXY_NET_ADDRESS_RESOURCE_H_ |
OLD | NEW |