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

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

Issue 989663002: HistoricNetworkStatsInfoToValue should use statistics prefs values (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments Created 5 years, 9 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_statistics_prefs.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.h
index 3aea4f40646b4cfc2109e28b3b56b63651563c72..7c5070b649f2c133806a9d8803bb740f161d8f5d 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.h
@@ -21,6 +21,7 @@ class PrefService;
namespace base {
class ListValue;
class SequencedTaskRunner;
+class Value;
}
namespace data_reduction_proxy {
@@ -64,6 +65,11 @@ public:
// |DataReductionProxyListPrefMap| to |pref_service|.
void WritePrefs();
+ // Creates a |Value| summary of the persistent state of the network session.
+ // The caller is responsible for deleting the returned value.
+ // Must be called on the UI thread.
+ base::Value* HistoricNetworkStatsInfoToValue();
+
base::WeakPtr<DataReductionProxyStatisticsPrefs> GetWeakPtr();
private:

Powered by Google App Engine
This is Rietveld 408576698