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

Unified Diff: trunk/src/base/files/important_file_writer.h

Issue 273243002: Revert 269415 "Introduce a new framework for back-and-forth trac..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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 | trunk/src/base/files/important_file_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/base/files/important_file_writer.h
===================================================================
--- trunk/src/base/files/important_file_writer.h (revision 269437)
+++ trunk/src/base/files/important_file_writer.h (working copy)
@@ -9,7 +9,6 @@
#include "base/base_export.h"
#include "base/basictypes.h"
-#include "base/callback.h"
#include "base/files/file_path.h"
#include "base/memory/ref_counted.h"
#include "base/threading/non_thread_safe.h"
@@ -90,11 +89,6 @@
// Serialize data pending to be saved and execute write on backend thread.
void DoScheduledWrite();
- // Registers |on_next_successful_write| to be called once, on the next
- // successful write event. Only one callback can be set at once.
- void RegisterOnNextSuccessfulWriteCallback(
- const base::Closure& on_next_successful_write);
-
TimeDelta commit_interval() const {
return commit_interval_;
}
@@ -104,13 +98,6 @@
}
private:
- // If |result| is true and |on_next_successful_write_| is set, invokes
- // |on_successful_write_| and then resets it; no-ops otherwise.
- void ForwardSuccessfulWrite(bool result);
-
- // Invoked once and then reset on the next successful write event.
- base::Closure on_next_successful_write_;
-
// Path being written to.
const FilePath path_;
@@ -126,8 +113,6 @@
// Time delta after which scheduled data will be written to disk.
TimeDelta commit_interval_;
- WeakPtrFactory<ImportantFileWriter> weak_factory_;
-
DISALLOW_COPY_AND_ASSIGN(ImportantFileWriter);
};
« no previous file with comments | « no previous file | trunk/src/base/files/important_file_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698