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

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

Issue 949533004: Rename DataReductionProxyStatisticsPrefs to DataReductionProxyCompressionStats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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_compression_stats.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_compression_stats.h
similarity index 85%
rename from components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.h
rename to components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h
index 3aea4f40646b4cfc2109e28b3b56b63651563c72..41f5556b198ebd5fec11515e2085bf31907df340 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_STATISTICS_PREFS_H_
-#define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_STATISTICS_PREFS_H_
+#ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_COMPRESSION_STATS_H_
+#define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_COMPRESSION_STATS_H_
#include <map>
@@ -30,19 +30,18 @@ namespace data_reduction_proxy {
// |delay| amount of time. If |delay| is zero, the delayed pref service writes
// directly to the PrefService and does not store the prefs in memory. All
// prefs must be stored and read on the UI thread.
-// TODO(bengr): Rename as DataReductionProxyCompressionStats.
-class DataReductionProxyStatisticsPrefs {
+class DataReductionProxyCompressionStats {
public:
// Constructs a data reduction proxy delayed pref service object using
// |pref_service|. Writes prefs to |pref_service| after |delay|
// and stores them in |pref_map_| and |list_pref_map| between writes.
// If |delay| is zero, writes directly to the PrefService and does not store
// in the maps.
- DataReductionProxyStatisticsPrefs(
- PrefService* pref_service,
- scoped_refptr<base::SequencedTaskRunner> task_runner,
- const base::TimeDelta& delay);
- ~DataReductionProxyStatisticsPrefs();
+ DataReductionProxyCompressionStats(
+ PrefService* pref_service,
+ scoped_refptr<base::SequencedTaskRunner> task_runner,
+ const base::TimeDelta& delay);
+ ~DataReductionProxyCompressionStats();
// Loads all data_reduction_proxy::prefs into the |pref_map_| and
// |list_pref_map_|.
@@ -64,7 +63,7 @@ public:
// |DataReductionProxyListPrefMap| to |pref_service|.
void WritePrefs();
- base::WeakPtr<DataReductionProxyStatisticsPrefs> GetWeakPtr();
+ base::WeakPtr<DataReductionProxyCompressionStats> GetWeakPtr();
private:
typedef std::map<const char*, int64> DataReductionProxyPrefMap;
@@ -101,11 +100,11 @@ private:
scoped_ptr<PrefChangeRegistrar> pref_change_registrar_;
base::ThreadChecker thread_checker_;
- base::WeakPtrFactory<DataReductionProxyStatisticsPrefs> weak_factory_;
+ base::WeakPtrFactory<DataReductionProxyCompressionStats> weak_factory_;
- DISALLOW_COPY_AND_ASSIGN(DataReductionProxyStatisticsPrefs);
+ DISALLOW_COPY_AND_ASSIGN(DataReductionProxyCompressionStats);
};
} // namespace data_reduction_proxy
-#endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_STATISTICS_PREFS_H_
+#endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_COMPRESSION_STATS_H_

Powered by Google App Engine
This is Rietveld 408576698