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_SETTINGS_LEVELDB_SETTINGS_STORAGE_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_SETTINGS_LEVELDB_SETTINGS_STORAGE_FACTORY_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_SETTINGS_LEVELDB_SETTINGS_STORAGE_FACTORY_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_SETTINGS_LEVELDB_SETTINGS_STORAGE_FACTORY_H_ |
7 | 7 |
8 #include "chrome/browser/extensions/settings/settings_storage_factory.h" | 8 #include "chrome/browser/extensions/settings/settings_storage_factory.h" |
9 | 9 |
10 namespace extensions { | 10 namespace extensions { |
11 | 11 |
12 // Factory for creating LeveldbValueStore instances. | 12 // Factory for creating LeveldbValueStore instances. |
13 class LeveldbSettingsStorageFactory : public SettingsStorageFactory { | 13 class LeveldbSettingsStorageFactory : public SettingsStorageFactory { |
14 public: | 14 public: |
15 virtual ValueStore* Create(const FilePath& base_path, | 15 virtual ValueStore* Create(const FilePath& base_path, |
16 const std::string& extension_id) OVERRIDE; | 16 const std::string& extension_id) OVERRIDE; |
17 | 17 |
18 private: | 18 private: |
19 // SettingsStorageFactory is refcounted. | 19 // SettingsStorageFactory is refcounted. |
20 virtual ~LeveldbSettingsStorageFactory() {} | 20 virtual ~LeveldbSettingsStorageFactory() {} |
21 }; | 21 }; |
22 | 22 |
23 } // namespace extensions | 23 } // namespace extensions |
24 | 24 |
25 #endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_LEVELDB_SETTINGS_STORAGE_FACTORY_H
_ | 25 #endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_LEVELDB_SETTINGS_STORAGE_FACTORY_H
_ |
OLD | NEW |