epiphany r8075 - branches/gnome-2-22/embed/mozilla
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: epiphany r8075 - branches/gnome-2-22/embed/mozilla
- Date: Sun, 9 Mar 2008 19:48:04 +0000 (GMT)
Author: chpe
Date: Sun Mar 9 19:48:04 2008
New Revision: 8075
URL: http://svn.gnome.org/viewvc/epiphany?rev=8075&view=rev
Log:
Add stub impl of nsILoginManagerPrompter.
Added:
branches/gnome-2-22/embed/mozilla/EphyLoginPrompter.cpp
branches/gnome-2-22/embed/mozilla/EphyLoginPrompter.h
Modified:
branches/gnome-2-22/embed/mozilla/MozRegisterComponents.cpp
Added: branches/gnome-2-22/embed/mozilla/EphyLoginPrompter.cpp
==============================================================================
--- (empty file)
+++ branches/gnome-2-22/embed/mozilla/EphyLoginPrompter.cpp Sun Mar 9 19:48:04 2008
@@ -0,0 +1,97 @@
+/*
+ * Copyright  2005, 2006, 2008 Christian Persch
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#include "mozilla-config.h"
+#include "config.h"
+
+#include <glib/gi18n.h>
+
+#include <nsStringAPI.h>
+
+#include <nsComponentManagerUtils.h>
+#include <nsIChannel.h>
+#include <nsIDOMDocument.h>
+#include <nsIDOMHTMLDocument.h>
+#include <nsIDownload.h>
+#include <nsIHttpChannel.h>
+#include <nsIInputStream.h>
+#include <nsILocalFile.h>
+#include <nsIMIMEHeaderParam.h>
+#include <nsIMIMEInfo.h>
+#include <nsIMIMEService.h>
+#include <nsIPrefService.h>
+#include <nsIPromptService.h>
+#include <nsIURI.h>
+#include <nsIURL.h>
+#include <nsIWebBrowserPersist.h>
+#include <nsIWindowWatcher.h>
+#include <nsServiceManagerUtils.h>
+#include <nsXPCOMCID.h>
+
+#include "eel-gconf-extensions.h"
+#include "ephy-debug.h"
+#include "ephy-file-chooser.h"
+#include "ephy-gui.h"
+#include "ephy-prefs.h"
+
+#ifndef HAVE_GECKO_1_9
+#include "EphyBadCertRejector.h"
+#endif
+#include "MozDownload.h"
+
+#include "EphyLoginPrompter.h"
+
+EphyLoginPrompter::EphyLoginPrompter ()
+{
+ LOG ("EphyLoginPrompter ctor (%p)", this);
+}
+
+EphyLoginPrompter::~EphyLoginPrompter()
+{
+}
+
+NS_IMPL_ISUPPORTS1 (EphyLoginPrompter,
+ nsILoginManagerPrompter)
+
+/* void init (in nsIDOMWindow aWindow); */
+NS_IMETHODIMP EphyLoginPrompter::Init(nsIDOMWindow *aWindow)
+{
+ mWindow = aWindow;
+ return NS_OK;
+}
+
+/* void promptToSavePassword (in nsILoginInfo aLogin); */
+NS_IMETHODIMP EphyLoginPrompter::PromptToSavePassword(nsILoginInfo *aLogin)
+{
+ return NS_ERROR_NOT_IMPLEMENTED;
+}
+
+/* void promptToChangePassword (in nsILoginInfo aOldLogin, in nsILoginInfo aNewLogin); */
+NS_IMETHODIMP EphyLoginPrompter::PromptToChangePassword(nsILoginInfo *aOldLogin, nsILoginInfo *aNewLogin)
+{
+ return NS_ERROR_NOT_IMPLEMENTED;
+}
+
+/* void promptToChangePasswordWithUsernames ([array, size_is (count)] in nsILoginInfo logins, in PRUint32 count, in nsILoginInfo aNewLogin); */
+NS_IMETHODIMP EphyLoginPrompter::PromptToChangePasswordWithUsernames(nsILoginInfo **logins, PRUint32 count, nsILoginInfo *aNewLogin)
+{
+ return NS_ERROR_NOT_IMPLEMENTED;
+}
+
+
Added: branches/gnome-2-22/embed/mozilla/EphyLoginPrompter.h
==============================================================================
--- (empty file)
+++ branches/gnome-2-22/embed/mozilla/EphyLoginPrompter.h Sun Mar 9 19:48:04 2008
@@ -0,0 +1,45 @@
+/*
+ * Copyright  2005, 2006, 2008 Christian Persch
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef EPHY_LOGIN_PROMPTER_H
+#define EPHY_LOGIN_PROMPTER_H
+
+#include <nsILoginManagerPrompter.h>
+#include <nsCOMPtr.h>
+#include <nsIDOMWindow.h>
+
+#define EPHY_LOGIN_PROMPTER_CLASSNAME "Epiphany Login Prompter"
+
+/* b005b95e-ef31-4214-bd0e-1dd4f2d3083a */
+#define EPHY_LOGIN_PROMPTER_CID { 0xb005b95e, 0xef31, 0x4214, { 0xbd, 0x0e, 0x1d, 0xd4, 0xf2, 0xd3, 0x08, 0x3a } }
+
+class EphyLoginPrompter : public nsILoginManagerPrompter
+{
+public:
+ EphyLoginPrompter ();
+ virtual ~EphyLoginPrompter ();
+
+ NS_DECL_ISUPPORTS
+ NS_DECL_NSILOGINMANAGERPROMPTER
+
+private:
+ nsCOMPtr<nsIDOMWindow> mWindow;
+};
+
+#endif /* !EPHY_LOGIN_PROMPTER_H */
Modified: branches/gnome-2-22/embed/mozilla/MozRegisterComponents.cpp
==============================================================================
--- branches/gnome-2-22/embed/mozilla/MozRegisterComponents.cpp (original)
+++ branches/gnome-2-22/embed/mozilla/MozRegisterComponents.cpp Sun Mar 9 19:48:04 2008
@@ -77,6 +77,10 @@
#include "GeckoFormSigningDialog.h"
#endif
+#ifdef HAVE_GECKO_1_9
+#include "EphyLoginPrompter.h"
+#endif
+
NS_GENERIC_FACTORY_CONSTRUCTOR(EphyAboutModule)
NS_GENERIC_FACTORY_CONSTRUCTOR(EphyContentPolicy)
NS_GENERIC_FACTORY_CONSTRUCTOR(EphyPromptService)
@@ -104,6 +108,10 @@
NS_GENERIC_FACTORY_CONSTRUCTOR(GeckoFormSigningDialog)
#endif
+#ifdef HAVE_GECKO_1_9
+NS_GENERIC_FACTORY_CONSTRUCTOR(EphyLoginPrompter)
+#endif
+
#define XPINSTALL_CONTRACTID NS_CONTENT_HANDLER_CONTRACTID_PREFIX "application/x-xpinstall"
/* class information */
@@ -278,7 +286,15 @@
EPHY_COOKIEPROMPTSERVICE_CID,
EPHY_COOKIEPROMPTSERVICE_CONTRACTID,
GeckoCookiePromptServiceConstructor
- }
+ },
+#ifdef HAVE_GECKO_1_9
+ {
+ EPHY_LOGIN_PROMPTER_CLASSNAME,
+ EPHY_LOGIN_PROMPTER_CID,
+ NS_LOGINMANAGERPROMPTER_CONTRACTID,
+ EphyLoginPrompterConstructor
+ }
+#endif
};
gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]