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

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

Issue 2010253003: Sending a data saver Pageload metrics pingback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 f62fd8ba849f279ea94850f057f7c123fcb0aa4c..0e3d1b2774f2048be159155124e47ee75856e8ce 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
@@ -33,20 +33,21 @@ class Value;
namespace net {
class URLRequestContextGetter;
}
namespace data_reduction_proxy {
class DataReductionProxyCompressionStats;
class DataReductionProxyEventStore;
class DataReductionProxyIOData;
+class DataReductionProxyPingbackClient;
class DataReductionProxyServiceObserver;
class DataReductionProxySettings;
// Contains and initializes all Data Reduction Proxy objects that have a
// lifetime based on the UI thread.
class DataReductionProxyService
: public base::NonThreadSafe,
public DataReductionProxyEventStorageDelegate {
public:
// The caller must ensure that |settings|, |prefs|, |request_context|, and
@@ -142,20 +143,24 @@ class DataReductionProxyService
}
DataReductionProxyEventStore* event_store() const {
return event_store_.get();
}
net::URLRequestContextGetter* url_request_context_getter() const {
return url_request_context_getter_;
}
+ DataReductionProxyPingbackClient* pingback_client() const {
+ return pingback_client_.get();
+ }
+
base::WeakPtr<DataReductionProxyService> GetWeakPtr();
private:
FRIEND_TEST_ALL_PREFIXES(DataReductionProxySettingsTest,
TestLoFiSessionStateHistograms);
// Values of the UMA DataReductionProxy.LoFi.SessionState histogram.
// This enum must remain synchronized with DataReductionProxyLoFiSessionState
// in metrics/histograms/histograms.xml.
enum LoFiSessionState {
@@ -169,20 +174,22 @@ class DataReductionProxyService
// Records UMA for Lo-Fi session state.
void RecordLoFiSessionState(LoFiSessionState state);
net::URLRequestContextGetter* url_request_context_getter_;
// Tracks compression statistics to be displayed to the user.
std::unique_ptr<DataReductionProxyCompressionStats> compression_stats_;
std::unique_ptr<DataReductionProxyEventStore> event_store_;
+ std::unique_ptr<DataReductionProxyPingbackClient> pingback_client_;
+
DataReductionProxySettings* settings_;
// A prefs service for storing data.
PrefService* prefs_;
std::unique_ptr<DBDataOwner> db_data_owner_;
// Used to post tasks to |io_data_|.
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;

Powered by Google App Engine
This is Rietveld 408576698