Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsLoggingSink.cpp File Reference
#include "nsIAtom.h"
#include "nsLoggingSink.h"
#include "nsHTMLTags.h"
#include "nsString.h"
#include "nsReadableUtils.h"
#include "prprf.h"

Go to the source code of this file.

Functions

static NS_DEFINE_IID (kIContentSinkIID, NS_ICONTENT_SINK_IID)
static NS_DEFINE_IID (kIHTMLContentSinkIID, NS_IHTML_CONTENT_SINK_IID)
static NS_DEFINE_IID (kILoggingSinkIID, NS_ILOGGING_SINK_IID)
static NS_DEFINE_IID (kISupportsIID, NS_ISUPPORTS_IID)
nsresult NS_NewHTMLLoggingSink (nsIContentSink **aInstancePtrResult)
static void WriteTabs (PRFileDesc *out, int aTabCount)

Variables

static const char gSkippedContentTags []

Function Documentation

static NS_DEFINE_IID ( kIContentSinkIID  ,
NS_ICONTENT_SINK_IID   
) [static]
static NS_DEFINE_IID ( kIHTMLContentSinkIID  ,
NS_IHTML_CONTENT_SINK_IID   
) [static]
static NS_DEFINE_IID ( kILoggingSinkIID  ,
NS_ILOGGING_SINK_IID   
) [static]
static NS_DEFINE_IID ( kISupportsIID  ,
NS_ISUPPORTS_IID   
) [static]
nsresult NS_NewHTMLLoggingSink ( nsIContentSink **  aInstancePtrResult)

Definition at line 61 of file nsLoggingSink.cpp.

{
  NS_PRECONDITION(nsnull != aInstancePtrResult, "null ptr");
  if (nsnull == aInstancePtrResult) {
    return NS_ERROR_NULL_POINTER;
  }
  nsLoggingSink* it = new nsLoggingSink();
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  return it->QueryInterface(kIContentSinkIID, (void**) aInstancePtrResult);
}
static void WriteTabs ( PRFileDesc out,
int  aTabCount 
) [static]

Definition at line 131 of file nsLoggingSink.cpp.

                                               {
  int tabs;
  for(tabs=0;tabs<aTabCount;++tabs)
    PR_fprintf(out, "  ");
}

Here is the caller graph for this function:


Variable Documentation

const char gSkippedContentTags[] [static]
Initial value:
 {
  eHTMLTag_style,
  eHTMLTag_script,
  eHTMLTag_server,
  eHTMLTag_title,
  0
}

Definition at line 51 of file nsLoggingSink.cpp.