| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/network_hints/browser/network_hints_message_filter.h" | 5 #include "components/network_hints/browser/network_hints_message_filter.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/macros.h" |
| 8 #include "components/network_hints/common/network_hints_common.h" | 9 #include "components/network_hints/common/network_hints_common.h" |
| 9 #include "components/network_hints/common/network_hints_messages.h" | 10 #include "components/network_hints/common/network_hints_messages.h" |
| 10 #include "ipc/ipc_message_macros.h" | 11 #include "ipc/ipc_message_macros.h" |
| 11 #include "net/base/address_list.h" | 12 #include "net/base/address_list.h" |
| 12 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
| 13 #include "net/dns/host_resolver.h" | 14 #include "net/dns/host_resolver.h" |
| 14 #include "net/dns/single_request_host_resolver.h" | 15 #include "net/dns/single_request_host_resolver.h" |
| 15 #include "url/gurl.h" | 16 #include "url/gurl.h" |
| 16 | 17 |
| 17 namespace network_hints { | 18 namespace network_hints { |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 DCHECK(host_resolver_); | 87 DCHECK(host_resolver_); |
| 87 for (const std::string& hostname : lookup_request.hostname_list) { | 88 for (const std::string& hostname : lookup_request.hostname_list) { |
| 88 DnsLookupRequest* request = new DnsLookupRequest(host_resolver_, hostname); | 89 DnsLookupRequest* request = new DnsLookupRequest(host_resolver_, hostname); |
| 89 // Note: DnsLookupRequest will be freed by the base::Owned call when | 90 // Note: DnsLookupRequest will be freed by the base::Owned call when |
| 90 // resolving has completed. | 91 // resolving has completed. |
| 91 request->Start(); | 92 request->Start(); |
| 92 } | 93 } |
| 93 } | 94 } |
| 94 | 95 |
| 95 } // namespace network_hints | 96 } // namespace network_hints |
| OLD | NEW |