summaryrefslogtreecommitdiff
path: root/chromium/components/optimization_guide/proto/hints.proto
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/optimization_guide/proto/hints.proto')
-rw-r--r--chromium/components/optimization_guide/proto/hints.proto20
1 files changed, 16 insertions, 4 deletions
diff --git a/chromium/components/optimization_guide/proto/hints.proto b/chromium/components/optimization_guide/proto/hints.proto
index a17704598e9..b0c73b844dc 100644
--- a/chromium/components/optimization_guide/proto/hints.proto
+++ b/chromium/components/optimization_guide/proto/hints.proto
@@ -136,6 +136,9 @@ enum OptimizationType {
// This optimization provides the Loading Predictor with resources predicted
// to be on the page.
LOADING_PREDICTOR = 9;
+ // This optimization provides information about hosts that historically
+ // provide a fast and responsive user experience.
+ FAST_HOST_HINTS = 10;
}
// Presents semantics for how page load URLs should be matched.
@@ -247,9 +250,7 @@ message BloomFilter {
optional bytes data = 3;
}
-// A scalable filter for an optimization type. Initially, this is used to
-// provide a large scale blacklist but might be used for whitelists in
-// the future.
+// A scalable filter for an optimization type.
message OptimizationFilter {
// The type of optimization this filter applies to.
optional OptimizationType optimization_type = 1;
@@ -258,6 +259,9 @@ message OptimizationFilter {
// Additional filters represented as regexps matched against the main page
// URL.
repeated string regexps = 3;
+ // Whether additional host suffixes (other than the host) should be checked
+ // against the filter.
+ optional bool skip_host_suffix_checking = 4;
}
message Configuration {
@@ -277,8 +281,16 @@ message Configuration {
// details for that key that it wants to provide as the client will only
// look at that one record to decide which optimization to apply.
repeated Hint hints = 1;
- // A list of per-optimization blacklists.
+ // A set of per-optimization blacklists.
+ //
+ // It is guaranteed that an optimization type will not have filters in both
+ // |optimization_blacklists| and |optimization_allowlists|.
repeated OptimizationFilter optimization_blacklists = 2;
+ // A set of per-optimization allowlists.
+ //
+ // It is guaranteed that an optimization type will not have filters in both
+ // |optimization_blacklists| and |optimization_allowlists|.
+ repeated OptimizationFilter optimization_allowlists = 3;
}
message Timestamp {