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

Side by Side Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.h

Issue 738313003: Fix WeakPtrFactory member ordering in components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_STATIS TICS_PREFS_H_ 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_STATIS TICS_PREFS_H_
6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_STATIS TICS_PREFS_H_ 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_STATIS TICS_PREFS_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/containers/scoped_ptr_hash_map.h" 10 #include "base/containers/scoped_ptr_hash_map.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // Gets an int64, stored as a string, in a ListPref at the specified 90 // Gets an int64, stored as a string, in a ListPref at the specified
91 // index. 91 // index.
92 int64 GetListPrefInt64Value(const base::ListValue& list_update, size_t index); 92 int64 GetListPrefInt64Value(const base::ListValue& list_update, size_t index);
93 93
94 PrefService* pref_service_; 94 PrefService* pref_service_;
95 scoped_refptr<base::SequencedTaskRunner> task_runner_; 95 scoped_refptr<base::SequencedTaskRunner> task_runner_;
96 const base::TimeDelta delay_; 96 const base::TimeDelta delay_;
97 bool delayed_task_posted_; 97 bool delayed_task_posted_;
98 DataReductionProxyPrefMap pref_map_; 98 DataReductionProxyPrefMap pref_map_;
99 DataReductionProxyListPrefMap list_pref_map_; 99 DataReductionProxyListPrefMap list_pref_map_;
100 base::WeakPtrFactory<DataReductionProxyStatisticsPrefs> weak_factory_;
101 scoped_ptr<PrefChangeRegistrar> pref_change_registrar_; 100 scoped_ptr<PrefChangeRegistrar> pref_change_registrar_;
102 base::ThreadChecker thread_checker_; 101 base::ThreadChecker thread_checker_;
103 102
103 base::WeakPtrFactory<DataReductionProxyStatisticsPrefs> weak_factory_;
104
104 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyStatisticsPrefs); 105 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyStatisticsPrefs);
105 }; 106 };
106 107
107 } // namespace data_reduction_proxy 108 } // namespace data_reduction_proxy
108 109
109 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_STA TISTICS_PREFS_H_ 110 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_STA TISTICS_PREFS_H_
OLDNEW
« no previous file with comments | « no previous file | components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698