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

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

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/in_memory_host_config.h ('k') | remoting/host/json_host_config.h » ('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 #include "remoting/host/in_memory_host_config.h" 5 #include "remoting/host/in_memory_host_config.h"
6 6
7 #include "base/task.h" 7 #include "base/task.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 9
10 namespace remoting { 10 namespace remoting {
11 11
12 InMemoryHostConfig::InMemoryHostConfig() 12 InMemoryHostConfig::InMemoryHostConfig()
13 : values_(new DictionaryValue()) { 13 : values_(new DictionaryValue()) {
14 } 14 }
15 15
16 InMemoryHostConfig::~InMemoryHostConfig() {} 16 InMemoryHostConfig::~InMemoryHostConfig() {}
17 17
18 bool InMemoryHostConfig::GetString(const std::string& path, 18 bool InMemoryHostConfig::GetString(const std::string& path,
19 std::string* out_value) { 19 std::string* out_value) {
20 AutoLock auto_lock(lock_); 20 base::AutoLock auto_lock(lock_);
21 return values_->GetString(path, out_value); 21 return values_->GetString(path, out_value);
22 } 22 }
23 23
24 bool InMemoryHostConfig::GetBoolean(const std::string& path, bool* out_value) { 24 bool InMemoryHostConfig::GetBoolean(const std::string& path, bool* out_value) {
25 AutoLock auto_lock(lock_); 25 base::AutoLock auto_lock(lock_);
26 return values_->GetBoolean(path, out_value); 26 return values_->GetBoolean(path, out_value);
27 } 27 }
28 28
29 void InMemoryHostConfig::Save() { 29 void InMemoryHostConfig::Save() {
30 // Save is NOP for in-memory host config. 30 // Save is NOP for in-memory host config.
31 } 31 }
32 32
33 void InMemoryHostConfig::SetString(const std::string& path, 33 void InMemoryHostConfig::SetString(const std::string& path,
34 const std::string& in_value) { 34 const std::string& in_value) {
35 AutoLock auto_lock(lock_); 35 base::AutoLock auto_lock(lock_);
36 values_->SetString(path, in_value); 36 values_->SetString(path, in_value);
37 } 37 }
38 38
39 void InMemoryHostConfig::SetBoolean(const std::string& path, bool in_value) { 39 void InMemoryHostConfig::SetBoolean(const std::string& path, bool in_value) {
40 AutoLock auto_lock(lock_); 40 base::AutoLock auto_lock(lock_);
41 values_->SetBoolean(path, in_value); 41 values_->SetBoolean(path, in_value);
42 } 42 }
43 43
44 } // namespace remoting 44 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/in_memory_host_config.h ('k') | remoting/host/json_host_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698