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 "net/base/dnsrr_resolver.h" | 5 #include "net/base/dnsrr_resolver.h" |
6 | 6 |
7 #if defined(OS_POSIX) | 7 #if defined(OS_POSIX) |
8 #include <resolv.h> | 8 #include <resolv.h> |
9 #endif | 9 #endif |
10 | 10 |
11 #if defined(OS_WIN) | 11 #if defined(OS_WIN) |
12 #include <windns.h> | 12 #include <windns.h> |
13 #endif | 13 #endif |
14 | 14 |
| 15 #include "base/location.h" |
15 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/singleton.h" | 17 #include "base/memory/singleton.h" |
17 #include "base/message_loop.h" | 18 #include "base/message_loop.h" |
18 #include "base/stl_util.h" | 19 #include "base/stl_util.h" |
19 #include "base/string_piece.h" | 20 #include "base/string_piece.h" |
20 #include "base/synchronization/lock.h" | 21 #include "base/synchronization/lock.h" |
21 #include "base/task.h" | 22 #include "base/task.h" |
22 #include "base/threading/worker_pool.h" | 23 #include "base/threading/worker_pool.h" |
23 #include "net/base/dns_reloader.h" | 24 #include "net/base/dns_reloader.h" |
24 #include "net/base/dns_util.h" | 25 #include "net/base/dns_util.h" |
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 inflight_.erase(j); | 666 inflight_.erase(j); |
666 | 667 |
667 job->HandleResult(result, response); | 668 job->HandleResult(result, response); |
668 delete job; | 669 delete job; |
669 } | 670 } |
670 | 671 |
671 } // namespace net | 672 } // namespace net |
672 | 673 |
673 DISABLE_RUNNABLE_METHOD_REFCOUNT(net::RRResolverHandle); | 674 DISABLE_RUNNABLE_METHOD_REFCOUNT(net::RRResolverHandle); |
674 DISABLE_RUNNABLE_METHOD_REFCOUNT(net::RRResolverWorker); | 675 DISABLE_RUNNABLE_METHOD_REFCOUNT(net::RRResolverWorker); |
OLD | NEW |