diff options
author | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-11 20:47:32 +0000 |
---|---|---|
committer | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-11 20:47:32 +0000 |
commit | 02a5cdbe64dc598efaa25b06a8de02ffe8ea676b (patch) | |
tree | e7a04cc50318e21d72109f40f57d1add8de50d21 /webkit/appcache | |
parent | b2471359cfbd4f7b9621ba2542b947841bfadb27 (diff) | |
download | chromium_src-02a5cdbe64dc598efaa25b06a8de02ffe8ea676b.zip chromium_src-02a5cdbe64dc598efaa25b06a8de02ffe8ea676b.tar.gz chromium_src-02a5cdbe64dc598efaa25b06a8de02ffe8ea676b.tar.bz2 |
Provide a profile.GetAppCacheService() accessor and add two helper methods to ChromeAppCacheService to override the default quota for an origin.
BUG=49993
TESTS=existing tests apply
Review URL: http://codereview.chromium.org/2819091
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55773 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache')
-rw-r--r-- | webkit/appcache/appcache_storage.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webkit/appcache/appcache_storage.cc b/webkit/appcache/appcache_storage.cc index 52767ad..445b965 100644 --- a/webkit/appcache/appcache_storage.cc +++ b/webkit/appcache/appcache_storage.cc @@ -75,7 +75,8 @@ void AppCacheStorage::LoadResponseInfo( void AppCacheStorage::SetOriginQuotaInMemory(const GURL& origin, int64 quota) { DCHECK(quota >= 0); DCHECK(origin == origin.GetOrigin()); - in_memory_quotas_[origin] = quota; + if (IsSchemeSupported(origin)) + in_memory_quotas_[origin] = quota; } void AppCacheStorage::ResetOriginQuotaInMemory(const GURL& origin) { |