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

Unified Diff: components/precache/core/proto/precache.proto

Issue 2711473006: Add Precache.Fetch.MinWeight UMA. (Closed)
Patch Set: Comment clarifications. Created 3 years, 10 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/proto/precache.proto
diff --git a/components/precache/core/proto/precache.proto b/components/precache/core/proto/precache.proto
index d0bebd2690d031400bfbdf0979361c815a604460..5b987e2a0edc02ab552ca1f11f94457b707dbb43 100644
--- a/components/precache/core/proto/precache.proto
+++ b/components/precache/core/proto/precache.proto
@@ -20,6 +20,12 @@ message PrecacheResource {
// How important this resource is for the host. It ranges from 0.0 to 1.0.
// Higher values mean more important.
optional double weight_ratio = 3;
+
+ // How important this resource is for the client; a combination of
+ // weight_ratio and TopHost.visits. Populated only in PrecacheUnfinishedWork.
+ // This is a non-negative number, with higher being more important. Its value
+ // depends on PrecacheConfigurationSettings.resource_weight_function.
+ optional double weight = 4;
};
message PrecacheManifestId {

Powered by Google App Engine
This is Rietveld 408576698