1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/components/url-classifier/nsIUrlClassifierTable.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,31 @@ 1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "nsISupports.idl" 1.10 +#include "nsIUrlListManager.idl" 1.11 + 1.12 +// A map that contains a string keys mapped to string values. 1.13 + 1.14 +[scriptable, uuid(fd1f8334-1859-472d-b01f-4ac6b1121ce4)] 1.15 +interface nsIUrlClassifierTable : nsISupports 1.16 +{ 1.17 + /** 1.18 + * The name used to identify this table 1.19 + */ 1.20 + attribute ACString name; 1.21 + 1.22 + /** 1.23 + * Set to false if we don't want to update this table. 1.24 + */ 1.25 + attribute boolean needsUpdate; 1.26 + 1.27 + /** 1.28 + * In the simple case, exists just looks up the string in the 1.29 + * table and call the callback after the query returns with true or 1.30 + * false. It's possible that something more complex happens 1.31 + * (e.g., canonicalize the url). 1.32 + */ 1.33 + void exists(in ACString key, in nsIUrlListManagerCallback cb); 1.34 +};