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

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

Issue 6142009: Upating the app, ceee, chrome, ipc, media, and net directories to use the correct lock.h file. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Unified patch updating all references to the new base/synchronization/lock.h Created 9 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/chromoting_host.cc ('k') | remoting/host/in_memory_host_config.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/lock.h"
11 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
12 #include "base/scoped_ptr.h" 11 #include "base/scoped_ptr.h"
12 #include "base/synchronization/lock.h"
13 #include "remoting/host/host_config.h" 13 #include "remoting/host/host_config.h"
14 14
15 class DictionaryValue; 15 class DictionaryValue;
16 class Task; 16 class Task;
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: 22 public:
23 InMemoryHostConfig(); 23 InMemoryHostConfig();
24 virtual ~InMemoryHostConfig(); 24 virtual ~InMemoryHostConfig();
25 25
26 // MutableHostConfig interface. 26 // MutableHostConfig interface.
27 virtual bool GetString(const std::string& path, std::string* out_value); 27 virtual bool GetString(const std::string& path, std::string* out_value);
28 virtual bool GetBoolean(const std::string& path, bool* out_value); 28 virtual bool GetBoolean(const std::string& path, bool* out_value);
29 29
30 virtual void SetString(const std::string& path, const std::string& in_value); 30 virtual void SetString(const std::string& path, const std::string& in_value);
31 virtual void SetBoolean(const std::string& path, bool in_value); 31 virtual void SetBoolean(const std::string& path, bool in_value);
32 32
33 virtual void Save(); 33 virtual void Save();
34 34
35 protected: 35 protected:
36 // |lock_| must be locked whenever |values_| is used. 36 // |lock_| must be locked whenever |values_| is used.
37 Lock lock_; 37 base::Lock lock_;
38 scoped_ptr<DictionaryValue> values_; 38 scoped_ptr<DictionaryValue> values_;
39 39
40 private: 40 private:
41 DISALLOW_COPY_AND_ASSIGN(InMemoryHostConfig); 41 DISALLOW_COPY_AND_ASSIGN(InMemoryHostConfig);
42 }; 42 };
43 43
44 } // namespace remoting 44 } // namespace remoting
45 45
46 #endif // REMOTING_HOST_IN_MEMORY_HOST_CONFIG_H_ 46 #endif // REMOTING_HOST_IN_MEMORY_HOST_CONFIG_H_
OLDNEW
« no previous file with comments | « remoting/host/chromoting_host.cc ('k') | remoting/host/in_memory_host_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698