Bug 319910 r=bryner Add bookmark function for redirect-aware bookmark status checking

Original committer: brettw%gmail.com
Original revision: 1.21
Original date: 2006/02/28 17:53:14
This commit is contained in:
benjamin%smedbergs.us 2006-07-18 17:31:55 +00:00
parent 98237bbabe
commit a317792dd3

View File

@ -342,10 +342,23 @@ interface nsINavBookmarksService : nsISupports
boolean getFolderReadonly(in PRInt64 folder);
/**
* Returns true if the given URI is in any bookmark folder.
* Returns true if the given URI is in any bookmark folder. If you want the
* results to be redirect-aware, use getBookmarkedURIFor()
*/
boolean isBookmarked(in nsIURI uri);
/**
* Used to see if the given URI is bookmarked, or any page that redirected to
* it is bookmarked. For example, if I bookmark "mozilla.org" by manually
* typing it in, and follow the bookmark, I will get redirected to
* "www.mozilla.org". Logically, this new page is also bookmarked. This
* function, if given "www.mozilla.org", will return the URI of the bookmark,
* in this case "mozilla.org".
*
* If there is no bookmarked page found, it will return NULL.
*/
nsIURI getBookmarkedURIFor(in nsIURI uri);
/**
* Returns the list of folder ids that contain the given URI.
*/