Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1699)

Unified Diff: chrome/browser/extensions/settings/settings_storage_factory.h

Issue 8497065: Extension Settings API: make it so that when leveldb storage areas fail to be (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698