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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/net/net_error_info.h
diff --git a/chrome/common/net/net_error_info.h b/chrome/common/net/net_error_info.h
index 9f8d08a1baabe1b741fa69d2761ec50ff59ae667..bd367cc48013b3eec7f3c01dda14a49bfac74f7c 100644
--- a/chrome/common/net/net_error_info.h
+++ b/chrome/common/net/net_error_info.h
@@ -7,6 +7,22 @@
namespace chrome_common_net {
+// The status of a DNS probe that the NetErrorTabHelper may or may not have
+// started.
+enum DnsProbeStatus {
+ DNS_PROBE_STARTED, // The helper has started a probe; expect another IPC
+ // with status _FINISHED once it returns if the tab is
+ // still showing a DNS error page.
+
+ DNS_PROBE_FINISHED, // The helper has received a result from the DNS probe it
+ // started.
+
+ DNS_PROBE_NOT_RUN, // The helper is not running a DNS probe for this error
+ // page.
mmenke 2013/04/01 17:44:12 nit: Suggest comments on the line before the stat
Deprecated (see juliatuttle) 2013/04/09 20:35:49 Done.
+
+ DNS_PROBE_STATUS_MAX
+};
+
enum DnsProbeResult {
DNS_PROBE_UNKNOWN,
DNS_PROBE_NO_INTERNET,
@@ -15,6 +31,23 @@ enum DnsProbeResult {
DNS_PROBE_MAX
};
+enum DnsProbeError {
mmenke 2013/04/01 17:44:12 I think separating this out from DnsProbeResult is
Deprecated (see juliatuttle) 2013/04/09 20:35:49 Done.
+ // Error is eligible for a DNS probe; we don't know until we get an IPC
+ // whether we are running one.
+ DNS_PROBE_ERR_POSSIBLE,
+
+ // We know we are running a DNS probe, but don't know the result yet.
+ DNS_PROBE_ERR_RUNNING,
+
+ // We finished a probe. (This must remain the last element; the result is
+ // added to it before passing to GetErrorStrings.
mmenke 2013/04/01 17:44:12 nit: Missing close parens.
Deprecated (see juliatuttle) 2013/04/09 20:35:49 Done.
+ DNS_PROBE_ERR_FINISHED, // + DnsProbeResult
mmenke 2013/04/01 17:44:12 nit: Two spaces between code and comment.
Deprecated (see juliatuttle) 2013/04/09 20:35:49 Done.
+};
+
+const char* DnsProbeErrorToString(int error);
+
+extern const char kDnsProbeErrorDomain[];
+
} // namespace chrome_common_net
#endif // CHROME_COMMON_NET_NET_ERROR_INFO_H_

Powered by Google App Engine
This is Rietveld 408576698