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

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

Issue 2076663004: Control data saver pingback reporting fraction with protobuf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 6 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/browser/data_reduction_proxy_service.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h
index 0e3d1b2774f2048be159155124e47ee75856e8ce..1f13bff0e67e1d475c7f63024719328f73c099de 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h
@@ -130,20 +130,23 @@ class DataReductionProxyService
void LoadCurrentDataUsageBucket(
const LoadCurrentDataUsageCallback& load_current_data_usage_callback);
void StoreCurrentDataUsageBucket(std::unique_ptr<DataUsageBucket> current);
void DeleteHistoricalDataUsage();
void DeleteBrowsingHistory(const base::Time& start, const base::Time& end);
// Methods for adding/removing observers on |this|.
void AddObserver(DataReductionProxyServiceObserver* observer);
void RemoveObserver(DataReductionProxyServiceObserver* observer);
+ // Sets the reporting fraction in the pingback client.
+ void SetPingbackReportingFraction(float pingback_reporting_fraction);
+
// Accessor methods.
DataReductionProxyCompressionStats* compression_stats() const {
return compression_stats_.get();
}
DataReductionProxyEventStore* event_store() const {
return event_store_.get();
}
net::URLRequestContextGetter* url_request_context_getter() const {

Powered by Google App Engine
This is Rietveld 408576698