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

Unified Diff: chrome/browser/predictors/resource_prefetch_predictor.proto

Issue 2388783002: predictors: Refactor resource_prefetch_predictor_tables. (Closed)
Patch Set: Remove duplication. Created 4 years, 2 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: chrome/browser/predictors/resource_prefetch_predictor.proto
diff --git a/chrome/browser/predictors/resource_prefetch_predictor.proto b/chrome/browser/predictors/resource_prefetch_predictor.proto
index 6d2a59be1a5bf56905c926b4bb44a4ef367e4a11..18e9c99e32024c380b22b022bd04c0c465368eee 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor.proto
+++ b/chrome/browser/predictors/resource_prefetch_predictor.proto
@@ -18,6 +18,7 @@ message Metadata {
optional uint64 last_visit_time = 2;
}
+// Represents information about single subresource.
Benoit L 2016/10/04 15:43:57 nit: Represents a single subresource.
alexilin 2016/10/04 17:25:46 Done.
message ResourceData {
// Mirrors content::ResourceType.
enum ResourceType {
@@ -62,6 +63,14 @@ message ResourceData {
optional bool always_revalidate = 9;
}
+// Represents collection of subresources associated with URL or host.
Benoit L 2016/10/04 15:43:57 nit: Represents a collection of subresources assoc
alexilin 2016/10/04 17:25:46 Done.
+message PrefetchData {
+ // Represents main frame URL of host.
Benoit L 2016/10/04 15:43:57 nit: Main frame URL or host.
alexilin 2016/10/04 17:25:46 Done.
+ optional string primary_key = 1;
+ optional uint64 last_visit_time = 2;
+ repeated ResourceData resources = 3;
+}
+
// Represents a mapping from URL or host to a list of redirect endpoints.
message RedirectData {
// Represents a single redirect chain endpoint.

Powered by Google App Engine
This is Rietveld 408576698