mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Support weak references for bookmark / history / result observers. Bug 319324, r=darin.
Original committer: bryner%brianryner.com Original revision: 1.8 Original date: 2005/12/08 22:23:49
This commit is contained in:
parent
0fbbfb1032
commit
937e04b682
@ -286,15 +286,17 @@ interface nsINavBookmarksService : nsISupports
|
||||
[array, retval, size_is(count)] out PRInt64 categories);
|
||||
|
||||
/**
|
||||
* Adds a bookmark observer. The bookmark service will keep an owning
|
||||
* reference to the observer.
|
||||
* Adds a bookmark observer. If ownsWeak is false, the bookmark service will
|
||||
* keep an owning reference to the observer. If ownsWeak is true, then
|
||||
* aObserver must implement nsISupportsWeakReference, and the bookmark
|
||||
* service will keep a weak reference to the observer.
|
||||
*/
|
||||
void addObserver(in nsINavBookmarkObserver aObserver);
|
||||
void addObserver(in nsINavBookmarkObserver observer, in boolean ownsWeak);
|
||||
|
||||
/**
|
||||
* Removes a bookmark observer.
|
||||
*/
|
||||
void removeObserver(in nsINavBookmarkObserver aObserver);
|
||||
void removeObserver(in nsINavBookmarkObserver observer);
|
||||
|
||||
/**
|
||||
* Causes observers to be notified of a beginUpdateBatch when a lot of things
|
||||
|
Loading…
Reference in New Issue
Block a user