| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 virtual bool ReadOnly() const = 0; | 60 virtual bool ReadOnly() const = 0; |
| 61 | 61 |
| 62 // Reads the preferences from disk. | 62 // Reads the preferences from disk. |
| 63 virtual PrefReadError ReadPrefs() = 0; | 63 virtual PrefReadError ReadPrefs() = 0; |
| 64 | 64 |
| 65 // Writes the preferences to disk immediately. | 65 // Writes the preferences to disk immediately. |
| 66 virtual bool WritePrefs() = 0; | 66 virtual bool WritePrefs() = 0; |
| 67 | 67 |
| 68 // Schedules an asynchronous write operation. | 68 // Schedules an asynchronous write operation. |
| 69 virtual void ScheduleWritePrefs() = 0; | 69 virtual void ScheduleWritePrefs() = 0; |
| 70 |
| 71 // Lands any pending writes to disk. |
| 72 virtual void CommitPendingWrite() = 0; |
| 70 }; | 73 }; |
| 71 | 74 |
| 72 #endif // CHROME_COMMON_PERSISTENT_PREF_STORE_H_ | 75 #endif // CHROME_COMMON_PERSISTENT_PREF_STORE_H_ |
| OLD | NEW |