| OLD | NEW |
| 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 #include "chrome/browser/extensions/api/storage/weak_unlimited_settings_storage.
h" | 5 #include "chrome/browser/extensions/api/storage/weak_unlimited_settings_storage.
h" |
| 6 | 6 |
| 7 namespace extensions { | 7 namespace extensions { |
| 8 | 8 |
| 9 WeakUnlimitedSettingsStorage::WeakUnlimitedSettingsStorage( | 9 WeakUnlimitedSettingsStorage::WeakUnlimitedSettingsStorage( |
| 10 ValueStore* delegate) | 10 ValueStore* delegate) |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 ValueStore::ReadResult WeakUnlimitedSettingsStorage::Get( | 34 ValueStore::ReadResult WeakUnlimitedSettingsStorage::Get( |
| 35 const std::vector<std::string>& keys) { | 35 const std::vector<std::string>& keys) { |
| 36 return delegate_->Get(keys); | 36 return delegate_->Get(keys); |
| 37 } | 37 } |
| 38 | 38 |
| 39 ValueStore::ReadResult WeakUnlimitedSettingsStorage::Get() { | 39 ValueStore::ReadResult WeakUnlimitedSettingsStorage::Get() { |
| 40 return delegate_->Get(); | 40 return delegate_->Get(); |
| 41 } | 41 } |
| 42 | 42 |
| 43 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Set( | 43 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Set( |
| 44 WriteOptions options, const std::string& key, const Value& value) { | 44 WriteOptions options, const std::string& key, const base::Value& value) { |
| 45 return delegate_->Set(IGNORE_QUOTA, key, value); | 45 return delegate_->Set(IGNORE_QUOTA, key, value); |
| 46 } | 46 } |
| 47 | 47 |
| 48 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Set( | 48 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Set( |
| 49 WriteOptions options, const DictionaryValue& values) { | 49 WriteOptions options, const base::DictionaryValue& values) { |
| 50 return delegate_->Set(IGNORE_QUOTA, values); | 50 return delegate_->Set(IGNORE_QUOTA, values); |
| 51 } | 51 } |
| 52 | 52 |
| 53 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Remove( | 53 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Remove( |
| 54 const std::string& key) { | 54 const std::string& key) { |
| 55 return delegate_->Remove(key); | 55 return delegate_->Remove(key); |
| 56 } | 56 } |
| 57 | 57 |
| 58 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Remove( | 58 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Remove( |
| 59 const std::vector<std::string>& keys) { | 59 const std::vector<std::string>& keys) { |
| 60 return delegate_->Remove(keys); | 60 return delegate_->Remove(keys); |
| 61 } | 61 } |
| 62 | 62 |
| 63 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Clear() { | 63 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Clear() { |
| 64 return delegate_->Clear(); | 64 return delegate_->Clear(); |
| 65 } | 65 } |
| 66 | 66 |
| 67 } // namespace extensions | 67 } // namespace extensions |
| OLD | NEW |