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

Unified Diff: chrome/browser/extensions/api/storage/local_storage_backend.h

Issue 175853002: Revert of Add a Restore() method to ValueStore and make StorageAPI use it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/storage/local_storage_backend.h
diff --git a/chrome/browser/extensions/api/storage/local_storage_backend.h b/chrome/browser/extensions/api/storage/local_storage_backend.h
deleted file mode 100644
index d42f66fdec8ca3d6766c867573428af3cf479dfd..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/storage/local_storage_backend.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_EXTENSIONS_API_STORAGE_LOCAL_STORAGE_BACKEND_H_
-#define CHROME_BROWSER_EXTENSIONS_API_STORAGE_LOCAL_STORAGE_BACKEND_H_
-
-#include <map>
-#include <string>
-
-#include "base/memory/linked_ptr.h"
-#include "base/memory/ref_counted.h"
-#include "chrome/browser/extensions/api/storage/settings_backend.h"
-#include "chrome/browser/extensions/api/storage/settings_storage_quota_enforcer.h"
-
-namespace base {
-class FilePath;
-}
-
-class ValueStore;
-
-namespace extensions {
-class SettingStorageFactory;
-
-class LocalStorageBackend : public SettingsBackend {
- public:
- LocalStorageBackend(
- const scoped_refptr<SettingsStorageFactory>& storage_factory,
- const base::FilePath& base_path,
- const SettingsStorageQuotaEnforcer::Limits& quota);
- virtual ~LocalStorageBackend();
-
- // SettingsBackend implementation.
- virtual ValueStore* GetStorage(const std::string& extension_id) OVERRIDE;
- virtual void DeleteStorage(const std::string& extension_id) OVERRIDE;
-
- private:
- typedef std::map<std::string, linked_ptr<ValueStore> > StorageMap;
-
- StorageMap storage_map_;
-
- DISALLOW_COPY_AND_ASSIGN(LocalStorageBackend);
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_API_STORAGE_LOCAL_STORAGE_BACKEND_H_

Powered by Google App Engine
This is Rietveld 408576698