Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / extensions / browser / api / storage / leveldb_settings_storage_factory.h
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.
4
5 #ifndef EXTENSIONS_BROWSER_API_STORAGE_LEVELDB_SETTINGS_STORAGE_FACTORY_H_
6 #define EXTENSIONS_BROWSER_API_STORAGE_LEVELDB_SETTINGS_STORAGE_FACTORY_H_
7
8 #include "extensions/browser/api/storage/settings_storage_factory.h"
9
10 namespace extensions {
11
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;
17
18   void DeleteDatabaseIfExists(const base::FilePath& base_path,
19                               const std::string& extension_id) override;
20
21  private:
22   // SettingsStorageFactory is refcounted.
23   ~LeveldbSettingsStorageFactory() override {}
24 };
25
26 }  // namespace extensions
27
28 #endif  // EXTENSIONS_BROWSER_API_STORAGE_LEVELDB_SETTINGS_STORAGE_FACTORY_H_