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

Side by Side Diff: chrome/common/net/net_error_info.h

Issue 13270005: Display DNS probe results. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 5 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef CHROME_COMMON_NET_NET_ERROR_INFO_H_ 5 #ifndef CHROME_COMMON_NET_NET_ERROR_INFO_H_
6 #define CHROME_COMMON_NET_NET_ERROR_INFO_H_ 6 #define CHROME_COMMON_NET_NET_ERROR_INFO_H_
7 7
8 namespace chrome_common_net { 8 namespace chrome_common_net {
9 9
10 enum DnsProbeResult { 10 // The status of a DNS probe that the NetErrorTabHelper may or may not have
11 DNS_PROBE_UNKNOWN, 11 // started.
12 DNS_PROBE_NO_INTERNET, 12 //
13 DNS_PROBE_BAD_CONFIG, 13 // The DNS_PROBE_FINISHED_* values are used in histograms, so:
14 DNS_PROBE_NXDOMAIN, 14 // 1. FINISHED_UNKNOWN must remain the first FINISHED_* value.
15 // 2. FINISHED_* values must not be rearranged relative to FINISHED_UNKNOWN.
16 // 3. New FINISHED_* values must be inserted at the end.
17 // 4. New non-FINISHED_* values must be inserted before FINISHED_UNKNOWN.
18 enum DnsProbeStatus {
19 // A DNS probe may be run for this error page. (This status is only used on
20 // the renderer side before it's received a status update from the browser.)
21 DNS_PROBE_POSSIBLE,
22
23 // A DNS probe will not be run for this error page. (This happens if the
24 // user has the "Use web service to resolve navigation errors" preference
25 // turned off, or if probes are disabled by the field trial.)
26 DNS_PROBE_NOT_RUN,
27
28 // A DNS probe has been started for this error page. The renderer should
29 // expect to receive another IPC with one of the FINISHED statuses once the
30 // probe has finished (as long as the error page is still loaded).
31 DNS_PROBE_STARTED,
32
33 // A DNS probe has finished with one of the following results:
34
35 // The probe was inconclusive..
36 DNS_PROBE_FINISHED_UNKNOWN,
mmenke 2013/07/12 19:51:22 optional: Think DNS_PROBE_INCONCLUSIVE may be cle
Deprecated (see juliatuttle) 2013/07/12 20:55:55 Done.
37
38 // There's no internet connection.
39 DNS_PROBE_FINISHED_NO_INTERNET,
40
41 // The DNS configuration is wrong, or the servers are down or broken.
42 DNS_PROBE_FINISHED_BAD_CONFIG,
43
44 // The DNS servers are working fine, so the domain must not exist.
45 DNS_PROBE_FINISHED_NXDOMAIN,
46
15 DNS_PROBE_MAX 47 DNS_PROBE_MAX
16 }; 48 };
17 49
50 const char* DnsProbeStatusToString(int status);
51 bool DnsProbeStatusIsFinished(DnsProbeStatus status);
52
53 bool DnsProbesEnabledByFieldTrial();
54
55 extern const char kDnsProbeErrorDomain[];
56
18 } // namespace chrome_common_net 57 } // namespace chrome_common_net
19 58
20 #endif // CHROME_COMMON_NET_NET_ERROR_INFO_H_ 59 #endif // CHROME_COMMON_NET_NET_ERROR_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698