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

Side by Side Diff: components/prefs/pref_filter.h

Issue 2204943002: Integrate registry_hash_store_contents with the rest of tracked prefs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: upload post dependent-patchset commit Created 4 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 COMPONENTS_PREFS_PREF_FILTER_H_ 5 #ifndef COMPONENTS_PREFS_PREF_FILTER_H_
6 #define COMPONENTS_PREFS_PREF_FILTER_H_ 6 #define COMPONENTS_PREFS_PREF_FILTER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 30 matching lines...) Expand all
41 const PostFilterOnLoadCallback& post_filter_on_load_callback, 41 const PostFilterOnLoadCallback& post_filter_on_load_callback,
42 std::unique_ptr<base::DictionaryValue> pref_store_contents) = 0; 42 std::unique_ptr<base::DictionaryValue> pref_store_contents) = 0;
43 43
44 // Receives notification when a pref store value is changed, before Observers 44 // Receives notification when a pref store value is changed, before Observers
45 // are notified. 45 // are notified.
46 virtual void FilterUpdate(const std::string& path) = 0; 46 virtual void FilterUpdate(const std::string& path) = 0;
47 47
48 // Receives notification when the pref store is about to serialize data 48 // Receives notification when the pref store is about to serialize data
49 // contained in |pref_store_contents| to a string. Modifications to 49 // contained in |pref_store_contents| to a string. Modifications to
50 // |pref_store_contents| will be persisted to disk and also affect the 50 // |pref_store_contents| will be persisted to disk and also affect the
51 // in-memory state. 51 // in-memory state. If the returned Callback is non-null, it will be
52 virtual void FilterSerializeData( 52 // registered to be invoked synchronously after the next write (from the I/O
53 // TaskRunner so it must not be bound to thread-unsafe member state).
54 virtual base::Callback<void(bool)> FilterSerializeData(
gab 2016/09/23 14:01:18 As mentioned in post-commit of other CL, I think t
proberge 2016/09/23 15:24:34 I'll add that to https://codereview.chromium.org/2
53 base::DictionaryValue* pref_store_contents) = 0; 55 base::DictionaryValue* pref_store_contents) = 0;
54 }; 56 };
55 57
56 #endif // COMPONENTS_PREFS_PREF_FILTER_H_ 58 #endif // COMPONENTS_PREFS_PREF_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698