nsIDocumentLoader 编辑

uriloader/base/nsIDocumentLoader.idlScriptable 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

AttributeTypeDescription
containernsISupportsRead only.
documentChannelnsIChannelRead only.
loadGroupnsILoadGroupRead 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
 
Native code only!

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:81 次

字数:7242

最后编辑:8年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文