Add notion of CanHandleContent. This is supposed to be a light weight method for the implementor
such that the uri loader can ask right off the top if the listener can handle a particular content
type. If it can, then later on, the uir loader may call DoContent to actually handle it.
This commit is contained in:
mscott%netscape.com 1999-11-05 22:54:53 +00:00
Родитель 765b3659fb
Коммит bb4a08477e
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -58,4 +58,8 @@ interface nsIURIContentListener : nsISupports
in nsIChannel aOpenedChannel,
out nsIStreamListener aContentHandler,
out boolean aAbortProcess);
/* returns true if we can handle the content and false if we can't */
boolean canHandleContent(in string aContentType, in string aCommand,
in string aWindowTarget);
};