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

Unified Diff: chrome/common/json_pref_store.h

Issue 10344007: Use worker pool for IO in JsonPrefStore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | « chrome/common/important_file_writer.cc ('k') | chrome/common/json_pref_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/json_pref_store.h
diff --git a/chrome/common/json_pref_store.h b/chrome/common/json_pref_store.h
index 9f71a0efb8e16acb1f9c71d754a9f5a902583578..8ee5881801470a787281bc2a89f0776569fd7171 100644
--- a/chrome/common/json_pref_store.h
+++ b/chrome/common/json_pref_store.h
@@ -19,7 +19,7 @@
namespace base {
class DictionaryValue;
-class MessageLoopProxy;
+class SequencedTaskRunner;
class Value;
}
@@ -29,10 +29,10 @@ class FilePath;
class JsonPrefStore : public PersistentPrefStore,
public ImportantFileWriter::DataSerializer {
public:
- // |file_message_loop_proxy| is the MessageLoopProxy for a thread on which
- // file I/O can be done.
+ // |blocking_task_runner| is the SequencedTaskRunner on which file
+ // I/O can be done.
JsonPrefStore(const FilePath& pref_filename,
- base::MessageLoopProxy* file_message_loop_proxy);
+ base::SequencedTaskRunner* blocking_task_runner);
// PrefStore overrides:
virtual ReadResult GetValue(const std::string& key,
@@ -70,7 +70,7 @@ class JsonPrefStore : public PersistentPrefStore,
virtual bool SerializeData(std::string* output) OVERRIDE;
FilePath path_;
- scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy_;
+ scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
scoped_ptr<base::DictionaryValue> prefs_;
« no previous file with comments | « chrome/common/important_file_writer.cc ('k') | chrome/common/json_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698