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/settings/weak_unlimited_settings_storage.h" | 5 #include "chrome/browser/extensions/settings/weak_unlimited_settings_storage.h" |
6 | 6 |
7 namespace extensions { | 7 namespace extensions { |
8 | 8 |
9 WeakUnlimitedSettingsStorage::WeakUnlimitedSettingsStorage( | 9 WeakUnlimitedSettingsStorage::WeakUnlimitedSettingsStorage( |
10 SettingsStorage* delegate) | 10 SettingsStorage* delegate) |
11 : delegate_(delegate) {} | 11 : delegate_(delegate) {} |
12 | 12 |
13 WeakUnlimitedSettingsStorage::~WeakUnlimitedSettingsStorage() {} | 13 WeakUnlimitedSettingsStorage::~WeakUnlimitedSettingsStorage() {} |
14 | 14 |
| 15 size_t WeakUnlimitedSettingsStorage::GetBytesInUse() { |
| 16 return delegate_->GetBytesInUse(); |
| 17 } |
| 18 |
15 SettingsStorage::ReadResult WeakUnlimitedSettingsStorage::Get( | 19 SettingsStorage::ReadResult WeakUnlimitedSettingsStorage::Get( |
16 const std::string& key) { | 20 const std::string& key) { |
17 return delegate_->Get(key); | 21 return delegate_->Get(key); |
18 } | 22 } |
19 | 23 |
20 SettingsStorage::ReadResult WeakUnlimitedSettingsStorage::Get( | 24 SettingsStorage::ReadResult WeakUnlimitedSettingsStorage::Get( |
21 const std::vector<std::string>& keys) { | 25 const std::vector<std::string>& keys) { |
22 return delegate_->Get(keys); | 26 return delegate_->Get(keys); |
23 } | 27 } |
24 | 28 |
(...skipping 19 matching lines...) Expand all Loading... |
44 SettingsStorage::WriteResult WeakUnlimitedSettingsStorage::Remove( | 48 SettingsStorage::WriteResult WeakUnlimitedSettingsStorage::Remove( |
45 const std::vector<std::string>& keys) { | 49 const std::vector<std::string>& keys) { |
46 return delegate_->Remove(keys); | 50 return delegate_->Remove(keys); |
47 } | 51 } |
48 | 52 |
49 SettingsStorage::WriteResult WeakUnlimitedSettingsStorage::Clear() { | 53 SettingsStorage::WriteResult WeakUnlimitedSettingsStorage::Clear() { |
50 return delegate_->Clear(); | 54 return delegate_->Clear(); |
51 } | 55 } |
52 | 56 |
53 } // namespace extensions | 57 } // namespace extensions |
OLD | NEW |