make use of media_use_ffmpeg in BUILD.gn
[chromium-blink-merge.git] / extensions / browser / api / storage / leveldb_settings_storage_factory.h
blob6f9cc569e1c3ed37ab122b868a98e76a1ecbf71b
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 {
14 public:
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;
21 private:
22 // SettingsStorageFactory is refcounted.
23 ~LeveldbSettingsStorageFactory() override {}
26 } // namespace extensions
28 #endif // EXTENSIONS_BROWSER_API_STORAGE_LEVELDB_SETTINGS_STORAGE_FACTORY_H_