From cfd86b747d32ac22246a1aa908eaa720c63a88c1 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 7 Nov 2012 11:22:47 +0100 Subject: 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. --- Source/WebKit2/WebProcess/gtk/WebAuthDialog.cpp | 67 ------------------------- 1 file changed, 67 deletions(-) delete mode 100644 Source/WebKit2/WebProcess/gtk/WebAuthDialog.cpp (limited to 'Source/WebKit2/WebProcess/gtk/WebAuthDialog.cpp') 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 - -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(sessionAuthenticate), 0); -} - -static void webAuthDialogSessionFeatureInit(SoupSessionFeatureInterface* feature, gpointer) -{ - feature->attach = attach; - feature->detach = detach; -} -- cgit v1.2.1