Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1403)

Side by Side Diff: chrome/common/persistent_pref_store.h

Issue 6713032: Provide lazy CommitPendingWrites in addition to eager SavePersistentPrefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed notification + rebase Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« chrome/common/important_file_writer.cc ('K') | « chrome/common/json_pref_store.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698