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/macros.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 11 #include "base/message_loop/message_loop.h" |
11 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
12 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
13 #include "base/threading/simple_thread.h" | 14 #include "base/threading/simple_thread.h" |
14 #include "base/threading/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
15 #include "net/base/host_port_pair.h" | 16 #include "net/base/host_port_pair.h" |
16 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
17 #include "net/dns/host_resolver_impl.h" | 18 #include "net/dns/host_resolver_impl.h" |
18 #include "net/log/net_log.h" | 19 #include "net/log/net_log.h" |
19 #include "net/log/net_log_with_source.h" | 20 #include "net/log/net_log_with_source.h" |
20 | 21 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 } // namespace | 97 } // namespace |
97 | 98 |
98 // static | 99 // static |
99 int SynchronousHostResolver::Resolve(const std::string& host, | 100 int SynchronousHostResolver::Resolve(const std::string& host, |
100 AddressList* addresses) { | 101 AddressList* addresses) { |
101 ResolverThread resolver; | 102 ResolverThread resolver; |
102 return resolver.Resolve(host, addresses); | 103 return resolver.Resolve(host, addresses); |
103 } | 104 } |
104 | 105 |
105 } // namespace net | 106 } // namespace net |
OLD | NEW |