| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PERSISTENT_PREF_STORE_H_ | 5 #ifndef COMPONENTS_PREFS_PERSISTENT_PREF_STORE_H_ |
| 6 #define COMPONENTS_PREFS_PERSISTENT_PREF_STORE_H_ | 6 #define COMPONENTS_PREFS_PERSISTENT_PREF_STORE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 // Schedule a write if there is any lossy data pending. Unlike | 73 // Schedule a write if there is any lossy data pending. Unlike |
| 74 // CommitPendingWrite() this does not immediately sync to disk, instead it | 74 // CommitPendingWrite() this does not immediately sync to disk, instead it |
| 75 // triggers an eventual write if there is lossy data pending and if there | 75 // triggers an eventual write if there is lossy data pending and if there |
| 76 // isn't one scheduled already. | 76 // isn't one scheduled already. |
| 77 virtual void SchedulePendingLossyWrites() = 0; | 77 virtual void SchedulePendingLossyWrites() = 0; |
| 78 | 78 |
| 79 // It should be called only for Incognito pref store. | 79 // It should be called only for Incognito pref store. |
| 80 virtual void ClearMutableValues() = 0; | 80 virtual void ClearMutableValues() = 0; |
| 81 | 81 |
| 82 // Cleans preference data that may have been saved outside of the store. |
| 83 virtual void OnStoreDeletionFromDisk() = 0; |
| 84 |
| 82 protected: | 85 protected: |
| 83 ~PersistentPrefStore() override {} | 86 ~PersistentPrefStore() override {} |
| 84 }; | 87 }; |
| 85 | 88 |
| 86 #endif // COMPONENTS_PREFS_PERSISTENT_PREF_STORE_H_ | 89 #endif // COMPONENTS_PREFS_PERSISTENT_PREF_STORE_H_ |
| OLD | NEW |