mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 02:14:43 +00:00
Bug 1749935 - Remove nsIParser::GetChannel. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D135839
This commit is contained in:
parent
481d54202e
commit
63a0a73d2c
@ -104,8 +104,7 @@ void nsHtml5Parser::SetDocumentCharset(NotNull<const Encoding*> aEncoding,
|
|||||||
(nsCharsetSource)aCharsetSource);
|
(nsCharsetSource)aCharsetSource);
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
nsresult nsHtml5Parser::GetChannel(nsIChannel** aChannel) {
|
||||||
nsHtml5Parser::GetChannel(nsIChannel** aChannel) {
|
|
||||||
if (GetStreamParser()) {
|
if (GetStreamParser()) {
|
||||||
return GetStreamParser()->GetChannel(aChannel);
|
return GetStreamParser()->GetChannel(aChannel);
|
||||||
} else {
|
} else {
|
||||||
|
@ -75,7 +75,7 @@ class nsHtml5Parser final : public nsIParser, public nsSupportsWeakReference {
|
|||||||
* @param aChannel out param that will contain the result
|
* @param aChannel out param that will contain the result
|
||||||
* @return NS_OK if successful or NS_NOT_AVAILABLE if not
|
* @return NS_OK if successful or NS_NOT_AVAILABLE if not
|
||||||
*/
|
*/
|
||||||
NS_IMETHOD GetChannel(nsIChannel** aChannel) override;
|
nsresult GetChannel(nsIChannel** aChannel);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return |this| for backwards compat.
|
* Return |this| for backwards compat.
|
||||||
|
@ -109,14 +109,6 @@ class nsIParser : public nsParserBase {
|
|||||||
int32_t aSource,
|
int32_t aSource,
|
||||||
bool aForceAutoDetection = false) = 0;
|
bool aForceAutoDetection = false) = 0;
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the channel associated with this parser
|
|
||||||
* @update harishd,gagan 07/17/01
|
|
||||||
* @param aChannel out param that will contain the result
|
|
||||||
* @return NS_OK if successful
|
|
||||||
*/
|
|
||||||
NS_IMETHOD GetChannel(nsIChannel** aChannel) override = 0;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the DTD associated with this parser
|
* Get the DTD associated with this parser
|
||||||
* @update vidur 9/29/99
|
* @update vidur 9/29/99
|
||||||
|
@ -1419,21 +1419,6 @@ nsresult nsParser::Tokenize(bool aIsFinalChunk) {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the channel associated with this parser
|
|
||||||
*
|
|
||||||
* @param aChannel out param that will contain the result
|
|
||||||
* @return NS_OK if successful
|
|
||||||
*/
|
|
||||||
NS_IMETHODIMP
|
|
||||||
nsParser::GetChannel(nsIChannel** aChannel) {
|
|
||||||
nsresult result = NS_ERROR_NOT_AVAILABLE;
|
|
||||||
if (mParserContext && mParserContext->mRequest) {
|
|
||||||
result = CallQueryInterface(mParserContext->mRequest, aChannel);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the DTD associated with this parser
|
* Get the DTD associated with this parser
|
||||||
*/
|
*/
|
||||||
|
@ -212,14 +212,6 @@ class nsParser final : public nsIParser,
|
|||||||
CParserContext* PopContext();
|
CParserContext* PopContext();
|
||||||
CParserContext* PeekContext() { return mParserContext; }
|
CParserContext* PeekContext() { return mParserContext; }
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the channel associated with this parser
|
|
||||||
* @update harishd,gagan 07/17/01
|
|
||||||
* @param aChannel out param that will contain the result
|
|
||||||
* @return NS_OK if successful
|
|
||||||
*/
|
|
||||||
NS_IMETHOD GetChannel(nsIChannel** aChannel) override;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the DTD associated with this parser
|
* Get the DTD associated with this parser
|
||||||
* @update vidur 9/29/99
|
* @update vidur 9/29/99
|
||||||
|
@ -10,10 +10,6 @@
|
|||||||
class nsParserBase : public nsISupports {
|
class nsParserBase : public nsISupports {
|
||||||
public:
|
public:
|
||||||
NS_IMETHOD_(bool) IsParserEnabled() { return true; }
|
NS_IMETHOD_(bool) IsParserEnabled() { return true; }
|
||||||
NS_IMETHOD GetChannel(nsIChannel** aChannel) {
|
|
||||||
*aChannel = nullptr;
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // nsParserBase_h_
|
#endif // nsParserBase_h_
|
||||||
|
@ -58,10 +58,6 @@ class PrototypeDocumentParser final : public nsIParser,
|
|||||||
int32_t aSource,
|
int32_t aSource,
|
||||||
bool aForceAutoDetection) override {}
|
bool aForceAutoDetection) override {}
|
||||||
|
|
||||||
NS_IMETHOD GetChannel(nsIChannel** aChannel) override {
|
|
||||||
return NS_ERROR_NOT_IMPLEMENTED;
|
|
||||||
}
|
|
||||||
|
|
||||||
NS_IMETHOD GetDTD(nsIDTD** aDTD) override { return NS_ERROR_NOT_IMPLEMENTED; }
|
NS_IMETHOD GetDTD(nsIDTD** aDTD) override { return NS_ERROR_NOT_IMPLEMENTED; }
|
||||||
|
|
||||||
virtual nsIStreamListener* GetStreamListener() override;
|
virtual nsIStreamListener* GetStreamListener() override;
|
||||||
|
Loading…
Reference in New Issue
Block a user