Index: chrome/browser/extensions/settings/settings_storage_factory.h |
diff --git a/chrome/browser/extensions/settings/settings_storage_factory.h b/chrome/browser/extensions/settings/settings_storage_factory.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b39f45f6a1e9a04fe0daf6c7d23e70ce0a0d3780 |
--- /dev/null |
+++ b/chrome/browser/extensions/settings/settings_storage_factory.h |
@@ -0,0 +1,28 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_STORAGE_FACTORY_H_ |
+#define CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_STORAGE_FACTORY_H_ |
+#pragma once |
+ |
+class FilePath; |
+ |
+namespace extensions { |
+ |
+class SettingsStorage; |
+ |
+// Factory for creating SettingStorage instances. |
+class SettingsStorageFactory { |
+ public: |
+ virtual ~SettingsStorageFactory() {} |
+ |
+ // Create a new SettingsLeveldbStorage area. Return NULL to indicate |
+ // failure. Must be called on the FILE thread. |
+ virtual SettingsStorage* Create( |
+ const FilePath& base_path, const std::string& extension_id) = 0; |
+}; |
+ |
+} // namespace extensions |
+ |
+#endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_STORAGE_FACTORY_H_ |