Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsIOService.cpp File Reference
#include "nsIOService.h"
#include "nsIProtocolHandler.h"
#include "nsIFileProtocolHandler.h"
#include "nscore.h"
#include "nsIServiceManager.h"
#include "nsIEventQueueService.h"
#include "nsIURI.h"
#include "nsIStreamListener.h"
#include "prprf.h"
#include "prlog.h"
#include "nsLoadGroup.h"
#include "nsInputStreamChannel.h"
#include "nsXPIDLString.h"
#include "nsReadableUtils.h"
#include "nsIErrorService.h"
#include "netCore.h"
#include "nsIObserverService.h"
#include "nsIPrefService.h"
#include "nsIPrefBranch2.h"
#include "nsIPrefLocalizedString.h"
#include "nsICategoryManager.h"
#include "nsXPCOM.h"
#include "nsISupportsPrimitives.h"
#include "nsIProxiedProtocolHandler.h"
#include "nsIProxyInfo.h"
#include "nsITimelineService.h"
#include "nsEscape.h"
#include "nsNetCID.h"
#include "nsIRecyclingAllocator.h"
#include "nsISocketTransport.h"
#include "nsCRT.h"

Go to the source code of this file.

Defines

#define PORT_PREF_PREFIX   "network.security.ports."
#define PORT_PREF(x)   PORT_PREF_PREFIX x
#define AUTODIAL_PREF   "network.autodial-helper.enabled"

Functions

static NS_DEFINE_CID (kStreamTransportServiceCID, NS_STREAMTRANSPORTSERVICE_CID)
static NS_DEFINE_CID (kSocketTransportServiceCID, NS_SOCKETTRANSPORTSERVICE_CID)
static NS_DEFINE_CID (kDNSServiceCID, NS_DNSSERVICE_CID)
static NS_DEFINE_CID (kErrorServiceCID, NS_ERRORSERVICE_CID)
static NS_DEFINE_CID (kProtocolProxyServiceCID, NS_PROTOCOLPROXYSERVICE_CID)
 NS_IMPL_THREADSAFE_ISUPPORTS5 (nsIOService, nsIIOService, nsIIOService2, nsINetUtil, nsIObserver, nsISupportsWeakReference) nsresult nsIOService

Variables

nsIOServicegIOService = nsnull
 Reference to the IO service singleton.
PRInt16 gBadPortList []
static const char kProfileChangeNetTeardownTopic [] = "profile-change-net-teardown"
static const char kProfileChangeNetRestoreTopic [] = "profile-change-net-restore"

Define Documentation

#define AUTODIAL_PREF   "network.autodial-helper.enabled"

Definition at line 73 of file nsIOService.cpp.

Definition at line 72 of file nsIOService.cpp.

#define PORT_PREF_PREFIX   "network.security.ports."

Definition at line 71 of file nsIOService.cpp.


Function Documentation

static NS_DEFINE_CID ( kStreamTransportServiceCID  ,
NS_STREAMTRANSPORTSERVICE_CID   
) [static]
static NS_DEFINE_CID ( kSocketTransportServiceCID  ,
NS_SOCKETTRANSPORTSERVICE_CID   
) [static]
static NS_DEFINE_CID ( kDNSServiceCID  ,
NS_DNSSERVICE_CID   
) [static]
static NS_DEFINE_CID ( kErrorServiceCID  ,
NS_ERRORSERVICE_CID   
) [static]
static NS_DEFINE_CID ( kProtocolProxyServiceCID  ,
NS_PROTOCOLPROXYSERVICE_CID   
) [static]

Definition at line 281 of file nsIOService.cpp.

{
    // Notify the registered observers
    const nsCOMArray<nsIChannelEventSink>& entries =
        mChannelEventSinks.GetEntries();
    PRInt32 len = entries.Count();
    for (PRInt32 i = 0; i < len; ++i) {
        nsresult rv = entries[i]->OnChannelRedirect(oldChan, newChan, flags);
        if (NS_FAILED(rv))
            return rv;
    }

    return NS_OK;
}

Here is the call graph for this function:


Variable Documentation

Definition at line 89 of file nsIOService.cpp.

Reference to the IO service singleton.

May be null.

Definition at line 81 of file nsIOService.cpp.

const char kProfileChangeNetRestoreTopic[] = "profile-change-net-restore" [static]

Definition at line 152 of file nsIOService.cpp.

const char kProfileChangeNetTeardownTopic[] = "profile-change-net-teardown" [static]

Definition at line 151 of file nsIOService.cpp.