Adds a nsCOMArray version of a function in the annotation service, and

changes some code in nsLivemarkService::Init to use it, which gets rid
of a handful of nsSimpleURI reference leaks when using the LivemarkService.

bug=333784
r=brettw@google.com
sr=bryner@brianryner.com

Original committer: joe%retrovirus.com
Original revision: 1.10
Original date: 2006/04/13 03:05:49
This commit is contained in:
benjamin%smedbergs.us 2006-07-18 17:20:04 +00:00
Родитель 5e8602455a
Коммит 20529c6743
1 изменённых файлов: 10 добавлений и 1 удалений

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

@ -40,6 +40,7 @@
%{C++
#include "nsTArray.h"
#include "nsCOMArray.h"
#include "nsString.h"
%}
@ -47,8 +48,9 @@ interface nsIURI;
interface nsIVariant;
[ptr] native CStringArray(nsTArray<nsCString>);
[ptr] native URIArray(nsCOMArray<nsIURI>);
[scriptable, uuid(4ff680af-643e-4144-809f-dc53f71d7def)]
[scriptable, uuid(d41c9510-2377-4728-b275-bdad6a0521f8)]
interface nsIAnnotationObserver : nsISupports
{
/**
@ -230,6 +232,13 @@ interface nsIAnnotationService : nsISupports
out PRUint32 resultCount,
[retval, array, size_is(resultCount)] out nsIURI results);
/**
* COMArray version of getPagesWithAnnotation for easier memory
* management from C++ code;
*/
[noscript] void GetPagesWithAnnotationCOMArray(in AUTF8String aName,
in URIArray aResults);
/**
* Get the names of all annotations for this URI.
*