Adding a feature to block by resource type in NoStatePrefetch
This CL introduces a feature and functionality to block certain
resources in the context of NoStatePrefetch. The largest functionality
is blocking images, JS, or "other" resources based on experiment
configuration.
Bug: 934466
Change-Id: If5905e4cf4de2abd83be48ecd9ce8d915758d54c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1653989
Commit-Queue: Ryan Sturm <[email protected]>
Reviewed-by: Kinuko Yasuda <[email protected]>
Reviewed-by: Kouhei Ueno <[email protected]>
Reviewed-by: Tarun Bansal <[email protected]>
Cr-Commit-Position: refs/heads/master@{#676984}
diff --git a/third_party/blink/common/features.cc b/third_party/blink/common/features.cc
index 86d23b9..a7c9bc3 100644
--- a/third_party/blink/common/features.cc
+++ b/third_party/blink/common/features.cc
@@ -280,6 +280,10 @@
const base::Feature kAudioWorkletRealtimeThread{
"AudioWorkletRealtimeThread", base::FEATURE_DISABLED_BY_DEFAULT};
+// A feature to reduce the set of resources fetched by No-State Prefetch.
+const base::Feature kLightweightNoStatePrefetch{
+ "kLightweightNoStatePrefetch", base::FEATURE_DISABLED_BY_DEFAULT};
+
// Use scroll gestures for scrollbar scrolls (see https://crbug.com/954007).
const base::Feature kScrollbarInjectScrollGestures{
"ScrollbarInjectScrollGestures", base::FEATURE_ENABLED_BY_DEFAULT};