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

Unified Diff: components/data_reduction_proxy/core/common/lofi_decider.h

Issue 2848293002: Adding the Previews infobar to pages that show a client LoFi image (Closed)
Patch Set: sclittle nit Created 3 years, 7 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
« no previous file with comments | « components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_reduction_proxy/core/common/lofi_decider.h
diff --git a/components/data_reduction_proxy/core/common/lofi_decider.h b/components/data_reduction_proxy/core/common/lofi_decider.h
index 2eca7590fdb2d5545c9dd490b95edeecfb31c5ef..c0b3858cbaec06680412dcea48412c84810ad3bd 100644
--- a/components/data_reduction_proxy/core/common/lofi_decider.h
+++ b/components/data_reduction_proxy/core/common/lofi_decider.h
@@ -63,6 +63,10 @@ class LoFiDecider {
// true if Lo-Fi is enabled for |request|, Chrome session is in Lo-Fi
// Enabled or Control field trial, and the network quality was slow.
virtual bool ShouldRecordLoFiUMA(const net::URLRequest& request) const = 0;
+
+ // Returns whether the request was a client-side Lo-Fi image request.
+ virtual bool IsClientLoFiImageRequest(
+ const net::URLRequest& request) const = 0;
};
} // namespace data_reduction_proxy
« no previous file with comments | « components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698