Renamed nsIURLGroup to nsILoadGroup in preparation for necko.

This commit is contained in:
warren%netscape.com 1999-06-25 02:17:37 +00:00
Родитель 6fc20cbcd6
Коммит 2f5289766d
42 изменённых файлов: 231 добавлений и 231 удалений

Просмотреть файл

@ -40,7 +40,7 @@ class nsIURI;
#ifdef NECKO
class nsILoadGroup;
#else
class nsIURLGroup;
class nsILoadGroup;
#endif
class nsIViewManager;
class nsString;
@ -106,14 +106,14 @@ public:
#ifdef NECKO
/**
* Return the URLGroup for the document. May return null.
* Return the LoadGroup for the document. May return null.
*/
NS_IMETHOD_(nsILoadGroup*) GetDocumentLoadGroup() const = 0;
#else
/**
* Return the URLGroup for the document. May return null.
* Return the LoadGroup for the document. May return null.
*/
virtual nsIURLGroup* GetDocumentLoadGroup() const = 0;
virtual nsILoadGroup* GetDocumentLoadGroup() const = 0;
#endif
/**

Просмотреть файл

@ -891,7 +891,7 @@ nsDocument::Reset(nsIURI *aURL)
NS_ADDREF(aURL);
#ifndef NECKO
rv = aURL->GetURLGroup(&mDocumentLoadGroup);
rv = aURL->GetLoadGroup(&mDocumentLoadGroup);
#endif
}
@ -932,7 +932,7 @@ nsDocument::GetContentType(nsString& aContentType) const
#ifdef NECKO
NS_IMETHODIMP_(nsILoadGroup*) nsDocument::GetDocumentLoadGroup() const
#else
nsIURLGroup* nsDocument::GetDocumentLoadGroup() const
nsILoadGroup* nsDocument::GetDocumentLoadGroup() const
#endif
{
NS_IF_ADDREF(mDocumentLoadGroup);

Просмотреть файл

@ -137,9 +137,9 @@ public:
NS_IMETHOD_(nsILoadGroup*) GetDocumentLoadGroup() const;
#else
/**
* Return the URLGroup for the document. May return null.
* Return the LoadGroup for the document. May return null.
*/
virtual nsIURLGroup* GetDocumentLoadGroup() const;
virtual nsILoadGroup* GetDocumentLoadGroup() const;
#endif
/**
@ -452,7 +452,7 @@ protected:
#ifdef NECKO
nsILoadGroup* mDocumentLoadGroup;
#else
nsIURLGroup* mDocumentLoadGroup;
nsILoadGroup* mDocumentLoadGroup;
#endif
nsString mCharacterSet;
nsIDocument* mParentDocument;

Просмотреть файл

@ -995,11 +995,11 @@ nsGenericHTMLElement::GetBaseURL(nsIHTMLAttributes* aAttributes,
nsIURI* url = nsnull;
#ifndef NECKO
nsIURLGroup* urlGroup = nsnull;
docBaseURL->GetURLGroup(&urlGroup);
if (urlGroup) {
result = urlGroup->CreateURL(&url, docBaseURL, baseHref, nsnull);
NS_RELEASE(urlGroup);
nsILoadGroup* LoadGroup = nsnull;
docBaseURL->GetLoadGroup(&LoadGroup);
if (LoadGroup) {
result = LoadGroup->CreateURL(&url, docBaseURL, baseHref, nsnull);
NS_RELEASE(LoadGroup);
}
else
#endif

Просмотреть файл

@ -2490,11 +2490,11 @@ HTMLContentSink::ProcessStyleLink(nsIHTMLContent* aElement,
if ((0 == mimeType.Length()) || mimeType.EqualsIgnoreCase("text/css")) {
nsIURI* url = nsnull;
#ifndef NECKO
nsIURLGroup* urlGroup = nsnull;
mDocumentBaseURL->GetURLGroup(&urlGroup);
if (urlGroup) {
result = urlGroup->CreateURL(&url, mDocumentBaseURL, aHref, nsnull);
NS_RELEASE(urlGroup);
nsILoadGroup* LoadGroup = nsnull;
mDocumentBaseURL->GetLoadGroup(&LoadGroup);
if (LoadGroup) {
result = LoadGroup->CreateURL(&url, mDocumentBaseURL, aHref, nsnull);
NS_RELEASE(LoadGroup);
}
else
#endif
@ -2933,11 +2933,11 @@ HTMLContentSink::ProcessSCRIPTTag(const nsIParserNode& aNode)
// Use the SRC attribute value to load the URL
nsIURI* url = nsnull;
#ifndef NECKO
nsIURLGroup* urlGroup = nsnull;
mDocumentBaseURL->GetURLGroup(&urlGroup);
if (urlGroup) {
rv = urlGroup->CreateURL(&url, mDocumentBaseURL, src, nsnull);
NS_RELEASE(urlGroup);
nsILoadGroup* LoadGroup = nsnull;
mDocumentBaseURL->GetLoadGroup(&LoadGroup);
if (LoadGroup) {
rv = LoadGroup->CreateURL(&url, mDocumentBaseURL, src, nsnull);
NS_RELEASE(LoadGroup);
}
else
#endif
@ -3094,11 +3094,11 @@ HTMLContentSink::ProcessSTYLETag(const nsIParserNode& aNode)
// Use the SRC attribute value to load the URL
nsIURI* url = nsnull;
#ifndef NECKO
nsIURLGroup* urlGroup = nsnull;
mDocumentBaseURL->GetURLGroup(&urlGroup);
if (urlGroup) {
rv = urlGroup->CreateURL(&url, mDocumentBaseURL, src, nsnull);
NS_RELEASE(urlGroup);
nsILoadGroup* LoadGroup = nsnull;
mDocumentBaseURL->GetLoadGroup(&LoadGroup);
if (LoadGroup) {
rv = LoadGroup->CreateURL(&url, mDocumentBaseURL, src, nsnull);
NS_RELEASE(LoadGroup);
}
else
#endif

Просмотреть файл

@ -573,11 +573,11 @@ nsHTMLDocument:: SetBaseURL(const nsString& aURLSpec)
NS_IF_RELEASE(mBaseURL);
if (0 < aURLSpec.Length()) {
#ifndef NECKO
nsIURLGroup* urlGroup = nsnull;
(void)mDocumentURL->GetURLGroup(&urlGroup);
if (urlGroup) {
result = urlGroup->CreateURL(&mBaseURL, mDocumentURL, aURLSpec, nsnull);
NS_RELEASE(urlGroup);
nsILoadGroup* LoadGroup = nsnull;
(void)mDocumentURL->GetLoadGroup(&LoadGroup);
if (LoadGroup) {
result = LoadGroup->CreateURL(&mBaseURL, mDocumentURL, aURLSpec, nsnull);
NS_RELEASE(LoadGroup);
}
else
#endif

Просмотреть файл

@ -997,11 +997,11 @@ static nsIURI* CloneURL(nsIURI* aURL)
if (urlStr) {
nsAutoString buffer(urlStr);
delete [] urlStr;
nsIURLGroup* urlGroup = nsnull;
aURL->GetURLGroup(&urlGroup);
if (urlGroup) {
urlGroup->CreateURL(&result, aURL, buffer, nsnull);
NS_RELEASE(urlGroup);
nsILoadGroup* LoadGroup = nsnull;
aURL->GetLoadGroup(&LoadGroup);
if (LoadGroup) {
LoadGroup->CreateURL(&result, aURL, buffer, nsnull);
NS_RELEASE(LoadGroup);
}
else {
#ifndef NECKO

Просмотреть файл

@ -826,11 +826,11 @@ PRBool CSSParserImpl::ProcessImport(PRInt32& aErrorCode, const nsString& aURLSpe
// XXX probably need a way to encode unicode junk for the part of
// the url that follows a "?"
nsIURI* url;
nsIURLGroup* urlGroup = nsnull;
mURL->GetURLGroup(&urlGroup);
if (urlGroup) {
aErrorCode = urlGroup->CreateURL(&url, mURL, aURLSpec, nsnull);
NS_RELEASE(urlGroup);
nsILoadGroup* LoadGroup = nsnull;
mURL->GetLoadGroup(&LoadGroup);
if (LoadGroup) {
aErrorCode = LoadGroup->CreateURL(&url, mURL, aURLSpec, nsnull);
NS_RELEASE(LoadGroup);
}
else {
#ifndef NECKO

Просмотреть файл

@ -1003,14 +1003,14 @@ nsXMLContentSink::CreateStyleSheetURL(nsIURI** aUrl,
{
nsAutoString absURL;
nsIURI* docURL = mDocument->GetDocumentURL();
nsIURLGroup* urlGroup;
nsILoadGroup* LoadGroup;
nsresult result = NS_OK;
result = docURL->GetURLGroup(&urlGroup);
result = docURL->GetLoadGroup(&LoadGroup);
if ((NS_SUCCEEDED(result)) && urlGroup) {
result = urlGroup->CreateURL(aUrl, docURL, aHref, nsnull);
NS_RELEASE(urlGroup);
if ((NS_SUCCEEDED(result)) && LoadGroup) {
result = LoadGroup->CreateURL(aUrl, docURL, aHref, nsnull);
NS_RELEASE(LoadGroup);
}
else {
#ifndef NECKO
@ -1142,11 +1142,11 @@ nsXMLContentSink::ProcessStyleLink(nsIContent* aElement,
if ((0 == mimeType.Length()) || mimeType.EqualsIgnoreCase("text/css")) {
nsIURI* url = nsnull;
nsIURLGroup* urlGroup = nsnull;
mDocumentBaseURL->GetURLGroup(&urlGroup);
if (urlGroup) {
result = urlGroup->CreateURL(&url, mDocumentBaseURL, aHref, nsnull);
NS_RELEASE(urlGroup);
nsILoadGroup* LoadGroup = nsnull;
mDocumentBaseURL->GetLoadGroup(&LoadGroup);
if (LoadGroup) {
result = LoadGroup->CreateURL(&url, mDocumentBaseURL, aHref, nsnull);
NS_RELEASE(LoadGroup);
}
else {
#ifndef NECKO
@ -1764,13 +1764,13 @@ nsXMLContentSink::ProcessStartSCRIPTTag(const nsIParserNode& aNode)
nsIURI* url = nsnull;
nsAutoString absURL;
nsIURI* docURL = mDocument->GetDocumentURL();
nsIURLGroup* urlGroup;
nsILoadGroup* LoadGroup;
rv = docURL->GetURLGroup(&urlGroup);
rv = docURL->GetLoadGroup(&LoadGroup);
if ((NS_OK == rv) && urlGroup) {
rv = urlGroup->CreateURL(&url, docURL, src, nsnull);
NS_RELEASE(urlGroup);
if ((NS_OK == rv) && LoadGroup) {
rv = LoadGroup->CreateURL(&url, docURL, src, nsnull);
NS_RELEASE(LoadGroup);
}
else {
#ifndef NECKO

Просмотреть файл

@ -432,7 +432,7 @@ public:
virtual nsIURI* GetDocumentURL() const;
virtual nsIURLGroup* GetDocumentURLGroup() const;
virtual nsIURLGroup* GetDocumentLoadGroup() const;
NS_IMETHOD GetBaseURL(nsIURI*& aURL) const;
@ -1359,7 +1359,7 @@ XULDocumentImpl::GetDocumentURL() const
}
nsIURLGroup*
XULDocumentImpl::GetDocumentURLGroup() const
XULDocumentImpl::GetDocumentLoadGroup() const
{
nsIURLGroup* result = mDocumentURLGroup;
NS_IF_ADDREF(result);

Просмотреть файл

@ -30,7 +30,7 @@ class nsIImageRequest;
class nsIDeviceContext;
class nsIStreamListener;
#ifndef NECKO
class nsIURLGroup;
class nsILoadGroup;
#endif
/** For important images, like backdrops. */
@ -64,7 +64,7 @@ public:
#ifdef NECKO
virtual nsresult Init(nsIDeviceContext *aDeviceContext) = 0;
#else
virtual nsresult Init(nsIDeviceContext *aDeviceContext, nsIURLGroup* aURLGroup) = 0;
virtual nsresult Init(nsIDeviceContext *aDeviceContext, nsILoadGroup* aLoadGroup) = 0;
#endif
/**

Просмотреть файл

@ -45,7 +45,7 @@ public:
#ifdef NECKO
nsresult Init(nsIDeviceContext *aDeviceContext);
#else
nsresult Init(nsIDeviceContext *aDeviceContext, nsIURLGroup* aURLGroup);
nsresult Init(nsIDeviceContext *aDeviceContext, nsILoadGroup* aLoadGroup);
#endif
NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW
@ -81,7 +81,7 @@ public:
ilINetContext* mNetContext;
nsIStreamListener** mListenerRequest;
#ifndef NECKO
nsIURLGroup* mURLGroup;
nsILoadGroup* mLoadGroup;
#endif
};
@ -116,7 +116,7 @@ ImageGroupImpl::~ImageGroupImpl()
NS_IF_RELEASE(mManager);
NS_IF_RELEASE(mNetContext);
#ifndef NECKO
NS_IF_RELEASE(mURLGroup);
NS_IF_RELEASE(mLoadGroup);
#endif
}
@ -175,7 +175,7 @@ nsresult
#ifdef NECKO
ImageGroupImpl::Init(nsIDeviceContext *aDeviceContext)
#else
ImageGroupImpl::Init(nsIDeviceContext *aDeviceContext, nsIURLGroup* aURLGroup)
ImageGroupImpl::Init(nsIDeviceContext *aDeviceContext, nsILoadGroup* aLoadGroup)
#endif
{
ilIImageRenderer *renderer;
@ -192,15 +192,15 @@ ImageGroupImpl::Init(nsIDeviceContext *aDeviceContext, nsIURLGroup* aURLGroup)
}
#ifndef NECKO
mURLGroup = aURLGroup;
NS_IF_ADDREF(mURLGroup);
mLoadGroup = aLoadGroup;
NS_IF_ADDREF(mLoadGroup);
#endif // NECKO
// Create an async net context
#ifdef NECKO
result = NS_NewImageNetContext(&mNetContext, ReconnectHack, this);
#else
result = NS_NewImageNetContext(&mNetContext, mURLGroup, ReconnectHack, this);
result = NS_NewImageNetContext(&mNetContext, mLoadGroup, ReconnectHack, this);
#endif
if (NS_OK != result) {
return result;

Просмотреть файл

@ -24,14 +24,14 @@
class nsIStreamListener;
#ifndef NECKO
class nsIURLGroup;
class nsILoadGroup;
#endif
typedef PRBool (*nsReconnectCB)(void* arg, nsIStreamListener* aListener);
extern "C" NS_GFX_(nsresult)
NS_NewImageNetContext(ilINetContext **aInstancePtrResult,
#ifndef NECKO
nsIURLGroup* aURLGroup,
nsILoadGroup* aLoadGroup,
#endif
nsReconnectCB aReconnectCallback,
void* aReconnectArg);
@ -40,7 +40,7 @@ extern "C" NS_GFX_(nsresult)
NS_NewImageURL(ilIURL **aInstancePtrResult,
const char *aURL
#ifndef NECKO
, nsIURLGroup* aURLGroup
, nsILoadGroup* aLoadGroup
#endif
);

Просмотреть файл

@ -59,7 +59,7 @@ class ImageNetContextImpl : public ilINetContext {
public:
ImageNetContextImpl(NET_ReloadMethod aReloadPolicy,
#ifndef NECKO
nsIURLGroup* aURLGroup,
nsILoadGroup* aLoadGroup,
#endif
nsReconnectCB aReconnectCallback,
void* aReconnectArg);
@ -97,7 +97,7 @@ public:
nsVoidArray *mRequests;
NET_ReloadMethod mReloadPolicy;
#ifndef NECKO
nsIURLGroup* mURLGroup;
nsILoadGroup* mLoadGroup;
#endif
nsReconnectCB mReconnectCallback;
void* mReconnectArg;
@ -400,7 +400,7 @@ ImageConsumer::~ImageConsumer()
ImageNetContextImpl::ImageNetContextImpl(NET_ReloadMethod aReloadPolicy,
#ifndef NECKO
nsIURLGroup* aURLGroup,
nsILoadGroup* aLoadGroup,
#endif
nsReconnectCB aReconnectCallback,
void* aReconnectArg)
@ -408,8 +408,8 @@ ImageNetContextImpl::ImageNetContextImpl(NET_ReloadMethod aReloadPolicy,
NS_INIT_REFCNT();
mRequests = nsnull;
#ifndef NECKO
mURLGroup = aURLGroup;
NS_IF_ADDREF(mURLGroup);
mLoadGroup = aLoadGroup;
NS_IF_ADDREF(mLoadGroup);
#endif
mReloadPolicy = aReloadPolicy;
mReconnectCallback = aReconnectCallback;
@ -428,7 +428,7 @@ ImageNetContextImpl::~ImageNetContextImpl()
delete mRequests;
}
#ifndef NECKO
NS_IF_RELEASE(mURLGroup);
NS_IF_RELEASE(mLoadGroup);
#endif
}
@ -442,7 +442,7 @@ ImageNetContextImpl::Clone()
#ifdef NECKO
if (NS_NewImageNetContext(&cx, mReconnectCallback, mReconnectArg) == NS_OK)
#else
if (NS_NewImageNetContext(&cx, mURLGroup, mReconnectCallback, mReconnectArg) == NS_OK)
if (NS_NewImageNetContext(&cx, mLoadGroup, mReconnectCallback, mReconnectArg) == NS_OK)
#endif
{
return cx;
@ -491,7 +491,7 @@ ImageNetContextImpl::CreateURL(const char *aURL,
#ifdef NECKO
if (NS_NewImageURL(&url, aURL) == NS_OK)
#else
if (NS_NewImageURL(&url, aURL, mURLGroup) == NS_OK)
if (NS_NewImageURL(&url, aURL, mLoadGroup) == NS_OK)
#endif
{
return url;
@ -598,7 +598,7 @@ ImageNetContextImpl::RequestDone(ImageConsumer *aConsumer)
extern "C" NS_GFX_(nsresult)
NS_NewImageNetContext(ilINetContext **aInstancePtrResult,
#ifndef NECKO
nsIURLGroup* aURLGroup,
nsILoadGroup* aLoadGroup,
#endif
nsReconnectCB aReconnectCallback,
void* aReconnectArg)
@ -610,7 +610,7 @@ NS_NewImageNetContext(ilINetContext **aInstancePtrResult,
ilINetContext *cx = new ImageNetContextImpl(NET_NORMAL_RELOAD,
#ifndef NECKO
aURLGroup,
aLoadGroup,
#endif
aReconnectCallback,
aReconnectArg);

Просмотреть файл

@ -48,7 +48,7 @@ public:
#ifdef NECKO
nsresult Init(const char *aURL);
#else
nsresult Init(const char *aURL, nsIURLGroup* aURLGroup);
nsresult Init(const char *aURL, nsILoadGroup* aLoadGroup);
#endif
virtual void SetReader(ilINetReader *aReader);
@ -90,13 +90,13 @@ nsresult
#ifdef NECKO
ImageURLImpl::Init(const char *aURL)
#else
ImageURLImpl::Init(const char *aURL, nsIURLGroup* aURLGroup)
ImageURLImpl::Init(const char *aURL, nsILoadGroup* aLoadGroup)
#endif
{
nsresult rv;
#ifndef NECKO
if (nsnull != aURLGroup) {
rv = aURLGroup->CreateURL(&mURL, nsnull, aURL, nsnull);
if (nsnull != aLoadGroup) {
rv = aLoadGroup->CreateURL(&mURL, nsnull, aURL, nsnull);
}
else
#endif
@ -245,7 +245,7 @@ ImageURLImpl::SetOwnerId(int aOwnerId)
extern "C" NS_GFX_(nsresult)
NS_NewImageURL(ilIURL **aInstancePtrResult, const char *aURL
#ifndef NECKO
, nsIURLGroup* aURLGroup
, nsILoadGroup* aLoadGroup
#endif
)
{
@ -261,7 +261,7 @@ NS_NewImageURL(ilIURL **aInstancePtrResult, const char *aURL
#ifdef NECKO
nsresult rv = url->Init(aURL);
#else
nsresult rv = url->Init(aURL, aURLGroup);
nsresult rv = url->Init(aURL, aLoadGroup);
#endif
if (rv != NS_OK) {
delete url;

Просмотреть файл

@ -703,10 +703,10 @@ nsPresContext::GetImageGroup(nsIImageGroup** aResult)
#ifndef NECKO
// Initialize the image group
nsCOMPtr<nsIURLGroup> urlGroup;
rv = mBaseURL->GetURLGroup(getter_AddRefs(urlGroup));
nsCOMPtr<nsILoadGroup> LoadGroup;
rv = mBaseURL->GetLoadGroup(getter_AddRefs(LoadGroup));
if (rv == NS_OK)
rv = mImageGroup->Init(mDeviceContext, urlGroup);
rv = mImageGroup->Init(mDeviceContext, LoadGroup);
if (NS_OK != rv) {
return rv;
}

Просмотреть файл

@ -40,7 +40,7 @@ class nsIURI;
#ifdef NECKO
class nsILoadGroup;
#else
class nsIURLGroup;
class nsILoadGroup;
#endif
class nsIViewManager;
class nsString;
@ -106,14 +106,14 @@ public:
#ifdef NECKO
/**
* Return the URLGroup for the document. May return null.
* Return the LoadGroup for the document. May return null.
*/
NS_IMETHOD_(nsILoadGroup*) GetDocumentLoadGroup() const = 0;
#else
/**
* Return the URLGroup for the document. May return null.
* Return the LoadGroup for the document. May return null.
*/
virtual nsIURLGroup* GetDocumentLoadGroup() const = 0;
virtual nsILoadGroup* GetDocumentLoadGroup() const = 0;
#endif
/**

Просмотреть файл

@ -891,7 +891,7 @@ nsDocument::Reset(nsIURI *aURL)
NS_ADDREF(aURL);
#ifndef NECKO
rv = aURL->GetURLGroup(&mDocumentLoadGroup);
rv = aURL->GetLoadGroup(&mDocumentLoadGroup);
#endif
}
@ -932,7 +932,7 @@ nsDocument::GetContentType(nsString& aContentType) const
#ifdef NECKO
NS_IMETHODIMP_(nsILoadGroup*) nsDocument::GetDocumentLoadGroup() const
#else
nsIURLGroup* nsDocument::GetDocumentLoadGroup() const
nsILoadGroup* nsDocument::GetDocumentLoadGroup() const
#endif
{
NS_IF_ADDREF(mDocumentLoadGroup);

Просмотреть файл

@ -137,9 +137,9 @@ public:
NS_IMETHOD_(nsILoadGroup*) GetDocumentLoadGroup() const;
#else
/**
* Return the URLGroup for the document. May return null.
* Return the LoadGroup for the document. May return null.
*/
virtual nsIURLGroup* GetDocumentLoadGroup() const;
virtual nsILoadGroup* GetDocumentLoadGroup() const;
#endif
/**
@ -452,7 +452,7 @@ protected:
#ifdef NECKO
nsILoadGroup* mDocumentLoadGroup;
#else
nsIURLGroup* mDocumentLoadGroup;
nsILoadGroup* mDocumentLoadGroup;
#endif
nsString mCharacterSet;
nsIDocument* mParentDocument;

Просмотреть файл

@ -703,10 +703,10 @@ nsPresContext::GetImageGroup(nsIImageGroup** aResult)
#ifndef NECKO
// Initialize the image group
nsCOMPtr<nsIURLGroup> urlGroup;
rv = mBaseURL->GetURLGroup(getter_AddRefs(urlGroup));
nsCOMPtr<nsILoadGroup> LoadGroup;
rv = mBaseURL->GetLoadGroup(getter_AddRefs(LoadGroup));
if (rv == NS_OK)
rv = mImageGroup->Init(mDeviceContext, urlGroup);
rv = mImageGroup->Init(mDeviceContext, LoadGroup);
if (NS_OK != rv) {
return rv;
}

Просмотреть файл

@ -594,9 +594,9 @@ nsObjectFrame::Reflow(nsIPresContext& aPresContext,
return rv;
#ifndef NECKO
nsIURLGroup* group = nsnull;
nsILoadGroup* group = nsnull;
if (nsnull != baseURL)
baseURL->GetURLGroup(&group);
baseURL->GetLoadGroup(&group);
#endif
nsAutoString codeBase;
@ -675,9 +675,9 @@ nsObjectFrame::Reflow(nsIPresContext& aPresContext,
return rv;
#ifndef NECKO
nsIURLGroup* group = nsnull;
nsILoadGroup* group = nsnull;
if(nsnull != baseURL)
baseURL->GetURLGroup(&group);
baseURL->GetLoadGroup(&group);
#endif
// if we have a codebase, add it to the fullURL
@ -786,9 +786,9 @@ nsObjectFrame::Reflow(nsIPresContext& aPresContext,
if (NS_CONTENT_ATTR_HAS_VALUE == mContent->GetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::code, src))
{
#ifndef NECKO
nsIURLGroup* group = nsnull;
nsILoadGroup* group = nsnull;
if (nsnull != baseURL)
baseURL->GetURLGroup(&group);
baseURL->GetLoadGroup(&group);
#endif
nsAutoString codeBase;
@ -838,9 +838,9 @@ nsObjectFrame::Reflow(nsIPresContext& aPresContext,
// Create an absolute URL
rv = NS_NewURI(&fullURL, src, baseURL);
#else
nsIURLGroup* group = nsnull;
nsILoadGroup* group = nsnull;
if (nsnull != baseURL)
baseURL->GetURLGroup(&group);
baseURL->GetLoadGroup(&group);
// Create an absolute URL
rv = NS_NewURL(&fullURL, src, baseURL, nsnull, group);
@ -853,9 +853,9 @@ nsObjectFrame::Reflow(nsIPresContext& aPresContext,
// Create an absolute URL
rv = NS_NewURI(&fullURL, src, baseURL);
#else
nsIURLGroup* group = nsnull;
nsILoadGroup* group = nsnull;
if (nsnull != baseURL)
baseURL->GetURLGroup(&group);
baseURL->GetLoadGroup(&group);
// Create an absolute URL
rv = NS_NewURL(&fullURL, src, baseURL, nsnull, group);

Просмотреть файл

@ -594,9 +594,9 @@ nsObjectFrame::Reflow(nsIPresContext& aPresContext,
return rv;
#ifndef NECKO
nsIURLGroup* group = nsnull;
nsILoadGroup* group = nsnull;
if (nsnull != baseURL)
baseURL->GetURLGroup(&group);
baseURL->GetLoadGroup(&group);
#endif
nsAutoString codeBase;
@ -675,9 +675,9 @@ nsObjectFrame::Reflow(nsIPresContext& aPresContext,
return rv;
#ifndef NECKO
nsIURLGroup* group = nsnull;
nsILoadGroup* group = nsnull;
if(nsnull != baseURL)
baseURL->GetURLGroup(&group);
baseURL->GetLoadGroup(&group);
#endif
// if we have a codebase, add it to the fullURL
@ -786,9 +786,9 @@ nsObjectFrame::Reflow(nsIPresContext& aPresContext,
if (NS_CONTENT_ATTR_HAS_VALUE == mContent->GetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::code, src))
{
#ifndef NECKO
nsIURLGroup* group = nsnull;
nsILoadGroup* group = nsnull;
if (nsnull != baseURL)
baseURL->GetURLGroup(&group);
baseURL->GetLoadGroup(&group);
#endif
nsAutoString codeBase;
@ -838,9 +838,9 @@ nsObjectFrame::Reflow(nsIPresContext& aPresContext,
// Create an absolute URL
rv = NS_NewURI(&fullURL, src, baseURL);
#else
nsIURLGroup* group = nsnull;
nsILoadGroup* group = nsnull;
if (nsnull != baseURL)
baseURL->GetURLGroup(&group);
baseURL->GetLoadGroup(&group);
// Create an absolute URL
rv = NS_NewURL(&fullURL, src, baseURL, nsnull, group);
@ -853,9 +853,9 @@ nsObjectFrame::Reflow(nsIPresContext& aPresContext,
// Create an absolute URL
rv = NS_NewURI(&fullURL, src, baseURL);
#else
nsIURLGroup* group = nsnull;
nsILoadGroup* group = nsnull;
if (nsnull != baseURL)
baseURL->GetURLGroup(&group);
baseURL->GetLoadGroup(&group);
// Create an absolute URL
rv = NS_NewURL(&fullURL, src, baseURL, nsnull, group);

Просмотреть файл

@ -995,11 +995,11 @@ nsGenericHTMLElement::GetBaseURL(nsIHTMLAttributes* aAttributes,
nsIURI* url = nsnull;
#ifndef NECKO
nsIURLGroup* urlGroup = nsnull;
docBaseURL->GetURLGroup(&urlGroup);
if (urlGroup) {
result = urlGroup->CreateURL(&url, docBaseURL, baseHref, nsnull);
NS_RELEASE(urlGroup);
nsILoadGroup* LoadGroup = nsnull;
docBaseURL->GetLoadGroup(&LoadGroup);
if (LoadGroup) {
result = LoadGroup->CreateURL(&url, docBaseURL, baseHref, nsnull);
NS_RELEASE(LoadGroup);
}
else
#endif

Просмотреть файл

@ -2490,11 +2490,11 @@ HTMLContentSink::ProcessStyleLink(nsIHTMLContent* aElement,
if ((0 == mimeType.Length()) || mimeType.EqualsIgnoreCase("text/css")) {
nsIURI* url = nsnull;
#ifndef NECKO
nsIURLGroup* urlGroup = nsnull;
mDocumentBaseURL->GetURLGroup(&urlGroup);
if (urlGroup) {
result = urlGroup->CreateURL(&url, mDocumentBaseURL, aHref, nsnull);
NS_RELEASE(urlGroup);
nsILoadGroup* LoadGroup = nsnull;
mDocumentBaseURL->GetLoadGroup(&LoadGroup);
if (LoadGroup) {
result = LoadGroup->CreateURL(&url, mDocumentBaseURL, aHref, nsnull);
NS_RELEASE(LoadGroup);
}
else
#endif
@ -2933,11 +2933,11 @@ HTMLContentSink::ProcessSCRIPTTag(const nsIParserNode& aNode)
// Use the SRC attribute value to load the URL
nsIURI* url = nsnull;
#ifndef NECKO
nsIURLGroup* urlGroup = nsnull;
mDocumentBaseURL->GetURLGroup(&urlGroup);
if (urlGroup) {
rv = urlGroup->CreateURL(&url, mDocumentBaseURL, src, nsnull);
NS_RELEASE(urlGroup);
nsILoadGroup* LoadGroup = nsnull;
mDocumentBaseURL->GetLoadGroup(&LoadGroup);
if (LoadGroup) {
rv = LoadGroup->CreateURL(&url, mDocumentBaseURL, src, nsnull);
NS_RELEASE(LoadGroup);
}
else
#endif
@ -3094,11 +3094,11 @@ HTMLContentSink::ProcessSTYLETag(const nsIParserNode& aNode)
// Use the SRC attribute value to load the URL
nsIURI* url = nsnull;
#ifndef NECKO
nsIURLGroup* urlGroup = nsnull;
mDocumentBaseURL->GetURLGroup(&urlGroup);
if (urlGroup) {
rv = urlGroup->CreateURL(&url, mDocumentBaseURL, src, nsnull);
NS_RELEASE(urlGroup);
nsILoadGroup* LoadGroup = nsnull;
mDocumentBaseURL->GetLoadGroup(&LoadGroup);
if (LoadGroup) {
rv = LoadGroup->CreateURL(&url, mDocumentBaseURL, src, nsnull);
NS_RELEASE(LoadGroup);
}
else
#endif

Просмотреть файл

@ -573,11 +573,11 @@ nsHTMLDocument:: SetBaseURL(const nsString& aURLSpec)
NS_IF_RELEASE(mBaseURL);
if (0 < aURLSpec.Length()) {
#ifndef NECKO
nsIURLGroup* urlGroup = nsnull;
(void)mDocumentURL->GetURLGroup(&urlGroup);
if (urlGroup) {
result = urlGroup->CreateURL(&mBaseURL, mDocumentURL, aURLSpec, nsnull);
NS_RELEASE(urlGroup);
nsILoadGroup* LoadGroup = nsnull;
(void)mDocumentURL->GetLoadGroup(&LoadGroup);
if (LoadGroup) {
result = LoadGroup->CreateURL(&mBaseURL, mDocumentURL, aURLSpec, nsnull);
NS_RELEASE(LoadGroup);
}
else
#endif

Просмотреть файл

@ -997,11 +997,11 @@ static nsIURI* CloneURL(nsIURI* aURL)
if (urlStr) {
nsAutoString buffer(urlStr);
delete [] urlStr;
nsIURLGroup* urlGroup = nsnull;
aURL->GetURLGroup(&urlGroup);
if (urlGroup) {
urlGroup->CreateURL(&result, aURL, buffer, nsnull);
NS_RELEASE(urlGroup);
nsILoadGroup* LoadGroup = nsnull;
aURL->GetLoadGroup(&LoadGroup);
if (LoadGroup) {
LoadGroup->CreateURL(&result, aURL, buffer, nsnull);
NS_RELEASE(LoadGroup);
}
else {
#ifndef NECKO

Просмотреть файл

@ -826,11 +826,11 @@ PRBool CSSParserImpl::ProcessImport(PRInt32& aErrorCode, const nsString& aURLSpe
// XXX probably need a way to encode unicode junk for the part of
// the url that follows a "?"
nsIURI* url;
nsIURLGroup* urlGroup = nsnull;
mURL->GetURLGroup(&urlGroup);
if (urlGroup) {
aErrorCode = urlGroup->CreateURL(&url, mURL, aURLSpec, nsnull);
NS_RELEASE(urlGroup);
nsILoadGroup* LoadGroup = nsnull;
mURL->GetLoadGroup(&LoadGroup);
if (LoadGroup) {
aErrorCode = LoadGroup->CreateURL(&url, mURL, aURLSpec, nsnull);
NS_RELEASE(LoadGroup);
}
else {
#ifndef NECKO

Просмотреть файл

@ -997,11 +997,11 @@ static nsIURI* CloneURL(nsIURI* aURL)
if (urlStr) {
nsAutoString buffer(urlStr);
delete [] urlStr;
nsIURLGroup* urlGroup = nsnull;
aURL->GetURLGroup(&urlGroup);
if (urlGroup) {
urlGroup->CreateURL(&result, aURL, buffer, nsnull);
NS_RELEASE(urlGroup);
nsILoadGroup* LoadGroup = nsnull;
aURL->GetLoadGroup(&LoadGroup);
if (LoadGroup) {
LoadGroup->CreateURL(&result, aURL, buffer, nsnull);
NS_RELEASE(LoadGroup);
}
else {
#ifndef NECKO

Просмотреть файл

@ -826,11 +826,11 @@ PRBool CSSParserImpl::ProcessImport(PRInt32& aErrorCode, const nsString& aURLSpe
// XXX probably need a way to encode unicode junk for the part of
// the url that follows a "?"
nsIURI* url;
nsIURLGroup* urlGroup = nsnull;
mURL->GetURLGroup(&urlGroup);
if (urlGroup) {
aErrorCode = urlGroup->CreateURL(&url, mURL, aURLSpec, nsnull);
NS_RELEASE(urlGroup);
nsILoadGroup* LoadGroup = nsnull;
mURL->GetLoadGroup(&LoadGroup);
if (LoadGroup) {
aErrorCode = LoadGroup->CreateURL(&url, mURL, aURLSpec, nsnull);
NS_RELEASE(LoadGroup);
}
else {
#ifndef NECKO

Просмотреть файл

@ -1003,14 +1003,14 @@ nsXMLContentSink::CreateStyleSheetURL(nsIURI** aUrl,
{
nsAutoString absURL;
nsIURI* docURL = mDocument->GetDocumentURL();
nsIURLGroup* urlGroup;
nsILoadGroup* LoadGroup;
nsresult result = NS_OK;
result = docURL->GetURLGroup(&urlGroup);
result = docURL->GetLoadGroup(&LoadGroup);
if ((NS_SUCCEEDED(result)) && urlGroup) {
result = urlGroup->CreateURL(aUrl, docURL, aHref, nsnull);
NS_RELEASE(urlGroup);
if ((NS_SUCCEEDED(result)) && LoadGroup) {
result = LoadGroup->CreateURL(aUrl, docURL, aHref, nsnull);
NS_RELEASE(LoadGroup);
}
else {
#ifndef NECKO
@ -1142,11 +1142,11 @@ nsXMLContentSink::ProcessStyleLink(nsIContent* aElement,
if ((0 == mimeType.Length()) || mimeType.EqualsIgnoreCase("text/css")) {
nsIURI* url = nsnull;
nsIURLGroup* urlGroup = nsnull;
mDocumentBaseURL->GetURLGroup(&urlGroup);
if (urlGroup) {
result = urlGroup->CreateURL(&url, mDocumentBaseURL, aHref, nsnull);
NS_RELEASE(urlGroup);
nsILoadGroup* LoadGroup = nsnull;
mDocumentBaseURL->GetLoadGroup(&LoadGroup);
if (LoadGroup) {
result = LoadGroup->CreateURL(&url, mDocumentBaseURL, aHref, nsnull);
NS_RELEASE(LoadGroup);
}
else {
#ifndef NECKO
@ -1764,13 +1764,13 @@ nsXMLContentSink::ProcessStartSCRIPTTag(const nsIParserNode& aNode)
nsIURI* url = nsnull;
nsAutoString absURL;
nsIURI* docURL = mDocument->GetDocumentURL();
nsIURLGroup* urlGroup;
nsILoadGroup* LoadGroup;
rv = docURL->GetURLGroup(&urlGroup);
rv = docURL->GetLoadGroup(&LoadGroup);
if ((NS_OK == rv) && urlGroup) {
rv = urlGroup->CreateURL(&url, docURL, src, nsnull);
NS_RELEASE(urlGroup);
if ((NS_OK == rv) && LoadGroup) {
rv = LoadGroup->CreateURL(&url, docURL, src, nsnull);
NS_RELEASE(LoadGroup);
}
else {
#ifndef NECKO

Просмотреть файл

@ -420,12 +420,12 @@ nsresult nsMsgMailNewsUrl::SetLoadAttribs(nsILoadAttribs* aLoadAttribs)
return NS_OK;
}
nsresult nsMsgMailNewsUrl::GetURLGroup(nsIURLGroup* *result) const
nsresult nsMsgMailNewsUrl::GetLoadGroup(nsILoadGroup* *result) const
{
return NS_OK;
}
nsresult nsMsgMailNewsUrl::SetURLGroup(nsIURLGroup* group)
nsresult nsMsgMailNewsUrl::SetLoadGroup(nsILoadGroup* group)
{
NS_ASSERTION(m_URL_s == nsnull, "URL has already been opened");
return NS_OK;

Просмотреть файл

@ -95,8 +95,8 @@ public:
NS_IMETHOD SetContainer(nsISupports* container);
NS_IMETHOD GetLoadAttribs(nsILoadAttribs* *result) const; // make obsolete
NS_IMETHOD SetLoadAttribs(nsILoadAttribs* loadAttribs); // make obsolete
NS_IMETHOD GetURLGroup(nsIURLGroup* *result) const; // make obsolete
NS_IMETHOD SetURLGroup(nsIURLGroup* group); // make obsolete
NS_IMETHOD GetLoadGroup(nsILoadGroup* *result) const; // make obsolete
NS_IMETHOD SetLoadGroup(nsILoadGroup* group); // make obsolete
NS_IMETHOD SetPostHeader(const char* name, const char* value); // make obsolete
NS_IMETHOD SetPostData(nsIInputStream* input); // make obsolete
NS_IMETHOD GetContentLength(PRInt32 *len);

Просмотреть файл

@ -36,7 +36,7 @@ public:
const nsString& aSpec,
const nsIURI* aContextURL = nsnull,
nsISupports* aContainer = nsnull,
nsIURLGroup* aGroup = nsnull);
nsILoadGroup* aGroup = nsnull);
////////////////////////////////////////////////////////////////////////////
// nsHttpURLFactory:
@ -65,7 +65,7 @@ nsHttpURLFactory::CreateURL(nsIURI* *aResult,
const nsString& aSpec,
const nsIURI* aContextURL,
nsISupports* aContainer,
nsIURLGroup* aGroup)
nsILoadGroup* aGroup)
{
nsHttpUrlImpl* url = new nsHttpUrlImpl(aContainer, aGroup);
if (url == NULL)

Просмотреть файл

@ -38,7 +38,7 @@ static NS_DEFINE_IID(kIURLIID, NS_IURL_IID);
static NS_DEFINE_IID(kIPostToServerIID, NS_IPOSTTOSERVER_IID);
static NS_DEFINE_IID(kIProtocolConnectionIID, NS_IPROTOCOLCONNECTION_IID);
nsHttpUrlImpl::nsHttpUrlImpl(nsISupports* aContainer, nsIURLGroup* aGroup)
nsHttpUrlImpl::nsHttpUrlImpl(nsISupports* aContainer, nsILoadGroup* aGroup)
{
NS_INIT_REFCNT();
@ -55,11 +55,11 @@ nsHttpUrlImpl::nsHttpUrlImpl(nsISupports* aContainer, nsIURLGroup* aGroup)
mSpec = nsnull;
mSearch = nsnull;
mContainer = nsnull;
mURLGroup = aGroup;
mLoadGroup = aGroup;
NS_NewLoadAttribs( getter_AddRefs(mLoadAttribs) );
// NS_IF_ADDREF(mURLGroup); --- a url should not own its group, its group already owns it
// NS_IF_ADDREF(mLoadGroup); --- a url should not own its group, its group already owns it
mContainer = aContainer;
// NS_IF_ADDREF(mContainer); --- a url should not own its container, its container already owns it
@ -69,7 +69,7 @@ nsHttpUrlImpl::nsHttpUrlImpl(nsISupports* aContainer, nsIURLGroup* aGroup)
nsHttpUrlImpl::~nsHttpUrlImpl()
{
// NS_IF_RELEASE(mContainer);
// NS_IF_RELEASE(mURLGroup);
// NS_IF_RELEASE(mLoadGroup);
PR_FREEIF(mSpec);
PR_FREEIF(mProtocol);
@ -852,22 +852,22 @@ nsresult nsHttpUrlImpl::SetLoadAttribs(nsILoadAttribs* aLoadAttribs)
return NS_OK;
}
nsresult nsHttpUrlImpl::GetURLGroup(nsIURLGroup* *result) const
nsresult nsHttpUrlImpl::GetLoadGroup(nsILoadGroup* *result) const
{
NS_LOCK_INSTANCE();
*result = mURLGroup;
NS_IF_ADDREF(mURLGroup); // getters must |AddRef| their result, even if they didn'st already own it
*result = mLoadGroup;
NS_IF_ADDREF(mLoadGroup); // getters must |AddRef| their result, even if they didn'st already own it
NS_UNLOCK_INSTANCE();
return NS_OK;
}
nsresult nsHttpUrlImpl::SetURLGroup(nsIURLGroup* group)
nsresult nsHttpUrlImpl::SetLoadGroup(nsILoadGroup* group)
{
NS_ASSERTION(m_URL_s == nsnull, "URL has already been opened");
NS_LOCK_INSTANCE();
// NS_IF_RELEASE(mURLGroup);
mURLGroup = group;
// NS_IF_ADDREF(mURLGroup);
// NS_IF_RELEASE(mLoadGroup);
mLoadGroup = group;
// NS_IF_ADDREF(mLoadGroup);
NS_UNLOCK_INSTANCE();
return NS_OK;
}

Просмотреть файл

@ -51,8 +51,8 @@ public:
NS_IMETHOD SetContainer(nsISupports* container);
NS_IMETHOD GetLoadAttribs(nsILoadAttribs* *result) const;
NS_IMETHOD SetLoadAttribs(nsILoadAttribs* loadAttribs);
NS_IMETHOD GetURLGroup(nsIURLGroup* *result) const;
NS_IMETHOD SetURLGroup(nsIURLGroup* group);
NS_IMETHOD GetLoadGroup(nsILoadGroup* *result) const;
NS_IMETHOD SetLoadGroup(nsILoadGroup* group);
NS_IMETHOD SetPostHeader(const char* name, const char* value);
NS_IMETHOD SetPostData(nsIInputStream* input);
NS_IMETHOD GetContentLength(PRInt32 *len);
@ -73,7 +73,7 @@ public:
Send_DataFromFile
} SendType;
nsHttpUrlImpl(nsISupports* aContainer, nsIURLGroup* aGroup);
nsHttpUrlImpl(nsISupports* aContainer, nsILoadGroup* aGroup);
NS_DECL_ISUPPORTS
@ -113,7 +113,7 @@ protected:
nsCOMPtr<nsIInputStream> mPostData;
nsISupports* mContainer; // explicitly changed to no longer own its container
nsCOMPtr<nsILoadAttribs> mLoadAttribs;
nsIURLGroup* mURLGroup; // explicitly changed to no longer own its group
nsILoadGroup* mLoadGroup; // explicitly changed to no longer own its group
};
#endif // nsHttpUrl_h__

Просмотреть файл

@ -227,7 +227,7 @@ struct nsINetService : public nsISupports
const nsString& aSpec,
const nsIURI* aContextURL = nsnull,
nsISupports* aContainer = nsnull,
nsIURLGroup* aGroup = nsnull) = 0;
nsILoadGroup* aGroup = nsnull) = 0;
/**
* Protocol connection pools should use this call into the service manager to

Просмотреть файл

@ -24,7 +24,7 @@
class nsString;
class nsIURI;
class nsIURLGroup;
class nsILoadGroup;
#define NS_IPROTOCOLURLFACTORY_IID \
{ /* aed57ad0-705e-11d2-8166-006008119d7a */ \
@ -51,7 +51,7 @@ public:
const nsString& aSpec,
const nsIURI* aContextURL = nsnull,
nsISupports* aContainer = nsnull,
nsIURLGroup* aGroup = nsnull) = 0;
nsILoadGroup* aGroup = nsnull) = 0;
};
#endif /* nsIIProtocolURLFactory_h___ */

