OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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/tools/quic/synchronous_host_resolver.h" | 5 #include "net/tools/quic/synchronous_host_resolver.h" |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/macros.h" |
9 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
10 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
11 #include "base/thread_task_runner_handle.h" | 12 #include "base/thread_task_runner_handle.h" |
12 #include "base/threading/simple_thread.h" | 13 #include "base/threading/simple_thread.h" |
13 #include "net/base/host_port_pair.h" | 14 #include "net/base/host_port_pair.h" |
14 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
15 #include "net/dns/host_resolver_impl.h" | 16 #include "net/dns/host_resolver_impl.h" |
16 #include "net/dns/single_request_host_resolver.h" | 17 #include "net/dns/single_request_host_resolver.h" |
17 | 18 |
18 namespace net { | 19 namespace net { |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 96 |
96 // static | 97 // static |
97 int SynchronousHostResolver::Resolve(const std::string& host, | 98 int SynchronousHostResolver::Resolve(const std::string& host, |
98 AddressList* addresses) { | 99 AddressList* addresses) { |
99 ResolverThread resolver; | 100 ResolverThread resolver; |
100 return resolver.Resolve(host, addresses); | 101 return resolver.Resolve(host, addresses); |
101 } | 102 } |
102 | 103 |
103 } // namespace tools | 104 } // namespace tools |
104 } // namespace net | 105 } // namespace net |
OLD | NEW |