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

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

Issue 2873793002: Record Data Savings for Client-Side LoFi (Closed)
Patch Set: fix crash in DRPNetworkDelegate when lofi_ui_service is null. 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
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 c0b3858cbaec06680412dcea48412c84810ad3bd..867ecf5059dfab84f6e6d0f68ca0838b3a3e6cdc 100644
--- a/components/data_reduction_proxy/core/common/lofi_decider.h
+++ b/components/data_reduction_proxy/core/common/lofi_decider.h
@@ -67,6 +67,11 @@ class LoFiDecider {
// Returns whether the request was a client-side Lo-Fi image request.
virtual bool IsClientLoFiImageRequest(
const net::URLRequest& request) const = 0;
+
+ // Returns true if the request is for a client-side Lo-Fi image that is being
+ // automatically reloaded because of a decoding error.
+ virtual bool IsClientLoFiAutoReloadRequest(
+ const net::URLRequest& request) const = 0;
};
} // namespace data_reduction_proxy

Powered by Google App Engine
This is Rietveld 408576698