Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: net/dns/address_sorter_posix.cc

Issue 11366229: Move eintr_wrapper.h from base to base/posix (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/base/unix_domain_socket_posix_unittest.cc ('k') | net/dns/notify_watcher_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/base/unix_domain_socket_posix_unittest.cc ('k') | net/dns/notify_watcher_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698