diff options
author | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-26 00:28:43 +0000 |
---|---|---|
committer | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-26 00:28:43 +0000 |
commit | 19eb8015c483fff874bf1eddb80bd26cf4167f33 (patch) | |
tree | be896411dde17d24eb8dbcd67e7b4c5cad2ef1b6 /content/browser/appcache/chrome_appcache_service.cc | |
parent | f02074331bddc7d89b20e6b3a8fb934e6891207c (diff) | |
download | chromium_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 'content/browser/appcache/chrome_appcache_service.cc')
-rw-r--r-- | content/browser/appcache/chrome_appcache_service.cc | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/content/browser/appcache/chrome_appcache_service.cc b/content/browser/appcache/chrome_appcache_service.cc index 68c7ece..5f6107a 100644 --- a/content/browser/appcache/chrome_appcache_service.cc +++ b/content/browser/appcache/chrome_appcache_service.cc @@ -38,6 +38,7 @@ ChromeAppCacheService::ChromeAppCacheService() void ChromeAppCacheService::InitializeOnIOThread( const FilePath& profile_path, bool is_incognito, scoped_refptr<HostContentSettingsMap> content_settings_map, + scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy, bool clear_local_state_on_exit) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); @@ -57,6 +58,7 @@ void ChromeAppCacheService::InitializeOnIOThread( Initialize(cache_path_, BrowserThread::GetMessageLoopProxyForThread(BrowserThread::CACHE)); set_appcache_policy(this); + set_special_storage_policy(special_storage_policy); } ChromeAppCacheService::~ChromeAppCacheService() { @@ -69,20 +71,8 @@ ChromeAppCacheService::~ChromeAppCacheService() { } } -void ChromeAppCacheService::SetOriginQuotaInMemory( - const GURL& origin, int64 quota) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); - if (storage()) - storage()->SetOriginQuotaInMemory(origin, quota); -} - -void ChromeAppCacheService::ResetOriginQuotaInMemory(const GURL& origin) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); - if (storage()) - storage()->ResetOriginQuotaInMemory(origin); -} - void ChromeAppCacheService::SetClearLocalStateOnExit(bool clear_local_state) { + // TODO(michaeln): How is 'protected' status granted to apps in this case? if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) { BrowserThread::PostTask( BrowserThread::IO, FROM_HERE, |