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_DEFAULT_PREF_STORE_H_ | 5 #ifndef CHROME_BROWSER_PREFS_DEFAULT_PREF_STORE_H_ |
6 #define CHROME_BROWSER_PREFS_DEFAULT_PREF_STORE_H_ | 6 #define CHROME_BROWSER_PREFS_DEFAULT_PREF_STORE_H_ |
7 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "base/values.h" | 10 #include "base/values.h" |
12 #include "chrome/browser/prefs/value_map_pref_store.h" | 11 #include "chrome/browser/prefs/value_map_pref_store.h" |
13 | 12 |
14 // This PrefStore keeps track of default preference values set when a | 13 // This PrefStore keeps track of default preference values set when a |
15 // preference is registered with the PrefService. | 14 // preference is registered with the PrefService. |
16 class DefaultPrefStore : public ValueMapPrefStore { | 15 class DefaultPrefStore : public ValueMapPrefStore { |
17 public: | 16 public: |
(...skipping 10 matching lines...) Expand all Loading... |
28 base::Value::Type GetType(const std::string& key) const; | 27 base::Value::Type GetType(const std::string& key) const; |
29 | 28 |
30 protected: | 29 protected: |
31 virtual ~DefaultPrefStore(); | 30 virtual ~DefaultPrefStore(); |
32 | 31 |
33 private: | 32 private: |
34 DISALLOW_COPY_AND_ASSIGN(DefaultPrefStore); | 33 DISALLOW_COPY_AND_ASSIGN(DefaultPrefStore); |
35 }; | 34 }; |
36 | 35 |
37 #endif // CHROME_BROWSER_PREFS_DEFAULT_PREF_STORE_H_ | 36 #endif // CHROME_BROWSER_PREFS_DEFAULT_PREF_STORE_H_ |
OLD | NEW |