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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h

Issue 2592783002: Move session network stats from IO to UI (Closed)
Patch Set: Created 4 years 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/browser/data_reduction_proxy_io_data.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h
index d9b71e11ed5378a14016bdc8752693506990172c..245c681e164a08d24c82cca7cc860aa3ad50f3ea 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h
@@ -102,14 +102,16 @@ class DataReductionProxyIOData : public DataReductionProxyEventStorageDelegate {
// Sets Lo-Fi mode off in |config_|.
void SetLoFiModeOff();
- // Bridge methods to safely call to the UI thread objects.
- void UpdateContentLengths(
+ // Bridge methods to safely call to the UI thread objects. Virtual for
+ // testing.
+ virtual void UpdateContentLengths(
int64_t data_used,
int64_t original_size,
bool data_reduction_proxy_enabled,
DataReductionProxyRequestType request_type,
const scoped_refptr<DataUseGroup>& data_usage_source,
const std::string& mime_type);
+
void SetLoFiModeActiveOnMainFrame(bool lo_fi_mode_active);
// Overrides of DataReductionProxyEventStorageDelegate. Bridges to the UI

Powered by Google App Engine
This is Rietveld 408576698