nsIDocumentLoader 编辑
uriloader/base/nsIDocumentLoader.idl
Scriptable This interface responsible for tracking groups of loads that belong together (images, external scripts, and so on.) and subdocuments (iframe, frame, and so on.). It is also responsible for sending nsIWebProgressListener notifications. Inherits from: nsISupports
Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0)Implemented by: @mozilla.org/docloaderservice;1
. To create an instance, use:
var documentLoader = Components.classes["@mozilla.org/docloaderservice;1"] .createInstance(Components.interfaces.nsIDocumentLoader);
Method overview
void clearParentDocLoader(); Obsolete since Gecko 1.8 |
void createDocumentLoader(out nsIDocumentLoader anInstance); Obsolete since Gecko 1.8 |
void destroy(); Obsolete since Gecko 1.8 |
void fireOnLocationChange(in nsIWebProgress aWebProgress, in nsIRequest aRequest, in nsIURI aUri); Obsolete since Gecko 1.8 |
void fireOnStatusChange(in nsIWebProgress aWebProgress, in nsIRequest aRequest, in nsresult aStatus, in wstring aMessage); Obsolete since Gecko 1.8 |
void getContentViewerContainer(in nsISupports aDocumentID, out nsIContentViewerContainer aResult); Native code only! Obsolete since Gecko 1.8 |
nsILoadGroup getLoadGroup(); Obsolete since Gecko 1.8 |
boolean isBusy(); Obsolete since Gecko 1.8 |
void stop(); |
Attributes
Attribute | Type | Description |
container |
| Read only. |
documentChannel |
| Read only. |
loadGroup |
| Read only. |
Methods
clearParentDocLoader()
Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0)void clearParentDocLoader();
Parameters
None.
createDocumentLoader()
Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0)void createDocumentLoader( out nsIDocumentLoader anInstance );
Parameters
anInstance
destroy()
Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0)void destroy();
Parameters
None.
fireOnLocationChange()
Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0)void fireOnLocationChange( in nsIWebProgress aWebProgress, in nsIRequest aRequest, in nsIURI aUri );
Parameters
aWebProgress
aRequest
aUri
fireOnStatusChange()
Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0)void fireOnStatusChange( in nsIWebProgress aWebProgress, in nsIRequest aRequest, in nsresult aStatus, in wstring aMessage );
Parameters
aWebProgress
aRequest
aStatus
aMessage
getContentViewerContainer
Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0)
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
void getContentViewerContainer( in nsISupports aDocumentID, out nsIContentViewerContainer aResult );
Parameters
aDocumentID
aResult
getLoadGroup()
Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0)nsILoadGroup getLoadGroup();
Parameters
None.
Return value
isBusy()
Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0)boolean isBusy();
Parameters
None.
Return value
stop()
void stop();
Parameters
None.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论