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

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

Issue 888713002: DataReductionProxyStatisticsPrefs should support WeakPtr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Webview fix 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_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 a7e48a6827a078ce140d5000aa76eebfdc0c6083..3aea4f40646b4cfc2109e28b3b56b63651563c72 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
@@ -48,8 +48,6 @@ public:
// |list_pref_map_|.
void Init();
- void ShutdownOnUIThread();
-
void OnUpdateContentLengths();
// Gets the int64 pref at |pref_path| from the |DataReductionProxyPrefMap|.
@@ -66,6 +64,8 @@ public:
// |DataReductionProxyListPrefMap| to |pref_service|.
void WritePrefs();
+ base::WeakPtr<DataReductionProxyStatisticsPrefs> GetWeakPtr();
+
private:
typedef std::map<const char*, int64> DataReductionProxyPrefMap;
typedef base::ScopedPtrHashMap<const char*, base::ListValue>

Powered by Google App Engine
This is Rietveld 408576698