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_EXTENSIONS_EXTENSION_PREF_STORE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREF_STORE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREF_STORE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREF_STORE_H_ |
7 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "base/time.h" | 10 #include "base/time.h" |
12 #include "chrome/browser/extensions/extension_pref_value_map.h" | 11 #include "chrome/browser/extensions/extension_pref_value_map.h" |
13 #include "chrome/browser/prefs/value_map_pref_store.h" | 12 #include "chrome/browser/prefs/value_map_pref_store.h" |
14 | 13 |
15 // A (non-persistent) PrefStore implementation that holds effective preferences | 14 // A (non-persistent) PrefStore implementation that holds effective preferences |
16 // set by extensions. These preferences are managed by and fetched from an | 15 // set by extensions. These preferences are managed by and fetched from an |
17 // ExtensionPrefValueMap. | 16 // ExtensionPrefValueMap. |
(...skipping 13 matching lines...) Expand all Loading... |
31 virtual ~ExtensionPrefStore(); | 30 virtual ~ExtensionPrefStore(); |
32 | 31 |
33 private: | 32 private: |
34 ExtensionPrefValueMap* extension_pref_value_map_; // Weak pointer. | 33 ExtensionPrefValueMap* extension_pref_value_map_; // Weak pointer. |
35 bool incognito_pref_store_; | 34 bool incognito_pref_store_; |
36 | 35 |
37 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefStore); | 36 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefStore); |
38 }; | 37 }; |
39 | 38 |
40 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREF_STORE_H_ | 39 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREF_STORE_H_ |
OLD | NEW |