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

Side by Side Diff: remoting/host/in_memory_host_config.h

Issue 667123002: Standardize usage of virtual/override/final in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « remoting/host/host_window_proxy.cc ('k') | remoting/host/input_injector_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_IN_MEMORY_HOST_CONFIG_H_ 5 #ifndef REMOTING_HOST_IN_MEMORY_HOST_CONFIG_H_
6 #define REMOTING_HOST_IN_MEMORY_HOST_CONFIG_H_ 6 #define REMOTING_HOST_IN_MEMORY_HOST_CONFIG_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/threading/non_thread_safe.h" 11 #include "base/threading/non_thread_safe.h"
12 #include "remoting/host/host_config.h" 12 #include "remoting/host/host_config.h"
13 13
14 namespace base { 14 namespace base {
15 class DictionaryValue; 15 class DictionaryValue;
16 } // namespace base 16 } // namespace base
17 17
18 namespace remoting { 18 namespace remoting {
19 19
20 // In-memory host config. Used by unittests. 20 // In-memory host config. Used by unittests.
21 class InMemoryHostConfig : public MutableHostConfig, 21 class InMemoryHostConfig : public MutableHostConfig,
22 public base::NonThreadSafe { 22 public base::NonThreadSafe {
23 public: 23 public:
24 InMemoryHostConfig(); 24 InMemoryHostConfig();
25 virtual ~InMemoryHostConfig(); 25 ~InMemoryHostConfig() override;
26 26
27 // MutableHostConfig interface. 27 // MutableHostConfig interface.
28 virtual bool GetString(const std::string& path, 28 bool GetString(const std::string& path,
29 std::string* out_value) const override; 29 std::string* out_value) const override;
30 virtual bool GetBoolean(const std::string& path, 30 bool GetBoolean(const std::string& path, bool* out_value) const override;
31 bool* out_value) const override;
32 31
33 virtual void SetString(const std::string& path, 32 void SetString(const std::string& path, const std::string& in_value) override;
34 const std::string& in_value) override; 33 void SetBoolean(const std::string& path, bool in_value) override;
35 virtual void SetBoolean(const std::string& path, bool in_value) override;
36 34
37 virtual bool CopyFrom(const base::DictionaryValue* dictionary) override; 35 bool CopyFrom(const base::DictionaryValue* dictionary) override;
38 36
39 virtual bool Save() override; 37 bool Save() override;
40 38
41 protected: 39 protected:
42 scoped_ptr<base::DictionaryValue> values_; 40 scoped_ptr<base::DictionaryValue> values_;
43 41
44 private: 42 private:
45 DISALLOW_COPY_AND_ASSIGN(InMemoryHostConfig); 43 DISALLOW_COPY_AND_ASSIGN(InMemoryHostConfig);
46 }; 44 };
47 45
48 } // namespace remoting 46 } // namespace remoting
49 47
50 #endif // REMOTING_HOST_IN_MEMORY_HOST_CONFIG_H_ 48 #endif // REMOTING_HOST_IN_MEMORY_HOST_CONFIG_H_
OLDNEW
« no previous file with comments | « remoting/host/host_window_proxy.cc ('k') | remoting/host/input_injector_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698