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

Side by Side Diff: chrome/browser/net/dns_probe_runner.cc

Issue 1807663002: Migrate chrome/browser/net/* to net::IPAddress. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments eroman Created 4 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/net/dns_probe_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/net/dns_probe_runner.h" 5 #include "chrome/browser/net/dns_probe_runner.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
11 #include "net/base/address_list.h" 11 #include "net/base/address_list.h"
12 #include "net/base/ip_endpoint.h" 12 #include "net/base/ip_endpoint.h"
13 #include "net/base/net_errors.h" 13 #include "net/base/net_errors.h"
14 #include "net/base/network_change_notifier.h" 14 #include "net/base/network_change_notifier.h"
15 #include "net/dns/dns_client.h" 15 #include "net/dns/dns_client.h"
16 #include "net/dns/dns_protocol.h" 16 #include "net/dns/dns_protocol.h"
17 #include "net/dns/dns_response.h" 17 #include "net/dns/dns_response.h"
18 #include "net/dns/dns_transaction.h" 18 #include "net/dns/dns_transaction.h"
19 #include "net/log/net_log.h" 19 #include "net/log/net_log.h"
20 20
21 using base::TimeDelta; 21 using base::TimeDelta;
22 using content::BrowserThread; 22 using content::BrowserThread;
23 using net::AddressList; 23 using net::AddressList;
24 using net::BoundNetLog; 24 using net::BoundNetLog;
25 using net::DnsClient; 25 using net::DnsClient;
26 using net::DnsResponse; 26 using net::DnsResponse;
27 using net::DnsTransaction; 27 using net::DnsTransaction;
28 using net::DnsTransactionFactory; 28 using net::DnsTransactionFactory;
29 using net::IPAddressNumber;
30 using net::IPEndPoint; 29 using net::IPEndPoint;
31 using net::NetLog; 30 using net::NetLog;
32 using net::NetworkChangeNotifier; 31 using net::NetworkChangeNotifier;
33 using net::ParseIPLiteralToNumber; 32 using net::ParseIPLiteralToNumber;
34 33
35 namespace chrome_browser_net { 34 namespace chrome_browser_net {
36 35
37 const char DnsProbeRunner::kKnownGoodHostname[] = "google.com"; 36 const char DnsProbeRunner::kKnownGoodHostname[] = "google.com";
38 37
39 namespace { 38 namespace {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 DCHECK(!callback_.is_null()); 143 DCHECK(!callback_.is_null());
145 DCHECK(!transaction_.get()); 144 DCHECK(!transaction_.get());
146 145
147 // Clear callback in case it starts a new probe immediately. 146 // Clear callback in case it starts a new probe immediately.
148 const base::Closure callback = callback_; 147 const base::Closure callback = callback_;
149 callback_.Reset(); 148 callback_.Reset();
150 callback.Run(); 149 callback.Run();
151 } 150 }
152 151
153 } // namespace chrome_browser_net 152 } // namespace chrome_browser_net
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/dns_probe_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698