Back to index

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

Go to the source code of this file.

Classes

class  nsILoadSaveContentSink
 This interface represents a content sink used by the DOMBuilder in DOM3 Load/Save. More...

Defines

#define NS_ILOADSAVE_CONTENT_SINK_IID

Functions

nsresult NS_NewLoadSaveContentSink (nsILoadSaveContentSink **aResult, nsIXMLContentSink *aBaseSink)
 The nsIXMLContentSink passed to this method must also implement nsIExpatSink.

Define Documentation

Value:
{ 0xa39ed66a, 0x6ef5, 0x49da, \
  { 0xb6, 0xe4, 0x9e, 0x15, 0x85, 0xf0, 0xba, 0xc9 } }

Definition at line 44 of file nsILoadSaveContentSink.h.


Function Documentation

The nsIXMLContentSink passed to this method must also implement nsIExpatSink.

Definition at line 43 of file nsLoadSaveContentSink.cpp.

{
  NS_PRECONDITION(aResult, "Null out ptr?  Who do you think you are, flouting XPCOM contract?");
  NS_ENSURE_ARG_POINTER(aBaseSink);
  nsLoadSaveContentSink* it;
  NS_NEWXPCOM(it, nsLoadSaveContentSink);
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  
  nsresult rv = it->Init(aBaseSink);
  if (NS_FAILED(rv)) {
    delete it;
    return rv;
  }

  return CallQueryInterface(it, aResult);  
}

Here is the call graph for this function: