OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_HOST_JSON_HOST_CONFIG_H_ | 5 #ifndef REMOTING_HOST_JSON_HOST_CONFIG_H_ |
6 #define REMOTING_HOST_JSON_HOST_CONFIG_H_ | 6 #define REMOTING_HOST_JSON_HOST_CONFIG_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 // JsonHostConfig implements MutableHostConfig for JSON file. | 21 // JsonHostConfig implements MutableHostConfig for JSON file. |
22 class JsonHostConfig : public InMemoryHostConfig { | 22 class JsonHostConfig : public InMemoryHostConfig { |
23 public: | 23 public: |
24 JsonHostConfig(const FilePath& pref_filename, | 24 JsonHostConfig(const FilePath& pref_filename, |
25 base::MessageLoopProxy* file_message_loop_proxy); | 25 base::MessageLoopProxy* file_message_loop_proxy); |
26 virtual ~JsonHostConfig(); | 26 virtual ~JsonHostConfig(); |
27 | 27 |
28 virtual bool Read(); | 28 virtual bool Read(); |
29 | 29 |
30 // MutableHostConfig interface. | 30 // MutableHostConfig interface. |
31 virtual void Save(); | 31 virtual void Save() OVERRIDE; |
32 | 32 |
33 private: | 33 private: |
34 void DoWrite(); | 34 void DoWrite(); |
35 | 35 |
36 FilePath filename_; | 36 FilePath filename_; |
37 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; | 37 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; |
38 | 38 |
39 DISALLOW_COPY_AND_ASSIGN(JsonHostConfig); | 39 DISALLOW_COPY_AND_ASSIGN(JsonHostConfig); |
40 }; | 40 }; |
41 | 41 |
42 } // namespace remoting | 42 } // namespace remoting |
43 | 43 |
44 #endif // REMOTING_HOST_JSON_HOST_CONFIG_H_ | 44 #endif // REMOTING_HOST_JSON_HOST_CONFIG_H_ |
OLD | NEW |