Implemented by
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.
[scriptable, uuid(d9277fa4-7d51-4175-bd4e-546c080a83bf)]
interface nsIUrlClassifierStreamUpdater : nsISupports
Attributes
The Url to download from. Should be plain ascii text.
attribute
ACString
updateUrl
Methods
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.
@param aTableCallback Called once for each table that we successfully
download with the table header as the parameter.
@param aErrorCallback Called if we get an http error or a connection
refused.
boolean
downloadUpdates(in nsIUrlClassifierCallback aTableCallback, in nsIUrlClassifierCallback aErrorCallback)
Compare to: