Index: components/data_reduction_proxy/content/browser/content_lofi_decider.cc |
diff --git a/components/data_reduction_proxy/content/browser/content_lofi_decider.cc b/components/data_reduction_proxy/content/browser/content_lofi_decider.cc |
index d24fab4bb500569f6837daf9d9ce16846a5bb0e9..dc203b99319c979c4bf6ea15c64da066277bc8e5 100644 |
--- a/components/data_reduction_proxy/content/browser/content_lofi_decider.cc |
+++ b/components/data_reduction_proxy/content/browser/content_lofi_decider.cc |
@@ -221,4 +221,11 @@ bool ContentLoFiDecider::IsClientLoFiImageRequest( |
(request_info->GetPreviewsState() & content::CLIENT_LOFI_ON); |
} |
+bool ContentLoFiDecider::IsClientLoFiAutoReloadRequest( |
+ const net::URLRequest& request) const { |
+ const content::ResourceRequestInfo* request_info = |
+ content::ResourceRequestInfo::ForRequest(&request); |
+ return request_info && |
+ (request_info->GetPreviewsState() & content::CLIENT_LOFI_AUTO_RELOAD); |
+} |
} // namespace data_reduction_proxy |