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

Unified Diff: base/files/important_file_writer.h

Issue 2204943002: Integrate registry_hash_store_contents with the rest of tracked prefs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Experiment with giving two transactions to EnforceAndReport Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/files/important_file_writer.cc » ('j') | base/files/important_file_writer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/important_file_writer.h
diff --git a/base/files/important_file_writer.h b/base/files/important_file_writer.h
index 0bd8a7fd358f037ba26a8768a46b55627a112be3..7643d09b9b26245ecb79d3e1f1d36b14c5d797ff 100644
--- a/base/files/important_file_writer.h
+++ b/base/files/important_file_writer.h
@@ -100,6 +100,11 @@ class BASE_EXPORT ImportantFileWriter : public NonThreadSafe {
void RegisterOnNextSuccessfulWriteCallback(
gab 2016/08/03 18:19:34 Similar to comment below, suggest updating this to
proberge 2016/08/04 00:13:45 Done.
const Closure& on_next_successful_write);
+ // Registers |on_next_successful_write| to be called once, on the next
+ // successful write event. Multiple callbacks can be set at once.
gab 2016/08/03 18:19:34 Your implementation only allows a single callback,
proberge 2016/08/04 00:13:45 Done.
+ void RegisterOnNextSuccessfulWriteBlockingCallback(
gab 2016/08/03 18:19:34 The ImportantFileWriter doesn't have a notion of t
proberge 2016/08/04 00:13:45 Done.
+ const Closure& on_next_successful_write);
+
TimeDelta commit_interval() const {
return commit_interval_;
}
@@ -115,6 +120,10 @@ class BASE_EXPORT ImportantFileWriter : public NonThreadSafe {
// Invoked once and then reset on the next successful write event.
Closure on_next_successful_write_;
gab 2016/08/03 18:19:34 on_next_successful_write_reply_
proberge 2016/08/04 00:13:45 Done.
+ // Invoked on the blocking pool and then reset on the next successful write
+ // event.
+ Closure blocking_on_next_successful_write_;
gab 2016/08/03 18:19:34 // Invoked synchronously on the next successful wr
proberge 2016/08/04 00:13:45 Done.
+
// Path being written to.
const FilePath path_;
« no previous file with comments | « no previous file | base/files/important_file_writer.cc » ('j') | base/files/important_file_writer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698