WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIUrlClassifierStreamUpdater

IID:adf0dfaa-ce91-4cf2-ab15-f5810408e2ec
Inherits From:nsISupports

This is a class to manage large table updates from the server. Rather than downloading the whole update and then updating the sqlite database, we update tables as the data is streaming in.

This interface is implemented by the following components:


Properties

ACString updateUrl

The Url to download from. Should be plain ascii text.


Methods

PRBool downloadUpdates ( ACString requestBody , nsIUrlClassifierCallback successCallback , nsIUrlClassifierCallback updateErrorCallback , nsIUrlClassifierCallback downloadErrorCallback )

PRBool downloadUpdates ( ACString requestBody , nsIUrlClassifierCallback successCallback , nsIUrlClassifierCallback updateErrorCallback , nsIUrlClassifierCallback downloadErrorCallback )

Try to download updates from updateUrl. Only one instance of this runs at a time, so we return false if another instance is already running.

Arguments:
requestBody: The body for the request.
successCallback: Called after a successful update.
updateErrorCallback: Called for problems applying the update
downloadErrorCallback: Called if we get an http error or a connection refused error.

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com