Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(361)

Side by Side Diff: components/certificate_transparency/log_dns_client.cc

Issue 2351513002: net: rename BoundNetLog to NetLogWithSource (Closed)
Patch Set: one more fix, content bound_net_log_ Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 for (size_t i = 0; i < audit_path.size(); i += crypto::kSHA256Length) { 75 for (size_t i = 0; i < audit_path.size(); i += crypto::kSHA256Length) {
76 proof->nodes.push_back(audit_path.substr(i, crypto::kSHA256Length)); 76 proof->nodes.push_back(audit_path.substr(i, crypto::kSHA256Length));
77 } 77 }
78 78
79 return true; 79 return true;
80 } 80 }
81 81
82 } // namespace 82 } // namespace
83 83
84 LogDnsClient::LogDnsClient(std::unique_ptr<net::DnsClient> dns_client, 84 LogDnsClient::LogDnsClient(std::unique_ptr<net::DnsClient> dns_client,
85 const net::BoundNetLog& net_log) 85 const net::NetLogWithSource& net_log)
86 : dns_client_(std::move(dns_client)), 86 : dns_client_(std::move(dns_client)),
87 net_log_(net_log), 87 net_log_(net_log),
88 weak_ptr_factory_(this) { 88 weak_ptr_factory_(this) {
89 CHECK(dns_client_); 89 CHECK(dns_client_);
90 net::NetworkChangeNotifier::AddDNSObserver(this); 90 net::NetworkChangeNotifier::AddDNSObserver(this);
91 UpdateDnsConfig(); 91 UpdateDnsConfig();
92 } 92 }
93 93
94 LogDnsClient::~LogDnsClient() { 94 LogDnsClient::~LogDnsClient() {
95 net::NetworkChangeNotifier::RemoveDNSObserver(this); 95 net::NetworkChangeNotifier::RemoveDNSObserver(this);
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 } 305 }
306 306
307 void LogDnsClient::UpdateDnsConfig() { 307 void LogDnsClient::UpdateDnsConfig() {
308 net::DnsConfig config; 308 net::DnsConfig config;
309 net::NetworkChangeNotifier::GetDnsConfig(&config); 309 net::NetworkChangeNotifier::GetDnsConfig(&config);
310 if (config.IsValid()) 310 if (config.IsValid())
311 dns_client_->SetConfig(config); 311 dns_client_->SetConfig(config);
312 } 312 }
313 313
314 } // namespace certificate_transparency 314 } // namespace certificate_transparency
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698