Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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. |
| 52 virtual void FilterSerializeData( | 52 virtual void FilterSerializeData( |
| 53 base::DictionaryValue* pref_store_contents) = 0; | 53 base::DictionaryValue* pref_store_contents) = 0; |
| 54 | |
| 55 // Returns a callback which should be called once the pref_store is written. | |
| 56 virtual base::Closure GetPostSerializeCallback( | |
| 57 base::DictionaryValue* pref_store_contents) = 0; | |
|
gab
2016/08/03 18:19:34
Instead of forcing the caller to call this in a pa
proberge
2016/08/04 00:13:45
Done.
| |
| 54 }; | 58 }; |
| 55 | 59 |
| 56 #endif // COMPONENTS_PREFS_PREF_FILTER_H_ | 60 #endif // COMPONENTS_PREFS_PREF_FILTER_H_ |
| OLD | NEW |