Added parentURIContentListener. Also added comments on the nsIDocShell parent attribute to discuss the cycle situation that could occur. Added notifications about the rules that must be used when using/ implementing this member.
git-svn-id: svn://10.0.0.236/trunk@52919 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include "nsISupports.idl"
|
||||
#include "domstubs.idl"
|
||||
#include "nsIPref.idl"
|
||||
#include "nsIURIContentListener.idl"
|
||||
|
||||
%{ C++
|
||||
#include "nsIPresContext.h"
|
||||
@@ -102,10 +103,22 @@ interface nsIDocShell : nsISupports
|
||||
readonly attribute nsIPresContext presContext;
|
||||
|
||||
/*
|
||||
Parent DocShell
|
||||
Parent DocShell.. Note Implementers of this interface should NOT effect
|
||||
the lifetime of the parent DocShell by holding this reference as it creates
|
||||
a cycle. Parents when releasing this interface should set the parent to
|
||||
nsnull. Implementers of this interface are guaranteed that when parent is
|
||||
set that the pointer is valid without having to addref.
|
||||
|
||||
Further note however when others try to Get the interface you should add
|
||||
ref it before handing it to them.
|
||||
*/
|
||||
attribute nsIDocShell parent;
|
||||
|
||||
/*
|
||||
URI content listener parent
|
||||
*/
|
||||
attribute nsIURIContentListener parentURIContentListener;
|
||||
|
||||
/*
|
||||
Returns true if the given docshell can handle the requested content type.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user