Add ICU message format support
[chromium-blink-merge.git] / extensions / browser / api / storage / weak_unlimited_settings_storage.cc
blob1089f23892026e7007d5134d441feeeada62dee7
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.
5 #include "extensions/browser/api/storage/weak_unlimited_settings_storage.h"
7 namespace extensions {
9 WeakUnlimitedSettingsStorage::WeakUnlimitedSettingsStorage(
10 ValueStore* delegate)
11 : delegate_(delegate) {}
13 WeakUnlimitedSettingsStorage::~WeakUnlimitedSettingsStorage() {}
15 size_t WeakUnlimitedSettingsStorage::GetBytesInUse(const std::string& key) {
16 return delegate_->GetBytesInUse(key);
19 size_t WeakUnlimitedSettingsStorage::GetBytesInUse(
20 const std::vector<std::string>& keys) {
21 return delegate_->GetBytesInUse(keys);
25 size_t WeakUnlimitedSettingsStorage::GetBytesInUse() {
26 return delegate_->GetBytesInUse();
29 ValueStore::ReadResult WeakUnlimitedSettingsStorage::Get(
30 const std::string& key) {
31 return delegate_->Get(key);
34 ValueStore::ReadResult WeakUnlimitedSettingsStorage::Get(
35 const std::vector<std::string>& keys) {
36 return delegate_->Get(keys);
39 ValueStore::ReadResult WeakUnlimitedSettingsStorage::Get() {
40 return delegate_->Get();
43 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Set(
44 WriteOptions options, const std::string& key, const base::Value& value) {
45 return delegate_->Set(IGNORE_QUOTA, key, value);
48 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Set(
49 WriteOptions options, const base::DictionaryValue& values) {
50 return delegate_->Set(IGNORE_QUOTA, values);
53 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Remove(
54 const std::string& key) {
55 return delegate_->Remove(key);
58 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Remove(
59 const std::vector<std::string>& keys) {
60 return delegate_->Remove(keys);
63 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Clear() {
64 return delegate_->Clear();
67 bool WeakUnlimitedSettingsStorage::Restore() { return delegate_->Restore(); }
69 bool WeakUnlimitedSettingsStorage::RestoreKey(const std::string& key) {
70 return delegate_->RestoreKey(key);
73 } // namespace extensions