toolkit/components/url-classifier/nsIUrlClassifierTable.idl

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #include "nsISupports.idl"
     7 #include "nsIUrlListManager.idl"
     9 // A map that contains a string keys mapped to string values.
    11 [scriptable, uuid(fd1f8334-1859-472d-b01f-4ac6b1121ce4)]
    12 interface nsIUrlClassifierTable : nsISupports
    13 {
    14     /**
    15      * The name used to identify this table
    16      */
    17     attribute ACString name;
    19     /**
    20      * Set to false if we don't want to update this table.
    21      */
    22     attribute boolean needsUpdate;
    24     /**
    25      * In the simple case, exists just looks up the string in the
    26      * table and call the callback after the query returns with true or
    27      * false.  It's possible that something more complex happens
    28      * (e.g., canonicalize the url).
    29      */
    30     void exists(in ACString key, in nsIUrlListManagerCallback cb);
    31 };

mercurial