Chromium Code Reviews| Index: ppapi/cpp/net_address.h |
| diff --git a/ppapi/cpp/dev/net_address_dev.h b/ppapi/cpp/net_address.h |
| similarity index 53% |
| rename from ppapi/cpp/dev/net_address_dev.h |
| rename to ppapi/cpp/net_address.h |
| index fff0ad1a8c88e92b80e253fd7824b3870579d944..53c86f7c2afa9f4279f9561c2c2773c2e11340d2 100644 |
| --- a/ppapi/cpp/dev/net_address_dev.h |
| +++ b/ppapi/cpp/net_address.h |
| @@ -2,10 +2,10 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef PPAPI_CPP_DEV_NET_ADDRESS_DEV_H_ |
| -#define PPAPI_CPP_DEV_NET_ADDRESS_DEV_H_ |
| +#ifndef PPAPI_CPP_NET_ADDRESS_H_ |
| +#define PPAPI_CPP_NET_ADDRESS_H_ |
| -#include "ppapi/c/dev/ppb_net_address_dev.h" |
| +#include "ppapi/c/ppb_net_address.h" |
| #include "ppapi/cpp/pass_ref.h" |
| #include "ppapi/cpp/resource.h" |
| #include "ppapi/cpp/var.h" |
| @@ -14,54 +14,54 @@ namespace pp { |
| class InstanceHandle; |
| -/// The <code>NetAddress_Dev</code> class represents a network address. |
| -class NetAddress_Dev : public Resource { |
| +/// The <code>NetAddress</code> class represents a network address. |
| +class NetAddress : public Resource { |
| public: |
| - /// Default constructor for creating an is_null() <code>NetAddress_Dev</code> |
| + /// Default constructor for creating an is_null() <code>NetAddress</code> |
| /// object. |
| - NetAddress_Dev(); |
| + NetAddress(); |
| /// A constructor used when you have received a <code>PP_Resource</code> as a |
| /// return value that has already been added 1 ref for you. |
| /// |
| - /// @param[in] resource A <code>PPB_NetAddress_Dev</code> resource. |
| - NetAddress_Dev(PassRef, PP_Resource resource); |
| + /// @param[in] resource A <code>PPB_NetAddress</code> resource. |
| + NetAddress(PassRef, PP_Resource resource); |
| - /// A contructor used to create a <code>NetAddress_Dev</code> object with the |
| + /// A contructor used to create a <code>NetAddress</code> object with the |
| /// specified IPv4 address. |
| /// |
| /// @param[in] instance The instance with which this resource will be |
| /// associated. |
| /// @param[in] ipv4_addr An IPv4 address. |
| - NetAddress_Dev(const InstanceHandle& instance, |
| - const PP_NetAddress_IPv4_Dev& ipv4_addr); |
| + NetAddress(const InstanceHandle& instance, |
| + const PP_NetAddress_IPv4& ipv4_addr); |
| - /// A contructor used to create a <code>NetAddress_Dev</code> object with the |
| + /// A contructor used to create a <code>NetAddress</code> object with the |
| /// specified IPv6 address. |
| /// |
| /// @param[in] instance The instance with which this resource will be |
| /// associated. |
| /// @param[in] ipv6_addr An IPv6 address. |
| - NetAddress_Dev(const InstanceHandle& instance, |
| - const PP_NetAddress_IPv6_Dev& ipv6_addr); |
| + NetAddress(const InstanceHandle& instance, |
| + const PP_NetAddress_IPv6& ipv6_addr); |
|
bbudge
2013/06/20 19:25:02
Indentation
yzshen1
2013/06/20 20:54:12
Done.
|
| - /// The copy constructor for <code>NetAddress_Dev</code>. |
| + /// The copy constructor for <code>NetAddress</code>. |
| /// |
| - /// @param[in] other A reference to another <code>NetAddress_Dev</code>. |
| - NetAddress_Dev(const NetAddress_Dev& other); |
| + /// @param[in] other A reference to another <code>NetAddress</code>. |
| + NetAddress(const NetAddress& other); |
| /// The destructor. |
| - virtual ~NetAddress_Dev(); |
| + virtual ~NetAddress(); |
| - /// The assign operator for <code>NetAddress_Dev</code>. |
| + /// The assign operator for <code>NetAddress</code>. |
| /// |
| - /// @param[in] other A reference to another <code>NetAddress_Dev</code>. |
| + /// @param[in] other A reference to another <code>NetAddress</code>. |
| /// |
| - /// @return A reference to this <code>NetAddress_Dev</code> object. |
| - NetAddress_Dev& operator=(const NetAddress_Dev& other); |
| + /// @return A reference to this <code>NetAddress</code> object. |
| + NetAddress& operator=(const NetAddress& other); |
| /// Static function for determining whether the browser supports the required |
| - /// <code>PPB_NetAddress_Dev</code> interface. |
| + /// <code>PPB_NetAddress</code> interface. |
| /// |
| /// @return true if the interface is available, false otherwise. |
| static bool IsAvailable(); |
| @@ -70,7 +70,7 @@ class NetAddress_Dev : public Resource { |
| /// |
| /// @return The address family on success; |
| /// <code>PP_NETADDRESS_FAMILY_UNSPECIFIED</code> on failure. |
| - PP_NetAddress_Family_Dev GetFamily() const; |
| + PP_NetAddress_Family GetFamily() const; |
| /// Returns a human-readable description of the network address. The |
| /// description is in the form of host [ ":" port ] and conforms to |
| @@ -84,33 +84,33 @@ class NetAddress_Dev : public Resource { |
| /// <code>Var</code> on failure. |
| Var DescribeAsString(bool include_port) const; |
| - /// Fills a <code>PP_NetAddress_IPv4_Dev</code> structure if the network |
| - /// address is of <code>PP_NETADDRESS_FAMILY_IPV4</code> address family. |
| + /// Fills a <code>PP_NetAddress_IPv4</code> structure if the network address |
| + /// is of <code>PP_NETADDRESS_FAMILY_IPV4</code> address family. |
| /// Note that passing a network address of |
| /// <code>PP_NETADDRESS_FAMILY_IPV6</code> address family will fail even if |
| /// the address is an IPv4-mapped IPv6 address. |
| /// |
| - /// @param[out] ipv4_addr A <code>PP_NetAddress_IPv4_Dev</code> structure to |
| - /// store the result. |
| + /// @param[out] ipv4_addr A <code>PP_NetAddress_IPv4</code> structure to store |
| + /// the result. |
| /// |
| /// @return A boolean value indicating whether the operation is successful or |
| /// not. |
| - bool DescribeAsIPv4Address(PP_NetAddress_IPv4_Dev* ipv4_addr) const; |
| + bool DescribeAsIPv4Address(PP_NetAddress_IPv4* ipv4_addr) const; |
| - /// Fills a <code>PP_NetAddress_IPv6_Dev</code> structure if the network |
| - /// address is of <code>PP_NETADDRESS_FAMILY_IPV6</code> address family. |
| + /// Fills a <code>PP_NetAddress_IPv6</code> structure if the network address |
| + /// is of <code>PP_NETADDRESS_FAMILY_IPV6</code> address family. |
| /// Note that passing a network address of |
| /// <code>PP_NETADDRESS_FAMILY_IPV4</code> address family will fail - this |
| /// method doesn't map it to an IPv6 address. |
| /// |
| - /// @param[out] ipv6_addr A <code>PP_NetAddress_IPv6_Dev</code> structure to |
| - /// store the result. |
| + /// @param[out] ipv6_addr A <code>PP_NetAddress_IPv6</code> structure to store |
| + /// the result. |
| /// |
| /// @return A boolean value indicating whether the operation is successful or |
| /// not. |
| - bool DescribeAsIPv6Address(PP_NetAddress_IPv6_Dev* ipv6_addr) const; |
| + bool DescribeAsIPv6Address(PP_NetAddress_IPv6* ipv6_addr) const; |
| }; |
| } // namespace pp |
| -#endif // PPAPI_CPP_DEV_NET_ADDRESS_DEV_H_ |
| +#endif // PPAPI_CPP_NET_ADDRESS_H_ |