зеркало из https://github.com/mozilla/pjs.git
Added outer param to NewLoadGroup.
This commit is contained in:
Родитель
5d32aee9fc
Коммит
fcd36cebd4
|
@ -54,6 +54,6 @@ extern nsresult
|
|||
NS_MakeAbsoluteURI(const nsString& spec, nsIURI* baseURI, nsString& result);
|
||||
|
||||
extern nsresult
|
||||
NS_NewLoadGroup(nsILoadGroup* parent, nsILoadGroup* *result);
|
||||
NS_NewLoadGroup(nsILoadGroup* parent, nsISupports* outer, nsILoadGroup* *result);
|
||||
|
||||
#endif // nsNeckoUtil_h__
|
||||
|
|
|
@ -55,11 +55,11 @@ NS_OpenURI(nsIChannel* *result, nsIURI* uri, nsILoadGroup* group)
|
|||
nsresult rv;
|
||||
NS_WITH_SERVICE(nsIIOService, serv, kIOServiceCID, &rv);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
|
||||
nsIChannel* channel;
|
||||
rv = serv->NewChannelFromURI("load", uri, nsnull, &channel);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
#if 0
|
||||
if (group) {
|
||||
rv = group->AddChannel(channel);
|
||||
if (NS_FAILED(rv)) {
|
||||
|
@ -67,6 +67,7 @@ NS_OpenURI(nsIChannel* *result, nsIURI* uri, nsILoadGroup* group)
|
|||
return rv;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
*result = channel;
|
||||
return rv;
|
||||
}
|
||||
|
@ -131,13 +132,13 @@ NS_MakeAbsoluteURI(const nsString& spec, nsIURI* baseURI, nsString& result)
|
|||
}
|
||||
|
||||
nsresult
|
||||
NS_NewLoadGroup(nsILoadGroup* parent, nsILoadGroup* *result)
|
||||
NS_NewLoadGroup(nsILoadGroup* parent, nsISupports* outer, nsILoadGroup* *result)
|
||||
{
|
||||
nsresult rv;
|
||||
NS_WITH_SERVICE(nsIIOService, serv, kIOServiceCID, &rv);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
return serv->NewLoadGroup(parent, result);
|
||||
return serv->NewLoadGroup(parent, outer, result);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -417,7 +417,7 @@ nsDocLoaderImpl::Init()
|
|||
rv = NS_NewISupportsArray(getter_AddRefs(m_LoadingDocsList));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
#ifdef NECKO
|
||||
rv = NS_NewLoadGroup(nsnull, getter_AddRefs(mLoadGroup));
|
||||
rv = NS_NewLoadGroup(nsnull, nsnull, getter_AddRefs(mLoadGroup));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
#else
|
||||
rv = NS_NewLoadAttribs(getter_AddRefs(m_LoadAttrib));
|
||||
|
|
|
@ -417,7 +417,7 @@ nsDocLoaderImpl::Init()
|
|||
rv = NS_NewISupportsArray(getter_AddRefs(m_LoadingDocsList));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
#ifdef NECKO
|
||||
rv = NS_NewLoadGroup(nsnull, getter_AddRefs(mLoadGroup));
|
||||
rv = NS_NewLoadGroup(nsnull, nsnull, getter_AddRefs(mLoadGroup));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
#else
|
||||
rv = NS_NewLoadAttribs(getter_AddRefs(m_LoadAttrib));
|
||||
|
|
Загрузка…
Ссылка в новой задаче