diff options
Diffstat (limited to 'webkit/appcache/appcache_storage.cc')
-rw-r--r-- | webkit/appcache/appcache_storage.cc | 20 |
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 |