From bb4a08477ef3d16a6ffae2f7c0b73168bd77bebf Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Fri, 5 Nov 1999 22:54:53 +0000 Subject: [PATCH] (not part of build) 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. --- uriloader/base/nsIURIContentListener.idl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/uriloader/base/nsIURIContentListener.idl b/uriloader/base/nsIURIContentListener.idl index 53ca60c08fc0..f723474b1118 100644 --- a/uriloader/base/nsIURIContentListener.idl +++ b/uriloader/base/nsIURIContentListener.idl @@ -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); };