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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.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_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 edd83e2bec69a3f488653d8adb17666ad406b1fc..e53cd86f3ce64a9f97db3c67ec10a06ec0c27d01 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
@@ -114,20 +114,24 @@ class DataReductionProxyIOData : public DataReductionProxyEventStorageDelegate {
void AddEnabledEvent(std::unique_ptr<base::Value> event,
bool enabled) override;
void AddEventAndSecureProxyCheckState(std::unique_ptr<base::Value> event,
SecureProxyCheckState state) override;
void AddAndSetLastBypassEvent(std::unique_ptr<base::Value> event,
int64_t expiration_ticks) override;
// Returns true if the Data Reduction Proxy is enabled and false otherwise.
bool IsEnabled() const;
+ // Changes the reporting fraction for the pingback service to
+ // |pingback_reporting_fraction|. Overridden in testing.
+ virtual void SetPingbackReportingFraction(float pingback_reporting_fraction);
+
// Various accessor methods.
DataReductionProxyConfigurator* configurator() const {
return configurator_.get();
}
DataReductionProxyConfig* config() const {
return config_.get();
}
DataReductionProxyEventCreator* event_creator() const {

Powered by Google App Engine
This is Rietveld 408576698