bug 325504 Document the category for content listeners, and the nsISupportsWeakReference requirement for listeners added dynamically. r+sr+a=bz

This commit is contained in:
cbiesinger%web.de 2006-02-02 18:37:11 +00:00
Родитель 67001cd828
Коммит a2dcaf9b81
2 изменённых файлов: 18 добавлений и 1 удалений

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

@ -62,6 +62,21 @@ nsIURILoader
#define NS_CONTENT_HANDLER_CONTRACTID "@mozilla.org/uriloader/content-handler;1"
#define NS_CONTENT_HANDLER_CONTRACTID_PREFIX NS_CONTENT_HANDLER_CONTRACTID "?type="
/**
* A category where content listeners can register. The name of the entry must
* be the content that this listener wants to handle, the value must be a
* contract ID for the listener. It will be created using createInstance (not
* getService).
*
* Listeners added this way are tried after the initial target of the load and
* after explicitly registered listeners (nsIURILoader::registerContentListener).
*
* These listeners must implement at least nsIURIContentListener (and
* nsISupports).
*
* @see nsICategoryManager
* @see nsIURIContentListener
*/
#define NS_CONTENT_LISTENER_CATEGORYMANAGER_ENTRY "external-uricontentlisteners"
%}

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

@ -95,7 +95,9 @@ interface nsIURILoader : nsISupports
* Note to self: we may want to optimize things a bit more by requiring
* the content types the registered content listener cares about.
*
* @param aContentListener the listener to register
* @param aContentListener
* The listener to register. This listener must implement
* nsISupportsWeakReference.
*
* @see the nsIURILoader class description
*/