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 #include "chrome/browser/prefs/value_map_pref_store.h" | 5 #include "chrome/browser/prefs/value_map_pref_store.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/stl_util-inl.h" | 9 #include "base/stl_util.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 | 11 |
12 ValueMapPrefStore::ValueMapPrefStore() {} | 12 ValueMapPrefStore::ValueMapPrefStore() {} |
13 | 13 |
14 ValueMapPrefStore::~ValueMapPrefStore() {} | 14 ValueMapPrefStore::~ValueMapPrefStore() {} |
15 | 15 |
16 PrefStore::ReadResult ValueMapPrefStore::GetValue(const std::string& key, | 16 PrefStore::ReadResult ValueMapPrefStore::GetValue(const std::string& key, |
17 const Value** value) const { | 17 const Value** value) const { |
18 return prefs_.GetValue(key, value) ? READ_OK : READ_NO_VALUE; | 18 return prefs_.GetValue(key, value) ? READ_OK : READ_NO_VALUE; |
19 } | 19 } |
(...skipping 28 matching lines...) Expand all Loading... |
48 return prefs_.end(); | 48 return prefs_.end(); |
49 } | 49 } |
50 | 50 |
51 ValueMapPrefStore::const_iterator ValueMapPrefStore::begin() const { | 51 ValueMapPrefStore::const_iterator ValueMapPrefStore::begin() const { |
52 return prefs_.begin(); | 52 return prefs_.begin(); |
53 } | 53 } |
54 | 54 |
55 ValueMapPrefStore::const_iterator ValueMapPrefStore::end() const { | 55 ValueMapPrefStore::const_iterator ValueMapPrefStore::end() const { |
56 return prefs_.end(); | 56 return prefs_.end(); |
57 } | 57 } |
OLD | NEW |