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

Side by Side Diff: extensions/browser/api/storage/leveldb_settings_storage_factory.h

Issue 189263013: Move extensions storage API implementation to src/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase (move_storage) Created 6 years, 9 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_STORAGE_LEVELDB_SETTINGS_STORAGE_FACTORY_H _ 5 #ifndef EXTENSIONS_BROWSER_API_STORAGE_LEVELDB_SETTINGS_STORAGE_FACTORY_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_STORAGE_LEVELDB_SETTINGS_STORAGE_FACTORY_H _ 6 #define EXTENSIONS_BROWSER_API_STORAGE_LEVELDB_SETTINGS_STORAGE_FACTORY_H_
7 7
8 #include "chrome/browser/extensions/api/storage/settings_storage_factory.h" 8 #include "extensions/browser/api/storage/settings_storage_factory.h"
9 9
10 namespace extensions { 10 namespace extensions {
11 11
12 // Factory for creating LeveldbValueStore instances. 12 // Factory for creating LeveldbValueStore instances.
13 class LeveldbSettingsStorageFactory : public SettingsStorageFactory { 13 class LeveldbSettingsStorageFactory : public SettingsStorageFactory {
14 public: 14 public:
15 virtual ValueStore* Create(const base::FilePath& base_path, 15 virtual ValueStore* Create(const base::FilePath& base_path,
16 const std::string& extension_id) OVERRIDE; 16 const std::string& extension_id) OVERRIDE;
17 17
18 virtual void DeleteDatabaseIfExists(const base::FilePath& base_path, 18 virtual void DeleteDatabaseIfExists(const base::FilePath& base_path,
19 const std::string& extension_id) OVERRIDE; 19 const std::string& extension_id) OVERRIDE;
20 20
21 private: 21 private:
22 // SettingsStorageFactory is refcounted. 22 // SettingsStorageFactory is refcounted.
23 virtual ~LeveldbSettingsStorageFactory() {} 23 virtual ~LeveldbSettingsStorageFactory() {}
24 }; 24 };
25 25
26 } // namespace extensions 26 } // namespace extensions
27 27
28 #endif // CHROME_BROWSER_EXTENSIONS_API_STORAGE_LEVELDB_SETTINGS_STORAGE_FACTOR Y_H_ 28 #endif // EXTENSIONS_BROWSER_API_STORAGE_LEVELDB_SETTINGS_STORAGE_FACTORY_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/storage/OWNERS ('k') | extensions/browser/api/storage/leveldb_settings_storage_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698