diff --git a/netwerk/base/src/nsAuthURLParser.cpp b/netwerk/base/src/nsAuthURLParser.cpp new file mode 100644 index 00000000000..e69de29bb2d diff --git a/netwerk/base/src/nsAuthURLParser.h b/netwerk/base/src/nsAuthURLParser.h new file mode 100644 index 00000000000..a4352326a3a --- /dev/null +++ b/netwerk/base/src/nsAuthURLParser.h @@ -0,0 +1,59 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- + * + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): + */ + +#ifndef nsAuthURLParser_h__ +#define nsAuthURLParser_h__ + +#include "nsIURLParser.h" +#include "nsIURI.h" +#include "nsAgg.h" +#include "nsCRT.h" + +#define NS_AUTHORITYURLPARSER_CID \ +{ /* 90012125-1616-4fa1-ae14-4e7fa5766eb6 */ \ + 0x90012125, \ + 0x1616, \ + 0x4fa1, \ + {0xae, 0x14, 0x4e, 0x7f, 0xa5, 0x76, 0x6e, 0xb6} \ +} + +class nsAuthURLParser : public nsIURLParser +{ +public: + NS_DECL_ISUPPORTS + /////////////////////////////////////////////////////////////////////////// + // nsAuthURLParser methods: + nsAuthURLParser() { + NS_INIT_REFCNT(); + } + virtual ~nsAuthURLParser(); + + static NS_METHOD + Create(nsISupports *aOuter, REFNSIID aIID, void **aResult); + + /////////////////////////////////////////////////////////////////////////// + // nsIURLParser methods: + NS_DECL_NSIURLPARSER + +}; + +#endif // nsAuthURLParser_h__ diff --git a/netwerk/base/src/nsNoAuthURLParser.cpp b/netwerk/base/src/nsNoAuthURLParser.cpp new file mode 100644 index 00000000000..e69de29bb2d diff --git a/netwerk/base/src/nsNoAuthURLParser.h b/netwerk/base/src/nsNoAuthURLParser.h new file mode 100644 index 00000000000..741651b3870 --- /dev/null +++ b/netwerk/base/src/nsNoAuthURLParser.h @@ -0,0 +1,59 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- + * + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): + */ + +#ifndef nsNoAuthURLParser_h__ +#define nsNoAuthURLParser_h__ + +#include "nsIURLParser.h" +#include "nsIURI.h" +#include "nsAgg.h" +#include "nsCRT.h" + +#define NS_NOAUTHORITYURLPARSER_CID \ +{ /* 9eeb1b89-c87e-4404-9de6-dbd41aeaf3d7 */ \ + 0x9eeb1b89, \ + 0xc87e, \ + 0x4404, \ + {0x9d, 0xe6, 0xdb, 0xd4, 0x1a, 0xea, 0xf3, 0xd7} \ +} + +class nsNoAuthURLParser : public nsIURLParser +{ +public: + NS_DECL_ISUPPORTS + /////////////////////////////////////////////////////////////////////////// + // nsNoAuthURLParser methods: + nsNoAuthURLParser() { + NS_INIT_REFCNT(); + } + virtual ~nsNoAuthURLParser(); + + static NS_METHOD + Create(nsISupports *aOuter, REFNSIID aIID, void **aResult); + + /////////////////////////////////////////////////////////////////////////// + // nsIURLParser methods: + NS_DECL_NSIURLPARSER + +}; + +#endif // nsNoAuthURLParser_h__ diff --git a/netwerk/base/src/nsStdURLParser.cpp b/netwerk/base/src/nsStdURLParser.cpp new file mode 100644 index 00000000000..e69de29bb2d diff --git a/netwerk/base/src/nsStdURLParser.h b/netwerk/base/src/nsStdURLParser.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/netwerk/base/src/nsURLHelper.cpp b/netwerk/base/src/nsURLHelper.cpp new file mode 100644 index 00000000000..e69de29bb2d diff --git a/netwerk/base/src/nsURLHelper.h b/netwerk/base/src/nsURLHelper.h new file mode 100644 index 00000000000..e69de29bb2d