Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions | Variables
nsXBLService.cpp File Reference
#include "nsCOMPtr.h"
#include "nsNetUtil.h"
#include "nsXBLService.h"
#include "nsXBLWindowKeyHandler.h"
#include "nsXBLWindowDragHandler.h"
#include "nsIInputStream.h"
#include "nsINameSpaceManager.h"
#include "nsHashtable.h"
#include "nsIURI.h"
#include "nsIDOMElement.h"
#include "nsIURL.h"
#include "nsIChannel.h"
#include "nsXPIDLString.h"
#include "nsIParser.h"
#include "nsParserCIID.h"
#include "plstr.h"
#include "nsIContent.h"
#include "nsIDocument.h"
#include "nsIXMLContentSink.h"
#include "nsContentCID.h"
#include "nsXMLDocument.h"
#include "nsHTMLAtoms.h"
#include "nsSupportsArray.h"
#include "nsITextContent.h"
#include "nsIMemory.h"
#include "nsIObserverService.h"
#include "nsIDOMNodeList.h"
#include "nsXBLContentSink.h"
#include "nsXBLBinding.h"
#include "nsXBLPrototypeBinding.h"
#include "nsIXBLDocumentInfo.h"
#include "nsXBLAtoms.h"
#include "nsXULAtoms.h"
#include "nsCRT.h"
#include "nsContentUtils.h"
#include "nsISyncLoadDOMService.h"
#include "nsIDOM3Node.h"
#include "nsContentPolicyUtils.h"
#include "nsIPresShell.h"
#include "nsIDocumentObserver.h"
#include "nsFrameManager.h"
#include "nsStyleContext.h"
#include "nsIScriptSecurityManager.h"
#include "nsIDOMLoadListener.h"
#include "nsIDOMEventGroup.h"
#include "nsDocument.h"

Go to the source code of this file.

Classes

class  nsXBLBindingRequest
class  nsXBLStreamListener

Functions

static NS_DEFINE_CID (kXMLDocumentCID, NS_XMLDOCUMENT_CID)
static PRBool IsChromeOrResourceURI (nsIURI *aURI)
nsresult NS_NewXBLService (nsIXBLService **aResult)

Variables

static const size_t kBucketSizes []
static const PRInt32 kNumBuckets = sizeof(kBucketSizes)/sizeof(size_t)
static const PRInt32 kNumElements = 64
static const PRInt32 kInitialSize = (NS_SIZE_IN_HEAP(sizeof(nsXBLBindingRequest))) * kNumElements
static const char kDisableChromeCachePref [] = "nglayout.debug.disable_xul_cache"

Function Documentation

static PRBool IsChromeOrResourceURI ( nsIURI aURI) [static]

Definition at line 98 of file nsXBLService.cpp.

{
  PRBool isChrome = PR_FALSE;
  PRBool isResource = PR_FALSE;
  if (NS_SUCCEEDED(aURI->SchemeIs("chrome", &isChrome)) && 
      NS_SUCCEEDED(aURI->SchemeIs("resource", &isResource)))
      return (isChrome || isResource);
  return PR_FALSE;
}

Here is the caller graph for this function:

static NS_DEFINE_CID ( kXMLDocumentCID  ,
NS_XMLDOCUMENT_CID   
) [static]

Definition at line 1246 of file nsXBLService.cpp.

{
  nsXBLService* result = new nsXBLService;
  if (! result)
    return NS_ERROR_OUT_OF_MEMORY;

  NS_ADDREF(*aResult = result);

  // Register the first (and only) nsXBLService as a memory pressure observer
  // so it can flush the LRU list in low-memory situations.
  nsCOMPtr<nsIObserverService> os = do_GetService("@mozilla.org/observer-service;1");
  if (os)
    os->AddObserver(result, "memory-pressure", PR_TRUE);

  return NS_OK;
}

Here is the call graph for this function:


Variable Documentation

const size_t kBucketSizes[] [static]
Initial value:
 {
  sizeof(nsXBLBindingRequest)
}

Definition at line 207 of file nsXBLService.cpp.

const char kDisableChromeCachePref[] = "nglayout.debug.disable_xul_cache" [static]

Definition at line 463 of file nsXBLService.cpp.

Definition at line 213 of file nsXBLService.cpp.

const PRInt32 kNumBuckets = sizeof(kBucketSizes)/sizeof(size_t) [static]

Definition at line 211 of file nsXBLService.cpp.

const PRInt32 kNumElements = 64 [static]

Definition at line 212 of file nsXBLService.cpp.