зеркало из https://github.com/mozilla/pjs.git
add onEndMsgDownload notification, part of extensibility hooks r=cavin, sr=sspitzer 161226
This commit is contained in:
Родитель
6b7092e37e
Коммит
372092c2be
|
@ -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;
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче