B2G/gecko/toolkit/components/places/tests/unit/test_async_history_api.js
/**
 * Listens for a visit notification, and calls aCallback when it gets it.
 *
 * @param aURI
 *        The URI of the page we expect a notification for.
 * @param aCallback
 *        The method to call when we have gotten the proper notification about
 *        being visited.
 */
Listens for a visit notification, and calls aCallback when it gets it.
@param aURI
The URI of the page we expect a notification for.
@param aCallback
The method to call when we have gotten the proper notification about
being visited.
Listens for a visit notification and calls aCallback when it gets it . @param aURI The URI of the page we expect a notification for . @param aCallback The method to call when we have gotten the proper notification about being visited .
function VisitObserver(aURI,
                       aGUID,
                       aCallback)
{
  this.uri = aURI;
  this.guid = aGUID;
  this.callback = aCallback;
}
function VisitObserver ( aURI , aGUID , aCallback ) { this . uri = aURI ; this . guid = aGUID ; this . callback = aCallback ; }
Listens for a visit notification, and calls aCallback when it gets it.
Listens for a visit notification and calls aCallback when it gets it .