summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_storage.cc
diff options
context:
space:
mode:
authormichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-26 00:28:43 +0000
committermichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-26 00:28:43 +0000
commit19eb8015c483fff874bf1eddb80bd26cf4167f33 (patch)
treebe896411dde17d24eb8dbcd67e7b4c5cad2ef1b6 /webkit/appcache/appcache_storage.cc
parentf02074331bddc7d89b20e6b3a8fb934e6891207c (diff)
downloadchromium_src-19eb8015c483fff874bf1eddb80bd26cf4167f33.zip
chromium_src-19eb8015c483fff874bf1eddb80bd26cf4167f33.tar.gz
chromium_src-19eb8015c483fff874bf1eddb80bd26cf4167f33.tar.bz2
Add an accessor for an ExtensionSpecialStoragePolicy to the Profile class
and use it in the extension service, data remover, and storage subsystems. BUG=52357 TEST=extension_service_unittest.cc Review URL: http://codereview.chromium.org/6551028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76126 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_storage.cc')
-rw-r--r--webkit/appcache/appcache_storage.cc20
1 files changed, 0 insertions, 20 deletions
diff --git a/webkit/appcache/appcache_storage.cc b/webkit/appcache/appcache_storage.cc
index 01c18f1..a30088f 100644
--- a/webkit/appcache/appcache_storage.cc
+++ b/webkit/appcache/appcache_storage.cc
@@ -87,25 +87,5 @@ void AppCacheStorage::LoadResponseInfo(
info_load->StartIfNeeded();
}
-void AppCacheStorage::SetOriginQuotaInMemory(const GURL& origin, int64 quota) {
- DCHECK(quota >= 0);
- DCHECK(origin == origin.GetOrigin());
- if (IsSchemeSupported(origin))
- in_memory_quotas_[origin] = quota;
-}
-
-void AppCacheStorage::ResetOriginQuotaInMemory(const GURL& origin) {
- DCHECK(origin == origin.GetOrigin());
- in_memory_quotas_.erase(origin);
-}
-
-int64 AppCacheStorage::GetOriginQuotaInMemory(const GURL& origin) {
- DCHECK(origin == origin.GetOrigin());
- QuotaMap::const_iterator found = in_memory_quotas_.find(origin);
- if (found == in_memory_quotas_.end())
- return -1;
- return found->second;
-}
-
} // namespace appcache