Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsIXMLContentSink.h File Reference
#include "nsIContentSink.h"
#include "nsIParserNode.h"
#include "nsISupports.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsIXMLContentSink
 This interface represents a content sink for generic XML files. More...

Defines

#define NS_IXMLCONTENT_SINK_IID

Functions

nsresult NS_NewXMLContentSink (nsIXMLContentSink **aInstancePtrResult, nsIDocument *aDoc, nsIURI *aURL, nsISupports *aContainer, nsIChannel *aChannel)

Define Documentation

Value:
{ 0x63fedea0, 0x9b0f, 0x4d64, \
 { 0x9b, 0xa5, 0x37, 0xc6, 0x99, 0x73, 0x29, 0x35 } }

Definition at line 48 of file nsIXMLContentSink.h.


Function Documentation

nsresult NS_NewXMLContentSink ( nsIXMLContentSink **  aInstancePtrResult,
nsIDocument aDoc,
nsIURI aURL,
nsISupports *  aContainer,
nsIChannel aChannel 
)

Definition at line 122 of file nsXMLContentSink.cpp.

{
  NS_PRECONDITION(nsnull != aResult, "null ptr");
  if (nsnull == aResult) {
    return NS_ERROR_NULL_POINTER;
  }
  nsXMLContentSink* it;
  NS_NEWXPCOM(it, nsXMLContentSink);
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  
  nsCOMPtr<nsIXMLContentSink> kungFuDeathGrip = it;
  nsresult rv = it->Init(aDoc, aURI, aContainer, aChannel);
  NS_ENSURE_SUCCESS(rv, rv);
  
  return CallQueryInterface(it, aResult);
}

Here is the call graph for this function:

Here is the caller graph for this function: