| OLD | NEW |
| 1 // Copyright (c) 2012 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 #include "net/dns/address_sorter_posix.h" | 5 #include "net/dns/address_sorter_posix.h" |
| 6 | 6 |
| 7 #include <netinet/in.h> | 7 #include <netinet/in.h> |
| 8 | 8 |
| 9 #if defined(OS_MACOSX) || defined(OS_BSD) | 9 #if defined(OS_MACOSX) || defined(OS_BSD) |
| 10 #include <sys/socket.h> // Must be included before ifaddrs.h. | 10 #include <sys/socket.h> // Must be included before ifaddrs.h. |
| 11 #include <ifaddrs.h> | 11 #include <ifaddrs.h> |
| 12 #include <net/if.h> | 12 #include <net/if.h> |
| 13 #include <netinet/in_var.h> | 13 #include <netinet/in_var.h> |
| 14 #include <string.h> | 14 #include <string.h> |
| 15 #include <sys/ioctl.h> | 15 #include <sys/ioctl.h> |
| 16 #endif | 16 #endif |
| 17 | 17 |
| 18 #include <algorithm> | 18 #include <algorithm> |
| 19 | 19 |
| 20 #include "base/eintr_wrapper.h" | |
| 21 #include "base/logging.h" | 20 #include "base/logging.h" |
| 22 #include "base/memory/scoped_vector.h" | 21 #include "base/memory/scoped_vector.h" |
| 22 #include "base/posix/eintr_wrapper.h" |
| 23 #include "net/socket/client_socket_factory.h" | 23 #include "net/socket/client_socket_factory.h" |
| 24 #include "net/udp/datagram_client_socket.h" | 24 #include "net/udp/datagram_client_socket.h" |
| 25 | 25 |
| 26 #if defined(OS_LINUX) | 26 #if defined(OS_LINUX) |
| 27 #include "net/base/address_tracker_linux.h" | 27 #include "net/base/address_tracker_linux.h" |
| 28 #endif | 28 #endif |
| 29 | 29 |
| 30 namespace net { | 30 namespace net { |
| 31 | 31 |
| 32 namespace { | 32 namespace { |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 } | 419 } |
| 420 | 420 |
| 421 // static | 421 // static |
| 422 scoped_ptr<AddressSorter> AddressSorter::CreateAddressSorter() { | 422 scoped_ptr<AddressSorter> AddressSorter::CreateAddressSorter() { |
| 423 return scoped_ptr<AddressSorter>( | 423 return scoped_ptr<AddressSorter>( |
| 424 new AddressSorterPosix(ClientSocketFactory::GetDefaultFactory())); | 424 new AddressSorterPosix(ClientSocketFactory::GetDefaultFactory())); |
| 425 } | 425 } |
| 426 | 426 |
| 427 } // namespace net | 427 } // namespace net |
| 428 | 428 |
| OLD | NEW |