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

Unified Diff: net/log/net_log_util.cc

Issue 2773023003: Add more data to net-internals view of DNS cache (Closed)
Patch Set: Created 3 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
« chrome/test/data/webui/net_internals/dns_view.js ('K') | « net/dns/host_cache.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/log/net_log_util.cc
diff --git a/net/log/net_log_util.cc b/net/log/net_log_util.cc
index 75c88ea4599c72084554c409c45be0aa31b4740f..2d1b2dcc9f70868a8463aa6cd081a5675e9a7fe6 100644
--- a/net/log/net_log_util.cc
+++ b/net/log/net_log_util.cc
@@ -382,6 +382,7 @@ NET_EXPORT std::unique_ptr<base::DictionaryValue> GetNetInfo(
cache_info_dict->SetInteger("capacity",
static_cast<int>(cache->max_entries()));
+ cache_info_dict->SetInteger("network_changes", cache->network_changes());
base::ListValue* entry_list = new base::ListValue();
@@ -397,6 +398,8 @@ NET_EXPORT std::unique_ptr<base::DictionaryValue> GetNetInfo(
static_cast<int>(key.address_family));
entry_dict->SetString("expiration",
NetLog::TickCountToString(entry.expires()));
+ entry_dict->SetInteger("ttl", entry.ttl().InMilliseconds());
+ entry_dict->SetInteger("network_changes", entry.network_changes());
if (entry.error() != OK) {
entry_dict->SetInteger("error", entry.error());
« chrome/test/data/webui/net_internals/dns_view.js ('K') | « net/dns/host_cache.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698