Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsJSProtocolHandler.cpp File Reference
#include "nsCOMPtr.h"
#include "nsAutoPtr.h"
#include "jsapi.h"
#include "nsCRT.h"
#include "nsDOMError.h"
#include "nsXPIDLString.h"
#include "nsReadableUtils.h"
#include "nsJSProtocolHandler.h"
#include "nsNetUtil.h"
#include "nsIComponentManager.h"
#include "nsIGenericFactory.h"
#include "nsIServiceManager.h"
#include "nsIURI.h"
#include "nsIScriptContext.h"
#include "nsIScriptGlobalObject.h"
#include "nsIScriptGlobalObjectOwner.h"
#include "nsIPrincipal.h"
#include "nsIScriptSecurityManager.h"
#include "nsIInterfaceRequestor.h"
#include "nsIInterfaceRequestorUtils.h"
#include "nsIStringStream.h"
#include "nsIWindowMediator.h"
#include "nsPIDOMWindow.h"
#include "nsIDOMDocument.h"
#include "nsIJSConsoleService.h"
#include "nsIConsoleService.h"
#include "prprf.h"
#include "nsEscape.h"
#include "nsIJSContextStack.h"
#include "nsIWebNavigation.h"
#include "nsIDocShell.h"
#include "nsIContentViewer.h"
#include "nsIXPConnect.h"
#include "nsContentUtils.h"
#include "nsJSUtils.h"

Go to the source code of this file.

Classes

class  nsJSThunk
class  nsJSChannel

Functions

static NS_DEFINE_CID (kSimpleURICID, NS_SIMPLEURI_CID)
static NS_DEFINE_CID (kWindowMediatorCID, NS_WINDOWMEDIATOR_CID)
static PRBool IsISO88591 (const nsString &aString)

Function Documentation

static PRBool IsISO88591 ( const nsString aString) [static]

Definition at line 126 of file nsJSProtocolHandler.cpp.

{
    for (nsString::const_char_iterator c = aString.BeginReading(),
                                   c_end = aString.EndReading();
         c < c_end; ++c) {
        if (*c > 255)
            return PR_FALSE;
    }
    return PR_TRUE;
}

Here is the caller graph for this function:

static NS_DEFINE_CID ( kSimpleURICID  ,
NS_SIMPLEURI_CID   
) [static]
static NS_DEFINE_CID ( kWindowMediatorCID  ,
NS_WINDOWMEDIATOR_CID   
) [static]