nsISupports
Last changed in Gecko 1.7 void notifyResolvedCharset(in ACString charset, in nsISupports closure); |
ACString requestCharset(in nsIWebNavigation aWebNavigation, in nsIChannel aChannel, out boolean aWantCharset, out nsISupports aClosure); |
Some implementations may request that they be notified when the charset is actually detected.
void notifyResolvedCharset( in ACString charset, in nsISupports closure );
charset
closure
requestCharset()
.Called to resolve the charset that should be used for parsing the document being loaded from aChannel.
If the charset cannot be resolved, but the implementation of nsICharsetResolver
wants to be notified of the final resolved charset when one is available, it can set aWantCharset
to true
. If this is done, the caller of requestCharset
is responsible for calling notifyResolvedCharset()
and passing it the final resolved charset and the closure that requestCharset
set.
ACString requestCharset( in nsIWebNavigation aWebNavigation, in nsIChannel aChannel, out boolean aWantCharset, out nsISupports aClosure );
aWebNavigation
nsIWebNavigation
the document is being loaded in. May be null
.aChannel
aWantCharset
true
if notifyResolvedCharset()
should be called with the given aClosure
object.aClosure
notifyResolvedCharset()
if aWantCharset
is set to true
.The resolved charset, or an empty string if no charset could be determined.