MemorySanitizer: blacklist two false positives.
[chromium-blink-merge.git] / remoting / host / json_host_config.h
blob6e2237d719be22379809dcdadc518e6dce7d7e46
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef REMOTING_HOST_JSON_HOST_CONFIG_H_
6 #define REMOTING_HOST_JSON_HOST_CONFIG_H_
8 #include <string>
10 #include "base/files/file_path.h"
11 #include "remoting/host/in_memory_host_config.h"
13 namespace base {
14 class MessageLoopProxy;
15 } // namespace base
17 namespace remoting {
19 // JsonHostConfig implements MutableHostConfig for JSON file.
20 class JsonHostConfig : public InMemoryHostConfig {
21 public:
22 JsonHostConfig(const base::FilePath& filename);
23 virtual ~JsonHostConfig();
25 virtual bool Read();
27 // MutableHostConfig interface.
28 virtual bool Save() OVERRIDE;
30 std::string GetSerializedData();
32 // Sets the configuration from serialized JSON data. Returns false if the data
33 // could not be parsed.
34 bool SetSerializedData(const std::string& config);
36 private:
37 base::FilePath filename_;
39 DISALLOW_COPY_AND_ASSIGN(JsonHostConfig);
42 } // namespace remoting
44 #endif // REMOTING_HOST_JSON_HOST_CONFIG_H_