OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_STORAGE_FACTORY_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_STORAGE_FACTORY_H_ |
| 7 #pragma once |
| 8 |
| 9 class FilePath; |
| 10 |
| 11 namespace extensions { |
| 12 |
| 13 class SettingsStorage; |
| 14 |
| 15 // Factory for creating SettingStorage instances. |
| 16 class SettingsStorageFactory { |
| 17 public: |
| 18 virtual ~SettingsStorageFactory() {} |
| 19 |
| 20 // Create a new SettingsLeveldbStorage area. Return NULL to indicate |
| 21 // failure. Must be called on the FILE thread. |
| 22 virtual SettingsStorage* Create( |
| 23 const FilePath& base_path, const std::string& extension_id) = 0; |
| 24 }; |
| 25 |
| 26 } // namespace extensions |
| 27 |
| 28 #endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_STORAGE_FACTORY_H_ |
OLD | NEW |