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

Unified Diff: components/precache/core/precache_database.h

Issue 2146023003: Add UMA Precache.Freshness.Prefetch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Doc changes Created 4 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 side-by-side diff with in-line comments
Download patch
Index: components/precache/core/precache_database.h
diff --git a/components/precache/core/precache_database.h b/components/precache/core/precache_database.h
index aaea1ca9bbc005fec56820e787c0038a8b80df3e..89e416ac62be71287166e509b7f4835baebef086 100644
--- a/components/precache/core/precache_database.h
+++ b/components/precache/core/precache_database.h
@@ -21,6 +21,7 @@
#include "components/precache/core/precache_fetcher.h"
#include "components/precache/core/precache_session_table.h"
#include "components/precache/core/precache_url_table.h"
+#include "net/http/http_response_info.h"
class GURL;
@@ -63,8 +64,8 @@ class PrecacheDatabase {
void RecordURLPrefetch(const GURL& url,
const base::TimeDelta& latency,
const base::Time& fetch_time,
- int64_t size,
- bool was_cached);
+ const net::HttpResponseInfo& info,
+ int64_t size);
// Report precache-related metrics in response to a URL being fetched, where
// the fetch was not motivated by precaching. |is_connection_cellular|
@@ -72,8 +73,8 @@ class PrecacheDatabase {
void RecordURLNonPrefetch(const GURL& url,
const base::TimeDelta& latency,
const base::Time& fetch_time,
+ const net::HttpResponseInfo& info,
int64_t size,
- bool was_cached,
int host_rank,
bool is_connection_cellular);

Powered by Google App Engine
This is Rietveld 408576698