diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2012-11-07 11:22:47 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-11-07 11:22:47 +0100 |
commit | cfd86b747d32ac22246a1aa908eaa720c63a88c1 (patch) | |
tree | 24d68c6f61c464ecba1e05670b80390ea3b0e50c /Source/WebKit2/WebProcess/gtk/WebAuthDialog.cpp | |
parent | 69d7c744c9de19d152dbe2d8e46eb7dfd4511d1a (diff) | |
download | qtwebkit-cfd86b747d32ac22246a1aa908eaa720c63a88c1.tar.gz |
Imported WebKit commit 20271caf2e2c016d5cef40184cddeefeac4f1876 (http://svn.webkit.org/repository/webkit/trunk@133733)
New snapshot that contains all previous fixes as well as build fix for latest QtMultimedia API changes.
Diffstat (limited to 'Source/WebKit2/WebProcess/gtk/WebAuthDialog.cpp')
-rw-r--r-- | Source/WebKit2/WebProcess/gtk/WebAuthDialog.cpp | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/Source/WebKit2/WebProcess/gtk/WebAuthDialog.cpp b/Source/WebKit2/WebProcess/gtk/WebAuthDialog.cpp deleted file mode 100644 index f3c3eab9c..000000000 --- a/Source/WebKit2/WebProcess/gtk/WebAuthDialog.cpp +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2011 Igalia S.L. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library 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 - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public License - * along with this library; see the file COPYING.LIB. If not, write to - * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - */ - -#include "config.h" -#include "WebAuthDialog.h" - -#include <WebCore/GtkAuthenticationDialog.h> - -typedef struct { - GObject parent; -} WebAuthDialog; - -typedef struct { - GObjectClass parent; -} WebAuthDialogClass; - -static void webAuthDialogSessionFeatureInit(SoupSessionFeatureInterface*, gpointer); - -G_DEFINE_TYPE_WITH_CODE(WebAuthDialog, web_auth_dialog, G_TYPE_OBJECT, - G_IMPLEMENT_INTERFACE(SOUP_TYPE_SESSION_FEATURE, - webAuthDialogSessionFeatureInit)) - -static void web_auth_dialog_class_init(WebAuthDialogClass*) -{ -} - -static void web_auth_dialog_init(WebAuthDialog*) -{ -} - -static void sessionAuthenticate(SoupSession* session, SoupMessage* message, SoupAuth* auth, gboolean, gpointer) -{ - WebCore::GtkAuthenticationDialog* authDialog = new WebCore::GtkAuthenticationDialog(0, session, message, auth); - authDialog->show(); -} - -static void attach(SoupSessionFeature*, SoupSession* session) -{ - g_signal_connect(session, "authenticate", G_CALLBACK(sessionAuthenticate), 0); -} - -static void detach(SoupSessionFeature*, SoupSession* session) -{ - g_signal_handlers_disconnect_by_func(session, reinterpret_cast<gpointer>(sessionAuthenticate), 0); -} - -static void webAuthDialogSessionFeatureInit(SoupSessionFeatureInterface* feature, gpointer) -{ - feature->attach = attach; - feature->detach = detach; -} |