Просмотреть файл

@ -29,15 +29,15 @@ class nsIStreamListener;
class nsILoadAttribs;
/* {a4071430-5263-11d2-929b-00105a1b0d64} */
#define NS_IURLGROUP_IID \
#define NS_ILOADGROUP_IID \
{ 0xa4071430, 0x5263, 0x11d2, \
{0x92, 0x9b, 0x00, 0x10, 0x5a, 0x1b, 0x0d, 0x64} }
class nsIURLGroup : public nsISupports
class nsILoadGroup : public nsISupports
{
public:
static const nsIID& GetIID() { static nsIID iid = NS_IURLGROUP_IID; return iid; }
static const nsIID& GetIID() { static nsIID iid = NS_ILOADGROUP_IID; return iid; }
/**
* Create a new URL, setting its LoadAttributes to the default
@ -71,7 +71,7 @@ public:
nsIStreamListener *aConsumer) = 0;
/**
* Get the nsILoadAttributes for this nsIURLGroup and its children...
* Get the nsILoadAttributes for this nsILoadGroup and its children...
*
* @param aLoadAttribs Result parameter containing the nsILoadAttributes
* instance.
@ -81,34 +81,34 @@ public:
NS_IMETHOD GetDefaultLoadAttributes(nsILoadAttribs*& aLoadAttribs) = 0;
/**
* Set the nsILoadAttributes for this nsIURLGroup and its children...
* Set the nsILoadAttributes for this nsILoadGroup and its children...
*
* @param aLoadAttribs nsILoadAttributes instance to be used by this
* nsIURLGroup and its children.
* nsILoadGroup and its children.
*
* @return Returns NS_OK if successful, otherwise NS_ERROR_FAILURE.
*/
NS_IMETHOD SetDefaultLoadAttributes(nsILoadAttribs* aLoadAttribs) = 0;
/**
* Add a child to an nsIURLGroup.
* Add a child to an nsILoadGroup.
*
* @param aGroup The nsIURLGroup to be added as a child. When the
* @param aGroup The nsILoadGroup to be added as a child. When the
* child is added it will receive the nsILoadAttribs
* of its parent...
*
* @return Returns NS_OK if successful, otherwise NS_ERROR_FAILURE.
*/
NS_IMETHOD AddChildGroup(nsIURLGroup* aGroup) = 0;
NS_IMETHOD AddChildGroup(nsILoadGroup* aGroup) = 0;
/**
* Remove a child from an nsIURLGroup.
* Remove a child from an nsILoadGroup.
*
* @param aGroup The nsIURLGroup to be removed.
* @param aGroup The nsILoadGroup to be removed.
*
* @return Returns NS_OK if successful, otherwise NS_ERROR_FAILURE.
*/
NS_IMETHOD RemoveChildGroup(nsIURLGroup* aGroup) = 0;
NS_IMETHOD RemoveChildGroup(nsILoadGroup* aGroup) = 0;
};
#endif /* nsIURLGroup_h__ */

