| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // TODO(viettrungluu): This (and the .cc file) contain C++ wrappers for things | |
| 6 // in ppapi/c/private/ppb_flash_net_address.h. This is currently not used in | |
| 7 // (or even compiled with) Chromium. | |
| 8 | |
| 9 #ifndef PPAPI_CPP_PRIVATE_FLASH_NET_ADDRESS_H_ | |
| 10 #define PPAPI_CPP_PRIVATE_FLASH_NET_ADDRESS_H_ | |
| 11 | |
| 12 #include <string> | |
| 13 | |
| 14 #include "ppapi/c/pp_stdint.h" | |
| 15 | |
| 16 struct PP_Flash_NetAddress; | |
| 17 | |
| 18 namespace pp { | |
| 19 namespace flash { | |
| 20 | |
| 21 class NetAddress { | |
| 22 public: | |
| 23 static bool AreEqual(const PP_Flash_NetAddress& addr1, | |
| 24 const PP_Flash_NetAddress& addr2); | |
| 25 static bool AreHostsEqual(const PP_Flash_NetAddress& addr1, | |
| 26 const PP_Flash_NetAddress& addr2); | |
| 27 static std::string Describe(const PP_Flash_NetAddress& addr, | |
| 28 bool include_port); | |
| 29 static bool ReplacePort(const PP_Flash_NetAddress& addr_in, | |
| 30 uint16_t port, | |
| 31 PP_Flash_NetAddress* addr_out); | |
| 32 static void GetAnyAddress(bool is_ipv6, PP_Flash_NetAddress* addr); | |
| 33 }; | |
| 34 | |
| 35 } // namespace flash | |
| 36 } // namespace pp | |
| 37 | |
| 38 #endif // PPAPI_CPP_PRIVATE_FLASH_NET_ADDRESS_H_ | |
| OLD | NEW |