| Index: chrome/browser/extensions/api/storage/settings_storage_factory.h
|
| diff --git a/chrome/browser/extensions/api/storage/settings_storage_factory.h b/chrome/browser/extensions/api/storage/settings_storage_factory.h
|
| index 7fd28cf0862bb62cc6851ab8b14d11f20328a109..607778a874cb67f61decb0b9df21c0cfc3afd947 100644
|
| --- a/chrome/browser/extensions/api/storage/settings_storage_factory.h
|
| +++ b/chrome/browser/extensions/api/storage/settings_storage_factory.h
|
| @@ -26,6 +26,16 @@ class SettingsStorageFactory
|
| virtual ValueStore* Create(const base::FilePath& base_path,
|
| const std::string& extension_id) = 0;
|
|
|
| + // Returns the path to the database for an extension, if one exists.
|
| + virtual base::FilePath GetDatabasePath(const base::FilePath& base_path,
|
| + const std::string& extension_id) = 0;
|
| +
|
| + // Deletes the database for the extension, if one exists.
|
| + // Note: it is important to delete references to the database if any are
|
| + // held, because ValueStores will create themselves if there is no file.
|
| + virtual void DeleteDatabaseIfExists(const base::FilePath& base_path,
|
| + const std::string& extension_id) = 0;
|
| +
|
| protected:
|
| friend class base::RefCountedThreadSafe<SettingsStorageFactory>;
|
| virtual ~SettingsStorageFactory() {}
|
|
|