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

Side by Side Diff: chrome/browser/prefs/tracked/pref_hash_filter.h

Issue 624173002: replace OVERRIDE and FINAL with override and final in chrome/browser/[j-q]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_PREFS_TRACKED_PREF_HASH_FILTER_H_ 5 #ifndef CHROME_BROWSER_PREFS_TRACKED_PREF_HASH_FILTER_H_
6 #define CHROME_BROWSER_PREFS_TRACKED_PREF_HASH_FILTER_H_ 6 #define CHROME_BROWSER_PREFS_TRACKED_PREF_HASH_FILTER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Clears the time of the last reset event, if any, for the provided user 87 // Clears the time of the last reset event, if any, for the provided user
88 // preferences. 88 // preferences.
89 static void ClearResetTime(PrefService* user_prefs); 89 static void ClearResetTime(PrefService* user_prefs);
90 90
91 // Initializes the PrefHashStore with hashes of the tracked preferences in 91 // Initializes the PrefHashStore with hashes of the tracked preferences in
92 // |pref_store_contents|. |pref_store_contents| will be the |storage| passed 92 // |pref_store_contents|. |pref_store_contents| will be the |storage| passed
93 // to PrefHashStore::BeginTransaction(). 93 // to PrefHashStore::BeginTransaction().
94 void Initialize(base::DictionaryValue* pref_store_contents); 94 void Initialize(base::DictionaryValue* pref_store_contents);
95 95
96 // PrefFilter remaining implementation. 96 // PrefFilter remaining implementation.
97 virtual void FilterUpdate(const std::string& path) OVERRIDE; 97 virtual void FilterUpdate(const std::string& path) override;
98 virtual void FilterSerializeData( 98 virtual void FilterSerializeData(
99 base::DictionaryValue* pref_store_contents) OVERRIDE; 99 base::DictionaryValue* pref_store_contents) override;
100 100
101 private: 101 private:
102 // InterceptablePrefFilter implementation. 102 // InterceptablePrefFilter implementation.
103 virtual void FinalizeFilterOnLoad( 103 virtual void FinalizeFilterOnLoad(
104 const PostFilterOnLoadCallback& post_filter_on_load_callback, 104 const PostFilterOnLoadCallback& post_filter_on_load_callback,
105 scoped_ptr<base::DictionaryValue> pref_store_contents, 105 scoped_ptr<base::DictionaryValue> pref_store_contents,
106 bool prefs_altered) OVERRIDE; 106 bool prefs_altered) override;
107 107
108 // Callback to be invoked only once (and subsequently reset) on the next 108 // Callback to be invoked only once (and subsequently reset) on the next
109 // FilterOnLoad event. It will be allowed to modify the |prefs| handed to 109 // FilterOnLoad event. It will be allowed to modify the |prefs| handed to
110 // FilterOnLoad before handing them back to this PrefHashFilter. 110 // FilterOnLoad before handing them back to this PrefHashFilter.
111 FilterOnLoadInterceptor filter_on_load_interceptor_; 111 FilterOnLoadInterceptor filter_on_load_interceptor_;
112 112
113 // A map of paths to TrackedPreferences; this map owns this individual 113 // A map of paths to TrackedPreferences; this map owns this individual
114 // TrackedPreference objects. 114 // TrackedPreference objects.
115 typedef base::ScopedPtrHashMap<std::string, TrackedPreference> 115 typedef base::ScopedPtrHashMap<std::string, TrackedPreference>
116 TrackedPreferencesMap; 116 TrackedPreferencesMap;
(...skipping 12 matching lines...) Expand all
129 // FilterSerializeData. 129 // FilterSerializeData.
130 ChangedPathsMap changed_paths_; 130 ChangedPathsMap changed_paths_;
131 131
132 // Whether to report the validity of the super MAC at load time (via UMA). 132 // Whether to report the validity of the super MAC at load time (via UMA).
133 bool report_super_mac_validity_; 133 bool report_super_mac_validity_;
134 134
135 DISALLOW_COPY_AND_ASSIGN(PrefHashFilter); 135 DISALLOW_COPY_AND_ASSIGN(PrefHashFilter);
136 }; 136 };
137 137
138 #endif // CHROME_BROWSER_PREFS_TRACKED_PREF_HASH_FILTER_H_ 138 #endif // CHROME_BROWSER_PREFS_TRACKED_PREF_HASH_FILTER_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/tracked/pref_hash_browsertest.cc ('k') | chrome/browser/prefs/tracked/pref_hash_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698