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

Side by Side Diff: chrome/browser/extensions/settings/weak_unlimited_settings_storage.cc

Issue 9284013: Extension Storage API: expose storage quota information to extensions, via: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698