1 // Copyright 2014 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.
5 #ifndef EXTENSIONS_BROWSER_API_STORAGE_LEVELDB_SETTINGS_STORAGE_FACTORY_H_
6 #define EXTENSIONS_BROWSER_API_STORAGE_LEVELDB_SETTINGS_STORAGE_FACTORY_H_
8 #include "extensions/browser/api/storage/settings_storage_factory.h"
10 namespace extensions
{
12 // Factory for creating LeveldbValueStore instances.
13 class LeveldbSettingsStorageFactory
: public SettingsStorageFactory
{
15 ValueStore
* Create(const base::FilePath
& base_path
,
16 const std::string
& extension_id
) override
;
18 void DeleteDatabaseIfExists(const base::FilePath
& base_path
,
19 const std::string
& extension_id
) override
;
22 // SettingsStorageFactory is refcounted.
23 ~LeveldbSettingsStorageFactory() override
{}
26 } // namespace extensions
28 #endif // EXTENSIONS_BROWSER_API_STORAGE_LEVELDB_SETTINGS_STORAGE_FACTORY_H_