OLD | NEW |
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/dns_transaction.h" | 5 #include "net/dns/dns_transaction.h" |
6 | 6 |
7 #include <deque> | 7 #include <deque> |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/big_endian.h" | 13 #include "base/big_endian.h" |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "base/location.h" | 15 #include "base/location.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/memory/ptr_util.h" | 17 #include "base/memory/ptr_util.h" |
18 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
19 #include "base/memory/weak_ptr.h" | 19 #include "base/memory/weak_ptr.h" |
20 #include "base/metrics/histogram.h" | 20 #include "base/metrics/histogram_macros.h" |
21 #include "base/profiler/scoped_tracker.h" | 21 #include "base/profiler/scoped_tracker.h" |
22 #include "base/rand_util.h" | 22 #include "base/rand_util.h" |
23 #include "base/single_thread_task_runner.h" | 23 #include "base/single_thread_task_runner.h" |
24 #include "base/stl_util.h" | 24 #include "base/stl_util.h" |
25 #include "base/strings/string_piece.h" | 25 #include "base/strings/string_piece.h" |
26 #include "base/threading/non_thread_safe.h" | 26 #include "base/threading/non_thread_safe.h" |
27 #include "base/threading/thread_task_runner_handle.h" | 27 #include "base/threading/thread_task_runner_handle.h" |
28 #include "base/timer/timer.h" | 28 #include "base/timer/timer.h" |
29 #include "base/values.h" | 29 #include "base/values.h" |
30 #include "net/base/completion_callback.h" | 30 #include "net/base/completion_callback.h" |
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
995 } // namespace | 995 } // namespace |
996 | 996 |
997 // static | 997 // static |
998 std::unique_ptr<DnsTransactionFactory> DnsTransactionFactory::CreateFactory( | 998 std::unique_ptr<DnsTransactionFactory> DnsTransactionFactory::CreateFactory( |
999 DnsSession* session) { | 999 DnsSession* session) { |
1000 return std::unique_ptr<DnsTransactionFactory>( | 1000 return std::unique_ptr<DnsTransactionFactory>( |
1001 new DnsTransactionFactoryImpl(session)); | 1001 new DnsTransactionFactoryImpl(session)); |
1002 } | 1002 } |
1003 | 1003 |
1004 } // namespace net | 1004 } // namespace net |
OLD | NEW |