rdf/base/idl/nsIRDFDelegateFactory.idl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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 /*
     8   An interface used for runtime pseudo-aggregation of RDF delegate
     9   objects.
    11 */
    13 #include "nsrootidl.idl"
    14 #include "nsISupports.idl"
    15 interface nsIRDFResource;
    17 /**
    18  * This interface should be implemented by an XPCOM factory that
    19  * is registered to handle "@mozilla.org/rdf/delegate-factory/[key]/[scheme];1"
    20  * ContractIDs.
    21  *
    22  * The factory will be invoked to create delegate objects from
    23  * nsIRDFResource::GetDelegate().
    24  */
    25 [scriptable, uuid(A1B89470-A124-11d3-BE59-0020A6361667)]
    26 interface nsIRDFDelegateFactory : nsISupports
    27 {
    28     /**
    29      * Create a delegate for the specified RDF resource.
    30      *
    31      * The created delegate should forward AddRef() and Release()
    32      * calls to the aOuter object.
    33      */
    34     void CreateDelegate(in nsIRDFResource aOuter,
    35                         in string aKey,
    36                         in nsIIDRef aIID,
    37                         [retval, iid_is(aIID)] out nsQIResult aResult);
    38 };

mercurial