nsISupports
Last changed in Gecko 24.0 (Firefox 24.0 / Thunderbird 24.0 / SeaMonkey 2.21)Implemented by: @mozilla.org/browser/history;1 as a service:
var asyncHistory = Components.classes["@mozilla.org/browser/history;1"]
.getService(Components.interfaces.mozIAsyncHistory);
void getPlacesInfo(in jsval aPlaceIdentifiers, in mozIVisitInfoCallback aCallback); |
void isURIVisited(in nsIURI aURI, in mozIVisitedStatusCallback aCallback); |
void updatePlaces(in |
Starts an asynchronous request to determine whether or not a given URI has been visited; you must implement a callback to receive the result of the request.
void getPlacesInfo( in jsval aPlaceIdentifiers, in mozIVisitInfoCallback aCallback );
aPlaceIdentifiersaCallbackmozIVisitedStatusCallback.isVisited() method. If there's no information available for a given place, aCallback is called with a stub place info object, containing just the provided data (GUID or URI).Starts an asynchronous request to determine whether or not a given URI has been visited; you must implement a callback to receive the result of the request.
void isURIVisited( in nsIURI aURI, in mozIVisitedStatusCallback aCallback );
aURIaCallbackmozIVisitedStatusCallback.isVisited() method; this method will be called with the results once the request has been completed.Adds a set of visits for one or more mozIPlaceInfo objects, and updates each mozIPlaceInfo's title or GUID. Note that this lets you add to history even in Private Browsing mode; if that's not desired you can first check whether the window is in Private Browsing mode.
void updatePlaces(
in mozIPlaceInfo aPlaceInfo,
in mozIVisitInfoCallback aCallback Optional
);
aPlaceInfomozIPlaceInfo object[s] containing the information to store or update. This can be a single object, or an array of objects.aCallback OptionalmozIVisitInfoCallback object to be notified for each visit addition, title change, GUID change, or error. If more than one operation is performed for a given visit, only one callback will be given (i.e. title change and add visit).NS_ERROR_INVALID_ARGNULL for aPlaceInfo.mozIPlaceInfo object[s].mozIPlaceInfo.visitDate and transitionType for each mozIVisitInfo.transitionType (see nsINavBookmarksService.Constants) for a mozIVisitInfo.