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

Unified Diff: chrome/browser/extensions/api/storage/weak_unlimited_settings_storage.cc

Issue 189263013: Move extensions storage API implementation to src/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/storage/weak_unlimited_settings_storage.cc
diff --git a/chrome/browser/extensions/api/storage/weak_unlimited_settings_storage.cc b/chrome/browser/extensions/api/storage/weak_unlimited_settings_storage.cc
deleted file mode 100644
index 14a5c88d41b71f48dae1465f051f0926d198c1d6..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/storage/weak_unlimited_settings_storage.cc
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright (c) 2012 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.
-
-#include "chrome/browser/extensions/api/storage/weak_unlimited_settings_storage.h"
-
-namespace extensions {
-
-WeakUnlimitedSettingsStorage::WeakUnlimitedSettingsStorage(
- ValueStore* delegate)
- : delegate_(delegate) {}
-
-WeakUnlimitedSettingsStorage::~WeakUnlimitedSettingsStorage() {}
-
-size_t WeakUnlimitedSettingsStorage::GetBytesInUse(const std::string& key) {
- return delegate_->GetBytesInUse(key);
-}
-
-size_t WeakUnlimitedSettingsStorage::GetBytesInUse(
- const std::vector<std::string>& keys) {
- return delegate_->GetBytesInUse(keys);
-}
-
-
-size_t WeakUnlimitedSettingsStorage::GetBytesInUse() {
- return delegate_->GetBytesInUse();
-}
-
-ValueStore::ReadResult WeakUnlimitedSettingsStorage::Get(
- const std::string& key) {
- return delegate_->Get(key);
-}
-
-ValueStore::ReadResult WeakUnlimitedSettingsStorage::Get(
- const std::vector<std::string>& keys) {
- return delegate_->Get(keys);
-}
-
-ValueStore::ReadResult WeakUnlimitedSettingsStorage::Get() {
- return delegate_->Get();
-}
-
-ValueStore::WriteResult WeakUnlimitedSettingsStorage::Set(
- WriteOptions options, const std::string& key, const base::Value& value) {
- return delegate_->Set(IGNORE_QUOTA, key, value);
-}
-
-ValueStore::WriteResult WeakUnlimitedSettingsStorage::Set(
- WriteOptions options, const base::DictionaryValue& values) {
- return delegate_->Set(IGNORE_QUOTA, values);
-}
-
-ValueStore::WriteResult WeakUnlimitedSettingsStorage::Remove(
- const std::string& key) {
- return delegate_->Remove(key);
-}
-
-ValueStore::WriteResult WeakUnlimitedSettingsStorage::Remove(
- const std::vector<std::string>& keys) {
- return delegate_->Remove(keys);
-}
-
-ValueStore::WriteResult WeakUnlimitedSettingsStorage::Clear() {
- return delegate_->Clear();
-}
-
-bool WeakUnlimitedSettingsStorage::Restore() { return delegate_->Restore(); }
-
-bool WeakUnlimitedSettingsStorage::RestoreKey(const std::string& key) {
- return delegate_->RestoreKey(key);
-}
-
-} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698