OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_COMMON_PERSISTENT_PREF_STORE_H_ | 5 #ifndef CHROME_COMMON_PERSISTENT_PREF_STORE_H_ |
6 #define CHROME_COMMON_PERSISTENT_PREF_STORE_H_ | 6 #define CHROME_COMMON_PERSISTENT_PREF_STORE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 virtual void ReadPrefsAsync(ReadErrorDelegate* error_delegate) = 0; | 80 virtual void ReadPrefsAsync(ReadErrorDelegate* error_delegate) = 0; |
81 | 81 |
82 // Writes the preferences to disk immediately. | 82 // Writes the preferences to disk immediately. |
83 virtual bool WritePrefs() = 0; | 83 virtual bool WritePrefs() = 0; |
84 | 84 |
85 // Schedules an asynchronous write operation. | 85 // Schedules an asynchronous write operation. |
86 virtual void ScheduleWritePrefs() = 0; | 86 virtual void ScheduleWritePrefs() = 0; |
87 | 87 |
88 // Lands any pending writes to disk. | 88 // Lands any pending writes to disk. |
89 virtual void CommitPendingWrite() = 0; | 89 virtual void CommitPendingWrite() = 0; |
90 | |
91 // TODO(sky): remove this. It's used in tracking 91396. | |
92 // Used for debugging. Crashes if the value at |key| is unexpected deleted. | |
93 virtual void CheckIfValueDestroyed(const std::string& key) = 0; | |
94 }; | 90 }; |
95 | 91 |
96 #endif // CHROME_COMMON_PERSISTENT_PREF_STORE_H_ | 92 #endif // CHROME_COMMON_PERSISTENT_PREF_STORE_H_ |
OLD | NEW |