blob: 241ae2f5d2ecb334e58df6f41f12cf345f055750 [file] [log] [blame]
// 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();
}
} // namespace extensions