Просмотреть файл

@ -1044,7 +1044,7 @@ nsNetlibService::CreateURL(nsIURI* *aURL,
const nsString& aSpec,
const nsIURI* aContextURL,
nsISupports* aContainer,
nsIURLGroup* aGroup)
nsILoadGroup* aGroup)
{
nsAutoString protoName;
PRInt32 pos = aSpec.Find(':');
@ -1117,7 +1117,7 @@ NS_NET nsresult NS_NewURL(nsIURI** aInstancePtrResult,
const nsString& aSpec,
const nsIURI* aURL,
nsISupports* aContainer,
nsIURLGroup* aGroup)
nsILoadGroup* aGroup)
{
NS_PRECONDITION(nsnull != aInstancePtrResult, "null ptr");
if (nsnull == aInstancePtrResult) {
@ -1172,9 +1172,9 @@ NS_NET nsresult NS_MakeAbsoluteURL(nsIURI* aURL,
NS_NET nsresult NS_OpenURL(nsIURI* aURL, nsIStreamListener* aConsumer)
{
nsresult rv;
nsIURLGroup* group = nsnull;
nsILoadGroup* group = nsnull;
rv = aURL->GetURLGroup(&group);
rv = aURL->GetLoadGroup(&group);
if (NS_SUCCEEDED(rv)) {
if (nsnull != group) {
rv = group->OpenStream(aURL, aConsumer);

Просмотреть файл

@ -82,7 +82,7 @@ public:
const nsString& aSpec,
const nsIURI* aContextURL = nsnull,
nsISupports* aContainer = nsnull,
nsIURLGroup* aGroup = nsnull);
nsILoadGroup* aGroup = nsnull);
NS_IMETHOD AreThereActiveConnections(void);
NS_IMETHOD CreateSocketTransport(nsITransport **aTransport, PRUint32 aPortToUse, const char * aHostName);

Просмотреть файл

@ -26,7 +26,7 @@
class nsIInputStream;
class nsIStreamListener;
class nsString;
class nsIURLGroup;
class nsILoadGroup;
#define NS_IURL_IID \
{ 0x6ecb2900, 0x93b5, 0x11d1, \
@ -82,8 +82,8 @@ public:
NS_IMETHOD GetLoadAttribs(nsILoadAttribs* *result) const = 0;
NS_IMETHOD SetLoadAttribs(nsILoadAttribs* loadAttribs) = 0;
NS_IMETHOD GetURLGroup(nsIURLGroup* *result) const = 0;
NS_IMETHOD SetURLGroup(nsIURLGroup* group) = 0;
NS_IMETHOD GetLoadGroup(nsILoadGroup* *result) const = 0;
NS_IMETHOD SetLoadGroup(nsILoadGroup* group) = 0;
//@}
NS_IMETHOD SetPostHeader(const char* name, const char* value) = 0;
@ -105,7 +105,7 @@ extern NS_NET nsresult NS_NewURL(nsIURI** aInstancePtrResult,
const nsString& aSpec,
const nsIURI* aBaseURL = nsnull,
nsISupports* aContainer = nsnull,
nsIURLGroup* aGroup = nsnull);
nsILoadGroup* aGroup = nsnull);
/**
* Utility routine to take a url (may be nsnull) and a base url (may

Просмотреть файл

@ -432,7 +432,7 @@ public:
virtual nsIURI* GetDocumentURL() const;
virtual nsIURLGroup* GetDocumentURLGroup() const;
virtual nsIURLGroup* GetDocumentLoadGroup() const;
NS_IMETHOD GetBaseURL(nsIURI*& aURL) const;
@ -1359,7 +1359,7 @@ XULDocumentImpl::GetDocumentURL() const
}
nsIURLGroup*
XULDocumentImpl::GetDocumentURLGroup() const
XULDocumentImpl::GetDocumentLoadGroup() const
{
nsIURLGroup* result = mDocumentURLGroup;
NS_IF_ADDREF(result);