зеркало из https://github.com/mozilla/pjs.git
97677: Check whether a link exists. r=cmanske,sr=darinf
This commit is contained in:
Родитель
66f699c92d
Коммит
1c1d734e7b
|
@ -66,6 +66,7 @@ CPPSRCS = \
|
|||
nsStreamListenerTee.cpp \
|
||||
nsStreamLoader.cpp \
|
||||
nsStreamProviderProxy.cpp \
|
||||
nsURIChecker.cpp \
|
||||
nsURLHelper.cpp \
|
||||
$(NULL)
|
||||
|
||||
|
|
|
@ -64,6 +64,7 @@ CPP_OBJS = \
|
|||
.\$(OBJDIR)\nsAsyncStreamListener.obj \
|
||||
.\$(OBJDIR)\nsStorageTransport.obj \
|
||||
.\$(OBJDIR)\nsStreamListenerTee.obj \
|
||||
.\$(OBJDIR)\nsURIChecker.obj \
|
||||
$(NULL)
|
||||
|
||||
JSFILES = \
|
||||
|
|
|
@ -214,6 +214,18 @@
|
|||
{0xbb, 0x4f, 0x96, 0x5c, 0xff, 0xd2, 0x3e, 0xce} \
|
||||
}
|
||||
|
||||
#define NS_URICHECKER_CLASSNAME \
|
||||
"URI Checker"
|
||||
#define NS_URICHECKER_CONTRACT_ID \
|
||||
"@mozilla.org/network/urichecker;1"
|
||||
#define NS_URICHECKER_CID \
|
||||
{ /* cf3a0e06-1dd1-11b2-a904-ac1d6da77a02 */ \
|
||||
0xcf3a0e06, \
|
||||
0x1dd1, \
|
||||
0x11b2, \
|
||||
{0xa9, 0x04, 0xac, 0x1d, 0x6d, 0xa7, 0x7a, 0x02} \
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
* netwerk/cache/ classes
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
* the terms of any one of the NPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIModule.h"
|
||||
#include "nsIGenericFactory.h"
|
||||
|
@ -120,6 +121,10 @@ NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsResProtocolHandler, Init)
|
|||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "nsURIChecker.h"
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsURIChecker)
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
static NS_METHOD
|
||||
RegisterBuiltInURLParsers(nsIComponentManager *aCompMgr,
|
||||
|
@ -656,6 +661,12 @@ static nsModuleComponentInfo gNetModuleInfo[] = {
|
|||
NS_LOCALFILEOUTPUTSTREAM_CONTRACTID,
|
||||
nsFileOutputStream::Create },
|
||||
|
||||
{ "URIChecker",
|
||||
NS_URICHECKER_CID,
|
||||
NS_URICHECKER_CONTRACT_ID,
|
||||
nsURICheckerConstructor
|
||||
},
|
||||
|
||||
// The register functions for the build in
|
||||
// parsers just need to be called once.
|
||||
{ "StdURLParser",
|
||||
|
|
Загрузка…
Ссылка в новой задаче