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 BASE_PREFS_PERSISTENT_PREF_STORE_H_ | 5 #ifndef BASE_PREFS_PERSISTENT_PREF_STORE_H_ |
6 #define BASE_PREFS_PERSISTENT_PREF_STORE_H_ | 6 #define BASE_PREFS_PERSISTENT_PREF_STORE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/prefs/base_prefs_export.h" | 10 #include "base/prefs/base_prefs_export.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // Reads the preferences from disk asynchronously. Notifies observers via | 61 // Reads the preferences from disk asynchronously. Notifies observers via |
62 // "PrefStore::OnInitializationCompleted" when done. Also it fires | 62 // "PrefStore::OnInitializationCompleted" when done. Also it fires |
63 // |error_delegate| if it is not NULL and reading error has occurred. | 63 // |error_delegate| if it is not NULL and reading error has occurred. |
64 // Owns |error_delegate|. | 64 // Owns |error_delegate|. |
65 virtual void ReadPrefsAsync(ReadErrorDelegate* error_delegate) = 0; | 65 virtual void ReadPrefsAsync(ReadErrorDelegate* error_delegate) = 0; |
66 | 66 |
67 // Lands any pending writes to disk. | 67 // Lands any pending writes to disk. |
68 virtual void CommitPendingWrite() = 0; | 68 virtual void CommitPendingWrite() = 0; |
69 | 69 |
70 protected: | 70 protected: |
71 virtual ~PersistentPrefStore() {} | 71 ~PersistentPrefStore() override {} |
72 }; | 72 }; |
73 | 73 |
74 #endif // BASE_PREFS_PERSISTENT_PREF_STORE_H_ | 74 #endif // BASE_PREFS_PERSISTENT_PREF_STORE_H_ |
OLD | NEW |