Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsIUrlClassifierStreamUpdater Interface Reference

This is a class to manage large table updates from the server. More...

import "nsIUrlClassifierStreamUpdater.idl";

Inheritance diagram for nsIUrlClassifierStreamUpdater:
Inheritance graph
Collaboration diagram for nsIUrlClassifierStreamUpdater:
Collaboration graph

List of all members.

Public Member Functions

boolean downloadUpdates (in nsIUrlClassifierCallback aTableCallback, in nsIUrlClassifierCallback aErrorCallback)
 Try to download updates from updateUrl.

Public Attributes

attribute ACString updateUrl
 The Url to download from.

Detailed Description

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.

Definition at line 48 of file nsIUrlClassifierStreamUpdater.idl.

Member Function Documentation

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.

aTableCallbackCalled once for each table that we successfully download with the table header as the parameter.
aErrorCallbackCalled if we get an http error or a connection refused.

Member Data Documentation

The Url to download from.

Should be plain ascii text.

Definition at line 53 of file nsIUrlClassifierStreamUpdater.idl.

The documentation for this interface was generated from the following file: