Index: net/http/http_cache_transaction.cc |
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc |
index 648199063a7e0f032f885a0467296a01ece8b035..efb21e1df170d8fc01d512acc3c857e71452d9be 100644 |
--- a/net/http/http_cache_transaction.cc |
+++ b/net/http/http_cache_transaction.cc |
@@ -117,6 +117,15 @@ void RecordVaryHeaderHistogram(const net::HttpResponseInfo* response) { |
UMA_HISTOGRAM_ENUMERATION("HttpCache.Vary", vary, VARY_MAX); |
} |
+void RecordNoStoreHeaderHistogram(int load_flags, |
+ const net::HttpResponseInfo* response) { |
+ if (load_flags & net::LOAD_MAIN_FRAME) { |
+ UMA_HISTOGRAM_BOOLEAN( |
+ "Net.MainFrameNoStore", |
+ response->headers->HasHeaderValue("cache-control", "no-store")); |
+ } |
+} |
+ |
} // namespace |
namespace net { |
@@ -1027,6 +1036,7 @@ int HttpCache::Transaction::DoSuccessfulSendRequest() { |
} |
RecordVaryHeaderHistogram(new_response); |
+ RecordNoStoreHeaderHistogram(request_->load_flags, new_response); |
if (new_response_->headers->response_code() == 416 && |
(request_->method == "GET" || request_->method == "POST")) { |