From 7be6ee6c2f57ecad945544f4fd125ae471db1123 Mon Sep 17 00:00:00 2001 From: "tbogard%aol.net" Date: Sat, 6 Nov 1999 04:48:21 +0000 Subject: [PATCH] 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 --- mozilla/docshell/base/nsIDocShell.idl | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/mozilla/docshell/base/nsIDocShell.idl b/mozilla/docshell/base/nsIDocShell.idl index e6e4d242b2e..11569972022 100644 --- a/mozilla/docshell/base/nsIDocShell.idl +++ b/mozilla/docshell/base/nsIDocShell.idl @@ -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. */