| Index: chrome/common/important_file_writer.h
|
| diff --git a/chrome/common/important_file_writer.h b/chrome/common/important_file_writer.h
|
| index 5bd5deff44bac68c517da7f62495508aa5b10844..e0a5f5582ab01be4d5ab8c86a56ad1232e7c4558 100644
|
| --- a/chrome/common/important_file_writer.h
|
| +++ b/chrome/common/important_file_writer.h
|
| @@ -15,7 +15,7 @@
|
| #include "base/timer.h"
|
|
|
| namespace base {
|
| -class MessageLoopProxy;
|
| +class TaskRunner;
|
| class Thread;
|
| }
|
|
|
| @@ -52,11 +52,11 @@ class ImportantFileWriter : public base::NonThreadSafe {
|
|
|
| // Initialize the writer.
|
| // |path| is the name of file to write.
|
| - // |file_message_loop_proxy| is the MessageLoopProxy for a thread on which
|
| + // |task_runner| is the MessageLoopProxy or SequencedWorkerPool instance where
|
| // file I/O can be done.
|
| // All non-const methods, ctor and dtor must be called on the same thread.
|
| ImportantFileWriter(const FilePath& path,
|
| - base::MessageLoopProxy* file_message_loop_proxy);
|
| + base::TaskRunner* task_runner);
|
|
|
| // You have to ensure that there are no pending writes at the moment
|
| // of destruction.
|
| @@ -95,8 +95,8 @@ class ImportantFileWriter : public base::NonThreadSafe {
|
| // Path being written to.
|
| const FilePath path_;
|
|
|
| - // MessageLoopProxy for the thread on which file I/O can be done.
|
| - scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy_;
|
| + // TaskRunner for the thread on which file I/O can be done.
|
| + scoped_refptr<base::TaskRunner> task_runner_;
|
|
|
| // Timer used to schedule commit after ScheduleWrite.
|
| base::OneShotTimer<ImportantFileWriter> timer_;
|
|
|