| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 #include "ppapi/shared_impl/private/net_address_private_impl.h" | 5 #include "ppapi/shared_impl/private/net_address_private_impl.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 &AreHostsEqual, | 274 &AreHostsEqual, |
| 275 &Describe, | 275 &Describe, |
| 276 &ReplacePort, | 276 &ReplacePort, |
| 277 &GetAnyAddress | 277 &GetAnyAddress |
| 278 }; | 278 }; |
| 279 | 279 |
| 280 } // namespace | 280 } // namespace |
| 281 | 281 |
| 282 namespace thunk { | 282 namespace thunk { |
| 283 | 283 |
| 284 PPAPI_THUNK_EXPORT const PPB_NetAddress_Private* | 284 PPAPI_THUNK_EXPORT const PPB_NetAddress_Private_0_1* |
| 285 GetPPB_NetAddress_Private_Thunk() { | 285 GetPPB_NetAddress_Private_0_1_Thunk() { |
| 286 return &net_address_private_interface; | 286 return &net_address_private_interface; |
| 287 } | 287 } |
| 288 | 288 |
| 289 } // namespace thunk | 289 } // namespace thunk |
| 290 | 290 |
| 291 // static | 291 // static |
| 292 const PP_NetAddress_Private NetAddressPrivateImpl::kInvalidNetAddress = { 0 }; | 292 const PP_NetAddress_Private NetAddressPrivateImpl::kInvalidNetAddress = { 0 }; |
| 293 | 293 |
| 294 // static | 294 // static |
| 295 bool NetAddressPrivateImpl::ValidateNetAddress( | 295 bool NetAddressPrivateImpl::ValidateNetAddress( |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 net::IPEndPoint ip_end_point; | 369 net::IPEndPoint ip_end_point; |
| 370 if (!NetAddressToIPEndPoint(net_addr, &ip_end_point)) | 370 if (!NetAddressToIPEndPoint(net_addr, &ip_end_point)) |
| 371 return false; | 371 return false; |
| 372 | 372 |
| 373 *address_list = net::AddressList::CreateFromIPAddress(ip_end_point.address(), | 373 *address_list = net::AddressList::CreateFromIPAddress(ip_end_point.address(), |
| 374 ip_end_point.port()); | 374 ip_end_point.port()); |
| 375 return true; | 375 return true; |
| 376 } | 376 } |
| 377 | 377 |
| 378 } // namespace ppapi | 378 } // namespace ppapi |
| OLD | NEW |