Bug 753990 - Allow appcache to work with a custom cache (profile) folder within a single application, r=michal.novotny

This commit is contained in:
Honza Bambas
2012-06-04 16:12:24 +02:00
parent af0210d015
commit bdef95098a
26 changed files with 482 additions and 44 deletions

View File

@@ -177,8 +177,9 @@ OfflineCacheUpdateChild::AssociateDocument(nsIDOMDocument *aDocument,
NS_IMETHODIMP
OfflineCacheUpdateChild::Init(nsIURI *aManifestURI,
nsIURI *aDocumentURI,
nsIDOMDocument *aDocument)
nsIURI *aDocumentURI,
nsIDOMDocument *aDocument,
nsILocalFile *aCustomProfileDir)
{
nsresult rv;
@@ -188,6 +189,11 @@ OfflineCacheUpdateChild::Init(nsIURI *aManifestURI,
if (!service)
return NS_ERROR_FAILURE;
if (aCustomProfileDir) {
NS_ERROR("Custom Offline Cache Update not supported on child process");
return NS_ERROR_NOT_IMPLEMENTED;
}
LOG(("OfflineCacheUpdateChild::Init [%p]", this));
// Only http and https applications are supported.