OLD | NEW |
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 CHROME_BROWSER_PREFS_VALUE_MAP_PREF_STORE_H_ | 5 #ifndef CHROME_BROWSER_PREFS_VALUE_MAP_PREF_STORE_H_ |
6 #define CHROME_BROWSER_PREFS_VALUE_MAP_PREF_STORE_H_ | 6 #define CHROME_BROWSER_PREFS_VALUE_MAP_PREF_STORE_H_ |
7 #pragma once | |
8 | 7 |
9 #include <map> | 8 #include <map> |
10 #include <string> | 9 #include <string> |
11 | 10 |
12 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
13 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
14 #include "chrome/browser/prefs/pref_value_map.h" | 13 #include "chrome/browser/prefs/pref_value_map.h" |
15 #include "chrome/common/pref_store.h" | 14 #include "chrome/common/pref_store.h" |
16 | 15 |
17 // A basic PrefStore implementation that uses a simple name-value map for | 16 // A basic PrefStore implementation that uses a simple name-value map for |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 50 |
52 private: | 51 private: |
53 PrefValueMap prefs_; | 52 PrefValueMap prefs_; |
54 | 53 |
55 ObserverList<PrefStore::Observer, true> observers_; | 54 ObserverList<PrefStore::Observer, true> observers_; |
56 | 55 |
57 DISALLOW_COPY_AND_ASSIGN(ValueMapPrefStore); | 56 DISALLOW_COPY_AND_ASSIGN(ValueMapPrefStore); |
58 }; | 57 }; |
59 | 58 |
60 #endif // CHROME_BROWSER_PREFS_VALUE_MAP_PREF_STORE_H_ | 59 #endif // CHROME_BROWSER_PREFS_VALUE_MAP_PREF_STORE_H_ |
OLD | NEW |