Bug 676906 - XPIDL for async getFaviconDataForPage in mozIAsyncFavicons. r=gavin
authorBrian R. Bondy <netzen@gmail.com>
Wed, 31 Aug 2011 10:28:13 -0400
changeset 77635 93c4018253b1c4e6419cc9fcf38ba7829ecf135f
parent 77634 bf95c7aab462cac5d681fee9bac45a9196d0b8a4
child 77636 0b8b1ba3c97d626f7dbd0a73c938e4154b4f9f6e
push id78
push userclegnitto@mozilla.com
push dateFri, 16 Dec 2011 17:32:24 +0000
treeherdermozilla-release@79d24e644fdd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs676906
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 676906 - XPIDL for async getFaviconDataForPage in mozIAsyncFavicons. r=gavin
toolkit/components/places/mozIAsyncFavicons.idl
--- a/toolkit/components/places/mozIAsyncFavicons.idl
+++ b/toolkit/components/places/mozIAsyncFavicons.idl
@@ -42,17 +42,17 @@ interface nsIURI;
 interface nsIFaviconDataCallback;
 
 /**
  * Interface for accessing the favicon service asynchronously.
  *
  * @status EXPERIMENTAL
  */
 
-[scriptable, uuid(6D2B0507-245F-452D-9718-5595DCD3CD14)]
+[scriptable, uuid(0cb4e536-e120-41e6-998f-66123d81ec53)]
 interface mozIAsyncFavicons : nsISupports
 {
   /**
    * Declares that a given page uses a favicon with the given URI and 
    * attempts to fetch and save the icon data by loading the favicon URI
    * through an async network request.
    *
    * If the icon data already exists, we won't try to reload the icon unless
@@ -101,9 +101,23 @@ interface mozIAsyncFavicons : nsISupport
    *        Once we've found the favicon's URL, we invoke this callback.  Note
    *        that the callback's aDataLen will be 0, aData will be null, and
    *        aMimeType will be empty -- only aURI will be non-zero/null/empty.
    *
    * @see nsIFaviconDataCallback in nsIFaviconService.idl.
    */
   void getFaviconURLForPage(in nsIURI aPageURI,
                             in nsIFaviconDataCallback aCallback);
+
+  /**
+   * Retrieve the URL and data of the favicon for the given page.
+   *
+   * @param aPageURI
+   *        URI of the page whose favicon's URL and data we're looking up
+   * @param aCallback
+   *        Once we've found the favicon's URL, we invoke this callback with
+   *        the favicon data.
+   *
+   * @see nsIFaviconDataCallback in nsIFaviconService.idl.
+   */
+  void getFaviconDataForPage(in nsIURI aPageURI,
+                             in nsIFaviconDataCallback aCallback);
 };