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

Side by Side Diff: net/base/dns_reloader.cc

Issue 8429034: Upstream: Build net_unittests for Android. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 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
OLDNEW
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 "net/base/dns_reloader.h" 5 #include "net/base/dns_reloader.h"
6 6
7 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_OPENBSD) 7 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_OPENBSD) && !defined (OS_ANDROID)
8 8
9 #include <resolv.h> 9 #include <resolv.h>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/message_loop.h" 14 #include "base/message_loop.h"
15 #include "base/synchronization/lock.h" 15 #include "base/synchronization/lock.h"
16 #include "base/threading/thread_local_storage.h" 16 #include "base/threading/thread_local_storage.h"
17 #include "net/base/network_change_notifier.h" 17 #include "net/base/network_change_notifier.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 } 112 }
113 113
114 void DnsReloaderMaybeReload() { 114 void DnsReloaderMaybeReload() {
115 // This routine can be called by any of the DNS worker threads. 115 // This routine can be called by any of the DNS worker threads.
116 DnsReloader* dns_reloader = g_dns_reloader.Pointer(); 116 DnsReloader* dns_reloader = g_dns_reloader.Pointer();
117 dns_reloader->MaybeReload(); 117 dns_reloader->MaybeReload();
118 } 118 }
119 119
120 } // namespace net 120 } // namespace net
121 121
122 #endif // defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_OPENBSD) 122 #endif // defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_OPENBSD) && ! defined(OS_ANDROID)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698