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

Unified Diff: net/dns/dns_util.h

Issue 1908543002: DNS: Retain stale entries in HostCache and return when requested (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, tweak histograms a bit Created 4 years, 8 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
« no previous file with comments | « no previous file | net/dns/dns_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_util.h
diff --git a/net/dns/dns_util.h b/net/dns/dns_util.h
index 1acbd668cdcd7670ed60ba13159ccc5cb79758e7..bd13b7953ad29666e67ed165c152d0244fc4582d 100644
--- a/net/dns/dns_util.h
+++ b/net/dns/dns_util.h
@@ -14,6 +14,8 @@
namespace net {
+class AddressList;
+
// DNSDomainFromDot - convert a domain string to DNS format. From DJB's
// public domain DNS library.
//
@@ -40,6 +42,22 @@ base::TimeDelta GetTimeDeltaForConnectionTypeFromFieldTrialOrDefault(
NetworkChangeNotifier::ConnectionType connection_type);
#endif // !defined(OS_NACL)
+// Used in histograms; please only insert new entries before MAX.
Ryan Sleevi 2016/04/26 02:18:22 Comment nit: While politeness is a virtue, it leav
Ryan Sleevi 2016/04/26 02:18:22 Comment nit: This doesn't explain the type // The
Ryan Sleevi 2016/04/26 02:18:22 If they're used in histograms, you should add expl
Julia Tuttle 2016/04/27 14:47:04 Done (all three; the new rietveld UI won't let me
+enum AddressListDeltaType {
+ // a and b contain the same addresses in the same order.
Ryan Sleevi 2016/04/26 02:18:22 nit: "a" and "b" are not defined here (they're an
Julia Tuttle 2016/04/27 14:47:04 Done.
+ DELTA_IDENTICAL,
+ // a and b contain the same addresses in a different order.
+ DELTA_REORDERED,
+ // a and b have at least one address in common, but not all of them.
+ DELTA_OVERLAP,
+ // a and b have no addresses in common.
+ DELTA_DISJOINT,
+ MAX_DELTA_TYPE
Ryan Sleevi 2016/04/26 02:18:22 naming: Given that you adopted ENUM_PREFIX naming,
Julia Tuttle 2016/04/27 14:47:04 I usually make an exception for the max value cons
+};
+
+AddressListDeltaType FindAddressListDeltaType(const AddressList& a,
Ryan Sleevi 2016/04/26 02:18:22 Document? :)
Julia Tuttle 2016/04/27 14:47:04 Done (the new rietveld UI has no button for this :
+ const AddressList& b);
+
} // namespace net
#endif // NET_DNS_DNS_UTIL_H_
« no previous file with comments | « no previous file | net/dns/dns_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698