diff options
author | zelidrag@chromium.org <zelidrag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-08 04:40:59 +0000 |
---|---|---|
committer | zelidrag@chromium.org <zelidrag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-08 04:40:59 +0000 |
commit | 0de615a09db2bc15d4395063ec9683c1499c59a1 (patch) | |
tree | cadb1ae00204ebd53756a6dbb19d17832cb9fa84 /chrome/service/service_process_prefs.h | |
parent | 667be6ec365f627ba2a5628cfc8de0054a111b2f (diff) | |
download | chromium_src-0de615a09db2bc15d4395063ec9683c1499c59a1.zip chromium_src-0de615a09db2bc15d4395063ec9683c1499c59a1.tar.gz chromium_src-0de615a09db2bc15d4395063ec9683c1499c59a1.tar.bz2 |
Moved JsonPrefStore to use SequencedWorkerPool instead of FILE thread. The pool also ensures that the same file requests are written in order received and that they block on shutdown.
BUG=153367
TEST=existing unit/browser tests
Review URL: https://codereview.chromium.org/11027070
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166603 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service/service_process_prefs.h')
-rw-r--r-- | chrome/service/service_process_prefs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/service/service_process_prefs.h b/chrome/service/service_process_prefs.h index 018ce1d..fdbf22e 100644 --- a/chrome/service/service_process_prefs.h +++ b/chrome/service/service_process_prefs.h @@ -12,16 +12,16 @@ namespace base { class DictionaryValue; class ListValue; +class SequencedTaskRunner; } // Manages persistent preferences for the service process. This is basically a // thin wrapper around JsonPrefStore for more comfortable use. class ServiceProcessPrefs { public: - // |file_message_loop_proxy| is the MessageLoopProxy for a thread on which - // file I/O can be done. + // |sequenced_task_runner| must be a shutdown-blocking task runner. ServiceProcessPrefs(const FilePath& pref_filename, - base::MessageLoopProxy* file_message_loop_proxy); + base::SequencedTaskRunner* task_runner); ~ServiceProcessPrefs(); // Read preferences from the backing file. |