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

Unified Diff: remoting/host/json_host_config.h

Issue 10007048: Cleanup and simplify HostConfig and JsonHostConfig. (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 | « remoting/host/in_memory_host_config.cc ('k') | remoting/host/json_host_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/json_host_config.h
diff --git a/remoting/host/json_host_config.h b/remoting/host/json_host_config.h
index e04238cef5855655836cbecaa18164b5f1cdff02..0ef997accaf522d17b287083b85ce983741b0bbf 100644
--- a/remoting/host/json_host_config.h
+++ b/remoting/host/json_host_config.h
@@ -8,8 +8,6 @@
#include <string>
#include "base/file_path.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "remoting/host/in_memory_host_config.h"
namespace base {
@@ -21,20 +19,16 @@ namespace remoting {
// JsonHostConfig implements MutableHostConfig for JSON file.
class JsonHostConfig : public InMemoryHostConfig {
public:
- JsonHostConfig(const FilePath& pref_filename,
- base::MessageLoopProxy* file_message_loop_proxy);
+ JsonHostConfig(const FilePath& filename);
virtual ~JsonHostConfig();
virtual bool Read();
// MutableHostConfig interface.
- virtual void Save() OVERRIDE;
+ virtual bool Save() OVERRIDE;
private:
- void DoWrite();
-
FilePath filename_;
- scoped_refptr<base::MessageLoopProxy> message_loop_proxy_;
DISALLOW_COPY_AND_ASSIGN(JsonHostConfig);
};
« no previous file with comments | « remoting/host/in_memory_host_config.cc ('k') | remoting/host/json_host_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698