diff --git a/netwerk/protocol/about/src/mzAboutMozilla.cpp b/netwerk/protocol/about/src/mzAboutMozilla.cpp deleted file mode 100644 index a9962a41341a..000000000000 --- a/netwerk/protocol/about/src/mzAboutMozilla.cpp +++ /dev/null @@ -1,74 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* ***** BEGIN LICENSE BLOCK ***** - * Version: NPL 1.1/GPL 2.0/LGPL 2.1 - * - * 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 the Initial Developer are Copyright (C) 1998 - * the Initial Developer. All Rights Reserved. - * - * Contributor(s): - * - * Alternatively, the contents of this file may be used under the terms of - * either the GNU General Public License Version 2 or later (the "GPL"), or - * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), - * in which case the provisions of the GPL or the LGPL are applicable instead - * of those above. If you wish to allow use of your version of this file only - * under the terms of either the GPL or the LGPL, and not to allow others to - * use your version of this file under the terms of the NPL, indicate your - * decision by deleting the provisions above and replace them with the notice - * and other provisions required by the GPL or the LGPL. If you do not delete - * the provisions above, a recipient may use your version of this file under - * the terms of any one of the NPL, the GPL or the LGPL. - * - * ***** END LICENSE BLOCK ***** */ - -#include "mzAboutMozilla.h" -#include "nsIIOService.h" -#include "nsIServiceManager.h" -#include "nsCOMPtr.h" -#include "nsIURI.h" -#include "nsNetCID.h" - -static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID); - -NS_IMPL_ISUPPORTS1(mzAboutMozilla, nsIAboutModule) - -static const char kCreditsPage[] = "chrome://global/content/mozilla.html"; - -NS_IMETHODIMP -mzAboutMozilla::NewChannel(nsIURI *aURI, nsIChannel **result) -{ - nsresult rv; - nsCOMPtr ioService(do_GetService(kIOServiceCID, &rv)); - if (NS_FAILED(rv)) - return rv; - rv = ioService->NewChannel(kCreditsPage, nsnull, result); - return rv; -} - -NS_METHOD -mzAboutMozilla::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult) -{ - mzAboutMozilla* about = new mzAboutMozilla(); - if (about == nsnull) - return NS_ERROR_OUT_OF_MEMORY; - NS_ADDREF(about); - nsresult rv = about->QueryInterface(aIID, aResult); - NS_RELEASE(about); - return rv; -} - -//////////////////////////////////////////////////////////////////////////////// diff --git a/netwerk/protocol/about/src/mzAboutMozilla.h b/netwerk/protocol/about/src/mzAboutMozilla.h deleted file mode 100644 index 9a370608a7b5..000000000000 --- a/netwerk/protocol/about/src/mzAboutMozilla.h +++ /dev/null @@ -1,67 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* ***** BEGIN LICENSE BLOCK ***** - * Version: NPL 1.1/GPL 2.0/LGPL 2.1 - * - * 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 the Initial Developer are Copyright (C) 1998 - * the Initial Developer. All Rights Reserved. - * - * Contributor(s): - * - * Alternatively, the contents of this file may be used under the terms of - * either the GNU General Public License Version 2 or later (the "GPL"), or - * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), - * in which case the provisions of the GPL or the LGPL are applicable instead - * of those above. If you wish to allow use of your version of this file only - * under the terms of either the GPL or the LGPL, and not to allow others to - * use your version of this file under the terms of the NPL, indicate your - * decision by deleting the provisions above and replace them with the notice - * and other provisions required by the GPL or the LGPL. If you do not delete - * the provisions above, a recipient may use your version of this file under - * the terms of any one of the NPL, the GPL or the LGPL. - * - * ***** END LICENSE BLOCK ***** */ - -#ifndef mzAboutMozilla_h__ -#define mzAboutMozilla_h__ - -#include "nsIAboutModule.h" - -class mzAboutMozilla : public nsIAboutModule -{ -public: - NS_DECL_ISUPPORTS - - NS_DECL_NSIABOUTMODULE - - mzAboutMozilla() { NS_INIT_REFCNT(); } - virtual ~mzAboutMozilla() {} - - static NS_METHOD - Create(nsISupports *aOuter, REFNSIID aIID, void **aResult); - -protected: -}; - -#define MZ_ABOUT_MOZILLA_MODULE_CID \ -{ /* 15f25270-1dd2-11b2-ae92-970d00af4e34*/ \ - 0x15f25270, \ - 0x1dd2, \ - 0x11b2, \ - {0xae, 0x92, 0x97, 0x0d, 0x00, 0xaf, 0x4e, 0x34} \ -} - -#endif // mzAboutMozilla_h__ diff --git a/netwerk/protocol/about/src/nsAboutCredits.cpp b/netwerk/protocol/about/src/nsAboutCredits.cpp deleted file mode 100644 index 6541d6d64202..000000000000 --- a/netwerk/protocol/about/src/nsAboutCredits.cpp +++ /dev/null @@ -1,74 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* ***** BEGIN LICENSE BLOCK ***** - * Version: NPL 1.1/GPL 2.0/LGPL 2.1 - * - * 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 the Initial Developer are Copyright (C) 1998 - * the Initial Developer. All Rights Reserved. - * - * Contributor(s): - * - * Alternatively, the contents of this file may be used under the terms of - * either the GNU General Public License Version 2 or later (the "GPL"), or - * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), - * in which case the provisions of the GPL or the LGPL are applicable instead - * of those above. If you wish to allow use of your version of this file only - * under the terms of either the GPL or the LGPL, and not to allow others to - * use your version of this file under the terms of the NPL, indicate your - * decision by deleting the provisions above and replace them with the notice - * and other provisions required by the GPL or the LGPL. If you do not delete - * the provisions above, a recipient may use your version of this file under - * the terms of any one of the NPL, the GPL or the LGPL. - * - * ***** END LICENSE BLOCK ***** */ - -#include "nsAboutCredits.h" -#include "nsIIOService.h" -#include "nsIServiceManager.h" -#include "nsCOMPtr.h" -#include "nsIURI.h" -#include "nsNetCID.h" - -static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID); - -NS_IMPL_ISUPPORTS1(nsAboutCredits, nsIAboutModule) - -static const char kCreditsPage[] = "http://www.mozilla.org/credits/"; - -NS_IMETHODIMP -nsAboutCredits::NewChannel(nsIURI *aURI, nsIChannel **result) -{ - nsresult rv; - nsCOMPtr ioService(do_GetService(kIOServiceCID, &rv)); - if (NS_FAILED(rv)) - return rv; - rv = ioService->NewChannel(kCreditsPage, nsnull, result); - return rv; -} - -NS_METHOD -nsAboutCredits::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult) -{ - nsAboutCredits* about = new nsAboutCredits(); - if (about == nsnull) - return NS_ERROR_OUT_OF_MEMORY; - NS_ADDREF(about); - nsresult rv = about->QueryInterface(aIID, aResult); - NS_RELEASE(about); - return rv; -} - -//////////////////////////////////////////////////////////////////////////////// diff --git a/netwerk/protocol/about/src/nsAboutCredits.h b/netwerk/protocol/about/src/nsAboutCredits.h deleted file mode 100644 index 1b793923b8ab..000000000000 --- a/netwerk/protocol/about/src/nsAboutCredits.h +++ /dev/null @@ -1,67 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* ***** BEGIN LICENSE BLOCK ***** - * Version: NPL 1.1/GPL 2.0/LGPL 2.1 - * - * 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 the Initial Developer are Copyright (C) 1998 - * the Initial Developer. All Rights Reserved. - * - * Contributor(s): - * - * Alternatively, the contents of this file may be used under the terms of - * either the GNU General Public License Version 2 or later (the "GPL"), or - * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), - * in which case the provisions of the GPL or the LGPL are applicable instead - * of those above. If you wish to allow use of your version of this file only - * under the terms of either the GPL or the LGPL, and not to allow others to - * use your version of this file under the terms of the NPL, indicate your - * decision by deleting the provisions above and replace them with the notice - * and other provisions required by the GPL or the LGPL. If you do not delete - * the provisions above, a recipient may use your version of this file under - * the terms of any one of the NPL, the GPL or the LGPL. - * - * ***** END LICENSE BLOCK ***** */ - -#ifndef nsAboutCredits_h__ -#define nsAboutCredits_h__ - -#include "nsIAboutModule.h" - -class nsAboutCredits : public nsIAboutModule -{ -public: - NS_DECL_ISUPPORTS - - NS_DECL_NSIABOUTMODULE - - nsAboutCredits() { NS_INIT_REFCNT(); } - virtual ~nsAboutCredits() {} - - static NS_METHOD - Create(nsISupports *aOuter, REFNSIID aIID, void **aResult); - -protected: -}; - -#define NS_ABOUT_CREDITS_MODULE_CID \ -{ /* 4b00d478-1dd2-11b2-9c10-ac92614ad671*/ \ - 0x4b00d478, \ - 0x1dd2, \ - 0x11b2, \ - {0x9c, 0x10, 0xac, 0x92, 0x61, 0x4a, 0xd6, 0x71} \ -} - -#endif // nsAboutCredits_h__ diff --git a/netwerk/protocol/about/src/nsAboutPlugins.cpp b/netwerk/protocol/about/src/nsAboutPlugins.cpp deleted file mode 100755 index 9da1fb4ae5e4..000000000000 --- a/netwerk/protocol/about/src/nsAboutPlugins.cpp +++ /dev/null @@ -1,76 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* ***** BEGIN LICENSE BLOCK ***** - * Version: NPL 1.1/GPL 2.0/LGPL 2.1 - * - * 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 the Initial Developer are Copyright (C) 1998 - * the Initial Developer. All Rights Reserved. - * - * Contributor(s): - * Contributor(s): Sammy Ford - * Dawn Endico - * - * Alternatively, the contents of this file may be used under the terms of - * either the GNU General Public License Version 2 or later (the "GPL"), or - * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), - * in which case the provisions of the GPL or the LGPL are applicable instead - * of those above. If you wish to allow use of your version of this file only - * under the terms of either the GPL or the LGPL, and not to allow others to - * use your version of this file under the terms of the NPL, indicate your - * decision by deleting the provisions above and replace them with the notice - * and other provisions required by the GPL or the LGPL. If you do not delete - * the provisions above, a recipient may use your version of this file under - * the terms of any one of the NPL, the GPL or the LGPL. - * - * ***** END LICENSE BLOCK ***** */ - -#include "nsAboutPlugins.h" -#include "nsIIOService.h" -#include "nsIServiceManager.h" -#include "nsCOMPtr.h" -#include "nsIURI.h" -#include "nsNetCID.h" - -static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID); - -NS_IMPL_ISUPPORTS1(nsAboutPlugins, nsIAboutModule) - -static const char kPluginsPage[] = "chrome://global/content/plugins.html"; - -NS_IMETHODIMP -nsAboutPlugins::NewChannel(nsIURI *aURI, nsIChannel **result) -{ - nsresult rv; - nsCOMPtr ioService(do_GetService(kIOServiceCID, &rv)); - if (NS_FAILED(rv)) - return rv; - rv = ioService->NewChannel(kPluginsPage, nsnull, result); - return rv; -} - -NS_METHOD -nsAboutPlugins::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult) -{ - nsAboutPlugins* about = new nsAboutPlugins(); - if (about == nsnull) - return NS_ERROR_OUT_OF_MEMORY; - NS_ADDREF(about); - nsresult rv = about->QueryInterface(aIID, aResult); - NS_RELEASE(about); - return rv; -} - -//////////////////////////////////////////////////////////////////////////////// diff --git a/netwerk/protocol/about/src/nsAboutPlugins.h b/netwerk/protocol/about/src/nsAboutPlugins.h deleted file mode 100755 index 52750493dc84..000000000000 --- a/netwerk/protocol/about/src/nsAboutPlugins.h +++ /dev/null @@ -1,69 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* ***** BEGIN LICENSE BLOCK ***** - * Version: NPL 1.1/GPL 2.0/LGPL 2.1 - * - * 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 the Initial Developer are Copyright (C) 1998 - * the Initial Developer. All Rights Reserved. - * - * Contributor(s): - * Contributor(s): Sammy Ford - * Dawn Endico - * - * Alternatively, the contents of this file may be used under the terms of - * either the GNU General Public License Version 2 or later (the "GPL"), or - * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), - * in which case the provisions of the GPL or the LGPL are applicable instead - * of those above. If you wish to allow use of your version of this file only - * under the terms of either the GPL or the LGPL, and not to allow others to - * use your version of this file under the terms of the NPL, indicate your - * decision by deleting the provisions above and replace them with the notice - * and other provisions required by the GPL or the LGPL. If you do not delete - * the provisions above, a recipient may use your version of this file under - * the terms of any one of the NPL, the GPL or the LGPL. - * - * ***** END LICENSE BLOCK ***** */ - -#ifndef nsAboutPlugins_h__ -#define nsAboutPlugins_h__ - -#include "nsIAboutModule.h" - -class nsAboutPlugins : public nsIAboutModule -{ -public: - NS_DECL_ISUPPORTS - - NS_DECL_NSIABOUTMODULE - - nsAboutPlugins() { NS_INIT_REFCNT(); } - virtual ~nsAboutPlugins() {} - - static NS_METHOD - Create(nsISupports *aOuter, REFNSIID aIID, void **aResult); - -protected: -}; - -#define NS_ABOUT_PLUGINS_MODULE_CID \ -{ /* 344aef06-1dd2-11b2-a070-bd6118526e42 */ \ - 0x344aef06, \ - 0x1dd2, \ - 0x11b2, \ - {0xa0, 0x70, 0xbd, 0x61, 0x18, 0x52, 0x6e, 0x42} \ -} - -#endif // nsAboutPlugins_h__ diff --git a/netwerk/protocol/about/src/nsAboutProtocolModule.cpp b/netwerk/protocol/about/src/nsAboutProtocolModule.cpp deleted file mode 100644 index 65d149d3dd29..000000000000 --- a/netwerk/protocol/about/src/nsAboutProtocolModule.cpp +++ /dev/null @@ -1,93 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* ***** BEGIN LICENSE BLOCK ***** - * Version: NPL 1.1/GPL 2.0/LGPL 2.1 - * - * 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 the Initial Developer are Copyright (C) 1998 - * the Initial Developer. All Rights Reserved. - * - * Contributor(s): - * - * Alternatively, the contents of this file may be used under the terms of - * either the GNU General Public License Version 2 or later (the "GPL"), or - * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), - * in which case the provisions of the GPL or the LGPL are applicable instead - * of those above. If you wish to allow use of your version of this file only - * under the terms of either the GPL or the LGPL, and not to allow others to - * use your version of this file under the terms of the NPL, indicate your - * decision by deleting the provisions above and replace them with the notice - * and other provisions required by the GPL or the LGPL. If you do not delete - * the provisions above, a recipient may use your version of this file under - * the terms of any one of the NPL, the GPL or the LGPL. - * - * ***** END LICENSE BLOCK ***** */ - -#include "nsIModule.h" -#include "nsIGenericFactory.h" - -#include "nsAboutProtocolHandler.h" -#include "nsAboutBlank.h" -#include "nsAboutBloat.h" -#include "nsAboutCredits.h" -#include "mzAboutMozilla.h" - -static const nsModuleComponentInfo components[] = -{ - { "About Protocol Handler", - NS_ABOUTPROTOCOLHANDLER_CID, - NS_NETWORK_PROTOCOL_CONTRACTID_PREFIX "about", - nsAboutProtocolHandler::Create - }, - - { "about:blank", - NS_ABOUT_BLANK_MODULE_CID, - NS_ABOUT_MODULE_CONTRACTID_PREFIX "blank", - nsAboutBlank::Create - }, - - { "about:bloat", - NS_ABOUT_BLOAT_MODULE_CID, - NS_ABOUT_MODULE_CONTRACTID_PREFIX "bloat", - nsAboutBloat::Create - }, - - { "about:config", - NS_ABOUT_CONFIG_MODULE_CID, - NS_ABOUT_MODULE_CONTRACTID_PREFIX "config", - nsAboutConfig::Create - }, - - { "about:credits", - NS_ABOUT_CREDITS_MODULE_CID, - NS_ABOUT_MODULE_CONTRACTID_PREFIX "credits", - nsAboutCredits::Create - }, - - { "about:mozilla", - MZ_ABOUT_MOZILLA_MODULE_CID, - NS_ABOUT_MODULE_CONTRACTID_PREFIX "mozilla", - mzAboutMozilla::Create - }, - - { "about:cache", - NS_ABOUT_CACHE_MODULE_CID, - NS_ABOUT_MODULE_CONTRACTID_PREFIX "cache", - nsAboutCache::Create - }, -}; - -NS_IMPL_NSGETMODULE(nsAboutProtocolModule, components); -