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

Side by Side Diff: base/prefs/persistent_pref_store.h

Issue 1180693002: Update from https://crrev.com/333737 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 6 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
« no previous file with comments | « base/prefs/overlay_user_pref_store.cc ('k') | base/prefs/pref_notifier_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
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 // Schedule a write if there is any lossy data pending. Unlike
71 // CommitPendingWrite() this does not immediately sync to disk, instead it
72 // triggers an eventual write if there is lossy data pending and if there
73 // isn't one scheduled already.
74 virtual void SchedulePendingLossyWrites() = 0;
75
70 protected: 76 protected:
71 ~PersistentPrefStore() override {} 77 ~PersistentPrefStore() override {}
72 }; 78 };
73 79
74 #endif // BASE_PREFS_PERSISTENT_PREF_STORE_H_ 80 #endif // BASE_PREFS_PERSISTENT_PREF_STORE_H_
OLDNEW
« no previous file with comments | « base/prefs/overlay_user_pref_store.cc ('k') | base/prefs/pref_notifier_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698