diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-25 01:54:52 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-25 01:54:52 +0000 |
commit | 1d31be9d5238491a971fb2b5d9a70041f3997e5a (patch) | |
tree | 6ccbe9d5df4bc50fb5920d64a479631c823d0ca4 /remoting/host/json_host_config.h | |
parent | 71a3d2e01be15bc21f792a94cc1c5cd4d272127d (diff) | |
download | chromium_src-1d31be9d5238491a971fb2b5d9a70041f3997e5a.zip chromium_src-1d31be9d5238491a971fb2b5d9a70041f3997e5a.tar.gz chromium_src-1d31be9d5238491a971fb2b5d9a70041f3997e5a.tar.bz2 |
Removed dependency on chrome/common.
JSONReader and JSONWriter are used to read/write json file instead
of JsonPrefStore.
BUG=none
TEST=unittests
Review URL: http://codereview.chromium.org/2819026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50809 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/json_host_config.h')
-rw-r--r-- | remoting/host/json_host_config.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/remoting/host/json_host_config.h b/remoting/host/json_host_config.h index ac10272..8d73e66 100644 --- a/remoting/host/json_host_config.h +++ b/remoting/host/json_host_config.h @@ -7,13 +7,13 @@ #include <string> +#include "base/file_path.h" #include "base/lock.h" #include "base/ref_counted.h" #include "base/scoped_ptr.h" #include "remoting/host/host_config.h" -class FilePath; -class JsonPrefStore; +class DictionaryValue; class Task; namespace base { @@ -46,9 +46,10 @@ class JsonHostConfig : public MutableHostConfig { private: void DoWrite(); - // |lock_| must be locked whenever we access pref_store_; + // |lock_| must be locked whenever we access values_; Lock lock_; - scoped_ptr<JsonPrefStore> pref_store_; + FilePath filename_; + scoped_ptr<DictionaryValue> values_; scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; DISALLOW_COPY_AND_ASSIGN(JsonHostConfig); |