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

Side by Side Diff: chrome/browser/extensions/api/storage/weak_unlimited_settings_storage.cc

Issue 11778097: Revert revision 176015 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/extensions/api/storage/weak_unlimited_settings_storage. h"
6
7 namespace extensions {
8
9 WeakUnlimitedSettingsStorage::WeakUnlimitedSettingsStorage(
10 ValueStore* delegate)
11 : delegate_(delegate) {}
12
13 WeakUnlimitedSettingsStorage::~WeakUnlimitedSettingsStorage() {}
14
15 size_t WeakUnlimitedSettingsStorage::GetBytesInUse(const std::string& key) {
16 return delegate_->GetBytesInUse(key);
17 }
18
19 size_t WeakUnlimitedSettingsStorage::GetBytesInUse(
20 const std::vector<std::string>& keys) {
21 return delegate_->GetBytesInUse(keys);
22 }
23
24
25 size_t WeakUnlimitedSettingsStorage::GetBytesInUse() {
26 return delegate_->GetBytesInUse();
27 }
28
29 ValueStore::ReadResult WeakUnlimitedSettingsStorage::Get(
30 const std::string& key) {
31 return delegate_->Get(key);
32 }
33
34 ValueStore::ReadResult WeakUnlimitedSettingsStorage::Get(
35 const std::vector<std::string>& keys) {
36 return delegate_->Get(keys);
37 }
38
39 ValueStore::ReadResult WeakUnlimitedSettingsStorage::Get() {
40 return delegate_->Get();
41 }
42
43 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Set(
44 WriteOptions options, const std::string& key, const Value& value) {
45 return delegate_->Set(IGNORE_QUOTA, key, value);
46 }
47
48 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Set(
49 WriteOptions options, const DictionaryValue& values) {
50 return delegate_->Set(IGNORE_QUOTA, values);
51 }
52
53 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Remove(
54 const std::string& key) {
55 return delegate_->Remove(key);
56 }
57
58 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Remove(
59 const std::vector<std::string>& keys) {
60 return delegate_->Remove(keys);
61 }
62
63 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Clear() {
64 return delegate_->Clear();
65 }
66
67 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698