diff options
Diffstat (limited to 'content/browser/appcache/chrome_appcache_service.cc')
-rw-r--r-- | content/browser/appcache/chrome_appcache_service.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/content/browser/appcache/chrome_appcache_service.cc b/content/browser/appcache/chrome_appcache_service.cc index dc9b793..41936ef 100644 --- a/content/browser/appcache/chrome_appcache_service.cc +++ b/content/browser/appcache/chrome_appcache_service.cc @@ -49,18 +49,19 @@ void ChromeAppCacheService::InitializeOnIOThread( ChromeAppCacheService::~ChromeAppCacheService() { } -bool ChromeAppCacheService::CanLoadAppCache(const GURL& manifest_url) { +bool ChromeAppCacheService::CanLoadAppCache(const GURL& manifest_url, + const GURL& first_party) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); // We don't prompt for read access. return content::GetContentClient()->browser()->AllowAppCache( - manifest_url, *resource_context_); + manifest_url, first_party, *resource_context_); } -int ChromeAppCacheService::CanCreateAppCache( - const GURL& manifest_url, net::CompletionCallback* callback) { +bool ChromeAppCacheService::CanCreateAppCache( + const GURL& manifest_url, const GURL& first_party) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); return content::GetContentClient()->browser()->AllowAppCache( - manifest_url, *resource_context_) ? net::OK : net::ERR_ACCESS_DENIED; + manifest_url, first_party, *resource_context_); } void ChromeAppCacheService::Observe(int type, |