content/xml/document/public/nsIXMLContentSink.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5 #ifndef nsIXMLContentSink_h___
michael@0 6 #define nsIXMLContentSink_h___
michael@0 7
michael@0 8 #include "nsIContentSink.h"
michael@0 9 #include "nsISupports.h"
michael@0 10
michael@0 11 class nsIDocument;
michael@0 12 class nsIURI;
michael@0 13 class nsIChannel;
michael@0 14
michael@0 15 #define NS_IXMLCONTENT_SINK_IID \
michael@0 16 { 0x63fedea0, 0x9b0f, 0x4d64, \
michael@0 17 { 0x9b, 0xa5, 0x37, 0xc6, 0x99, 0x73, 0x29, 0x35 } }
michael@0 18
michael@0 19 /**
michael@0 20 * This interface represents a content sink for generic XML files.
michael@0 21 * The goal of this sink is to deal with XML documents that do not
michael@0 22 * have pre-built semantics, though it may also be implemented for
michael@0 23 * cases in which semantics are hard-wired.
michael@0 24 *
michael@0 25 * The expectation is that the parser has already performed
michael@0 26 * well-formedness and validity checking.
michael@0 27 *
michael@0 28 * XXX The expectation is that entity expansion will be done by the sink
michael@0 29 * itself. This would require, however, that the sink has the ability
michael@0 30 * to query the parser for entity replacement text.
michael@0 31 *
michael@0 32 * XXX This interface does not contain a mechanism for the sink to
michael@0 33 * get specific schema/DTD information from the parser. This information
michael@0 34 * may be necessary for entity expansion. It is also necessary for
michael@0 35 * building the DOM portions that relate to the schema.
michael@0 36 *
michael@0 37 * XXX This interface does not deal with the presence of an external
michael@0 38 * subset. It seems possible that this could be dealt with completely
michael@0 39 * at the parser level.
michael@0 40 */
michael@0 41
michael@0 42 class nsIXMLContentSink : public nsIContentSink {
michael@0 43 public:
michael@0 44
michael@0 45 NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXMLCONTENT_SINK_IID)
michael@0 46
michael@0 47 };
michael@0 48
michael@0 49 NS_DEFINE_STATIC_IID_ACCESSOR(nsIXMLContentSink, NS_IXMLCONTENT_SINK_IID)
michael@0 50
michael@0 51 nsresult
michael@0 52 NS_NewXMLContentSink(nsIXMLContentSink** aInstancePtrResult, nsIDocument* aDoc,
michael@0 53 nsIURI* aURL, nsISupports* aContainer,
michael@0 54 nsIChannel *aChannel);
michael@0 55
michael@0 56 #endif // nsIXMLContentSink_h___

mercurial