add onEndMsgDownload notification, part of extensibility hooks r=cavin, sr=sspitzer 161226

This commit is contained in:
bienvenu%netscape.com 2002-08-13 01:26:56 +00:00
Родитель 6b7092e37e
Коммит 372092c2be
2 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -422,6 +422,12 @@ nsMimeHtmlDisplayEmitter::EndBody()
{
UtilityWriteCRLF("</body>");
UtilityWriteCRLF("</html>");
nsCOMPtr<nsIMsgHeaderSink> headerSink;
nsresult rv = GetHeaderSink(getter_AddRefs(headerSink));
nsCOMPtr<nsIMsgMailNewsUrl> mailnewsUrl (do_QueryInterface(mURL, &rv));
if (headerSink)
headerSink->OnEndMsgDownload(mailnewsUrl);
return NS_OK;
}

Просмотреть файл

@ -42,6 +42,7 @@ interface nsIInputStream;
interface nsIURI;
interface nsIStreamListener;
interface nsIChannel;
interface nsIMsgMailNewsUrl;
[scriptable, uuid(4644FB25-5255-11d3-82B8-444553540002)]
interface nsIMimeMiscStatus : nsISupports{
@ -66,6 +67,7 @@ interface nsIMsgHeaderSink : nsISupports {
void handleAttachment(in string contentType, in string url, in wstring displayName, in string
uri, in boolean aNotDownloaded);
void onEndAllAttachments();
void onEndMsgDownload(in nsIMsgMailNewsUrl url);
attribute nsISupports securityInfo;
};