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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.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
« no previous file with comments | « no previous file | components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.h
index 351f9bae836e3edab609c1170ac31e5c67ad9ae6..7357c4beb3a5fca56d4fc7f46059ba3783d6396a 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.h
@@ -34,20 +34,21 @@ struct LoadTimingInfo;
class URLFetcher;
class URLRequestContextGetter;
class URLRequestStatus;
}
namespace data_reduction_proxy {
class ClientConfig;
class DataReductionProxyConfig;
class DataReductionProxyEventCreator;
+class DataReductionProxyIOData;
class DataReductionProxyMutableConfigValues;
class DataReductionProxyParams;
class DataReductionProxyRequestOptions;
class DataReductionProxyService;
typedef base::Callback<void(const std::string&)> ConfigStorer;
// Retrieves the default net::BackoffEntry::Policy for the Data Reduction Proxy
// configuration service client.
const net::BackoffEntry::Policy& GetBackoffPolicy();
@@ -88,20 +89,21 @@ class DataReductionProxyConfigServiceClient
// The caller must ensure that all parameters remain alive for the lifetime of
// the |DataReductionProxyConfigClient|, with the exception of |params|
// which this instance will own.
DataReductionProxyConfigServiceClient(
std::unique_ptr<DataReductionProxyParams> params,
const net::BackoffEntry::Policy& backoff_policy,
DataReductionProxyRequestOptions* request_options,
DataReductionProxyMutableConfigValues* config_values,
DataReductionProxyConfig* config,
DataReductionProxyEventCreator* event_creator,
+ DataReductionProxyIOData* io_data,
net::NetLog* net_log,
ConfigStorer config_storer);
~DataReductionProxyConfigServiceClient() override;
// Performs initialization on the IO thread.
void InitializeOnIOThread(
net::URLRequestContextGetter* url_request_context_getter);
// Sets whether the configuration should be retrieved or not.
@@ -202,20 +204,23 @@ class DataReductionProxyConfigServiceClient
// The caller must ensure that the |config_values_| outlives this instance.
DataReductionProxyMutableConfigValues* config_values_;
// The caller must ensure that the |config_| outlives this instance.
DataReductionProxyConfig* config_;
// The caller must ensure that the |event_creator_| outlives this instance.
DataReductionProxyEventCreator* event_creator_;
+ // The caller must ensure that the |io_data_| outlives this instance.
+ DataReductionProxyIOData* io_data_;
+
// The caller must ensure that the |net_log_| outlives this instance.
net::NetLog* net_log_;
// Used to persist a serialized Data Reduction Proxy configuration.
ConfigStorer config_storer_;
// Used to calculate the backoff time on request failures.
net::BackoffEntry backoff_entry_;
// The URL for retrieving the Data Reduction Proxy configuration.
« no previous file with comments | « no previous file | components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698