nsICharsetResolver

IID:d143a084-b626-4614-845f-41f3ca43a674
Inherits From:nsISupports

Methods

void notifyResolvedCharset ( ACString charset , nsISupports closure ) ACString requestCharset ( nsIWebNavigation webNavigation , nsIChannel channel , out PRBool wantCharset , out nsISupports closure )

void notifyResolvedCharset ( ACString charset , nsISupports closure )

Some implementations may request that they be notified when the charset is actually detected.

Arguments:
charset: the detected charset
closure: the closre returned by detectCharset() above

ACString requestCharset ( nsIWebNavigation webNavigation , nsIChannel channel , out PRBool wantCharset , out nsISupports closure )

Called to resolve the charset that should be used for parsing the document being loaded from channel.

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 wantCharset to true. If this is done, the caller of requestCharset is responsible for calling notifyResovedCharset and passing it the final resolved charset and the closure that requestCharset set.

Arguments:
webNavigation: the nsIWebNavigation the document is being loaded in. May be null.
channel: the channel the document is coming in from.
wantCharset: gets set to true if notifyResolvedCharset should be called with the given closure object.
closure: a resulting object which should be passed to notifyResolvedCharset if wantCharset is set to true.

Reference documentation is generated from Mozilla's source.