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

Side by Side Diff: chrome/browser/net/dns_probe_service.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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 (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 #ifndef CHROME_BROWSER_NET_DNS_PROBE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_NET_DNS_PROBE_SERVICE_H_
6 #define CHROME_BROWSER_NET_DNS_PROBE_SERVICE_H_ 6 #define CHROME_BROWSER_NET_DNS_PROBE_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "chrome/browser/net/dns_probe_runner.h" 14 #include "chrome/browser/net/dns_probe_runner.h"
15 #include "components/error_page/common/net_error_info.h" 15 #include "components/error_page/common/net_error_info.h"
16 #include "net/base/network_change_notifier.h" 16 #include "net/base/network_change_notifier.h"
17 17
18 namespace net { 18 namespace net {
19 class DnsClient; 19 class DnsClient;
20 struct DnsConfig;
21 } 20 }
22 21
23 namespace chrome_browser_net { 22 namespace chrome_browser_net {
24 23
25 // Probes the system and public DNS servers to determine the (probable) cause 24 // Probes the system and public DNS servers to determine the (probable) cause
26 // of a recent DNS-related page load error. Coalesces multiple probe requests 25 // of a recent DNS-related page load error. Coalesces multiple probe requests
27 // (perhaps from multiple tabs) and caches the results. 26 // (perhaps from multiple tabs) and caches the results.
28 // 27 //
29 // Uses a single DNS attempt per config, and doesn't randomize source ports. 28 // Uses a single DNS attempt per config, and doesn't randomize source ports.
30 class DnsProbeService : public net::NetworkChangeNotifier::DNSObserver { 29 class DnsProbeService : public net::NetworkChangeNotifier::DNSObserver {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // DnsProbeRunners for the system DNS configuration and a public DNS server. 72 // DnsProbeRunners for the system DNS configuration and a public DNS server.
74 DnsProbeRunner system_runner_; 73 DnsProbeRunner system_runner_;
75 DnsProbeRunner public_runner_; 74 DnsProbeRunner public_runner_;
76 75
77 DISALLOW_COPY_AND_ASSIGN(DnsProbeService); 76 DISALLOW_COPY_AND_ASSIGN(DnsProbeService);
78 }; 77 };
79 78
80 } // namespace chrome_browser_net 79 } // namespace chrome_browser_net
81 80
82 #endif // CHROME_BROWSER_NET_DNS_PROBE_SERVICE_H_ 81 #endif // CHROME_BROWSER_NET_DNS_PROBE_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698