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

Unified Diff: components/precache/content/precache_manager.h

Issue 2146023003: Add UMA Precache.Freshness.Prefetch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added missing includes 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
« no previous file with comments | « chrome/browser/precache/precache_util.cc ('k') | components/precache/content/precache_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/precache/content/precache_manager.h
diff --git a/components/precache/content/precache_manager.h b/components/precache/content/precache_manager.h
index 259ced7678a585fbac5d62d569a4efd0fe06eebf..0c1dc18e753beb7edfcb7d5da7d9178d5641bd1e 100644
--- a/components/precache/content/precache_manager.h
+++ b/components/precache/content/precache_manager.h
@@ -37,6 +37,10 @@ namespace history {
class HistoryService;
}
+namespace net {
+class HttpResponseInfo;
+}
+
namespace sync_driver {
class SyncService;
}
@@ -108,8 +112,8 @@ class PrecacheManager : public KeyedService,
const GURL& referrer,
const base::TimeDelta& latency,
const base::Time& fetch_time,
+ const net::HttpResponseInfo& info,
int64_t size,
- bool was_cached,
bool is_user_traffic);
private:
@@ -159,16 +163,16 @@ class PrecacheManager : public KeyedService,
const GURL& referrer,
const base::TimeDelta& latency,
const base::Time& fetch_time,
- int64_t size,
- bool was_cached);
+ const net::HttpResponseInfo& info,
+ int64_t size);
// Update precache-related metrics in response to a URL being fetched. Called
// by RecordStatsForFetch() by way of an asynchronous HistoryService callback.
void RecordStatsForFetchInternal(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);
// The browser context that owns this PrecacheManager.
« no previous file with comments | « chrome/browser/precache/precache_util.cc ('k') | components/precache/content/precache_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698