OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/certificate_transparency/log_dns_client.h" | 5 #include "components/certificate_transparency/log_dns_client.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "base/values.h" | |
17 #include "components/base32/base32.h" | 16 #include "components/base32/base32.h" |
18 #include "crypto/sha2.h" | 17 #include "crypto/sha2.h" |
19 #include "net/base/net_errors.h" | 18 #include "net/base/net_errors.h" |
20 #include "net/cert/merkle_audit_proof.h" | 19 #include "net/cert/merkle_audit_proof.h" |
21 #include "net/dns/dns_client.h" | 20 #include "net/dns/dns_client.h" |
22 #include "net/dns/dns_config_service.h" | 21 #include "net/dns/dns_config_service.h" |
23 #include "net/dns/dns_protocol.h" | 22 #include "net/dns/dns_protocol.h" |
24 #include "net/dns/dns_response.h" | 23 #include "net/dns/dns_response.h" |
25 #include "net/dns/dns_transaction.h" | 24 #include "net/dns/dns_transaction.h" |
26 #include "net/dns/record_parsed.h" | 25 #include "net/dns/record_parsed.h" |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 } | 305 } |
307 | 306 |
308 void LogDnsClient::UpdateDnsConfig() { | 307 void LogDnsClient::UpdateDnsConfig() { |
309 net::DnsConfig config; | 308 net::DnsConfig config; |
310 net::NetworkChangeNotifier::GetDnsConfig(&config); | 309 net::NetworkChangeNotifier::GetDnsConfig(&config); |
311 if (config.IsValid()) | 310 if (config.IsValid()) |
312 dns_client_->SetConfig(config); | 311 dns_client_->SetConfig(config); |
313 } | 312 } |
314 | 313 |
315 } // namespace certificate_transparency | 314 } // namespace certificate_transparency |
OLD | NEW |