Changed QWebObjectPluginConnector::requestUrl to take a QWebNetworkRequest as argument.
authorhausmann <hausmann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Jun 2007 13:05:16 +0000 (13:05 +0000)
committerhausmann <hausmann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Jun 2007 13:05:16 +0000 (13:05 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23499 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitQt/Api/qwebnetworkinterface.h
WebKitQt/Api/qwebobjectpluginconnector.cpp
WebKitQt/Api/qwebobjectpluginconnector.h
WebKitQt/ChangeLog

index 46fb21e524f08e747d379173e611efec40b8df58..81d78b283cb46b0a07d4a6bf8bfb18d743ed8d64 100644 (file)
@@ -72,6 +72,7 @@ private:
     friend class WebCore::FrameLoaderClientQt;
 
     QWebNetworkRequestPrivate *d;
+    friend class QWebObjectPluginConnector;
 };
 
 class QWEBKIT_EXPORT QWebNetworkJob
index e779f14a2d86b5b56f30674fb7d42b7142ab383f..bf91b895c43cae31c51c52d11b991116973756a1 100644 (file)
@@ -46,7 +46,7 @@ QWidget *QWebObjectPluginConnector::pluginParentWidget() const
     return d->frame->viewport();
 }
 
-QWebNetworkJob *QWebObjectPluginConnector::requestUrl(QWebNetworkRequest::Method method, const QUrl &url, Target target)
+QWebNetworkJob *QWebObjectPluginConnector::requestUrl(const QWebNetworkRequest &request, Target target)
 {
     if (target != Plugin)
         return 0;
@@ -56,8 +56,7 @@ QWebNetworkJob *QWebObjectPluginConnector::requestUrl(QWebNetworkRequest::Method
     p->interface = d->frame->page()->networkInterface();
     p->connector = this;
 
-    QString m = (method == QWebNetworkRequest::Get ? "GET" : "POST");
-    p->request.init(m, url);
+    p->request = *request.d;
 
     d->frame->page()->networkInterface()->addJob(job);
     return job;
index 5ec48129a9a9899598704189d5f45b7f8c045f77..8c04565db16a0907097d2565ea5ddc40bb4fe656 100644 (file)
@@ -48,7 +48,7 @@ public:
         Parent,
         Top
     };
-    QWebNetworkJob *requestUrl(QWebNetworkRequest::Method, const QUrl &url, Target target = Plugin);
+    QWebNetworkJob *requestUrl(const QWebNetworkRequest &request, Target target = Plugin);
 
 signals:
     void started(QWebNetworkJob*);
index d48fbfea7a9e3cae715e7bef7d2cf158c4d11747..a07e5156610d053724f3a5fc7a4a81aa932d5dce 100644 (file)
@@ -1,3 +1,14 @@
+2007-06-13  Simon Hausmann  <hausmann@kde.org>
+
+        Reviewed by Lars.
+
+        Changed QWebObjectPluginConnector::requestUrl to take a QWebNetworkRequest as argument.
+
+        * Api/qwebnetworkinterface.h:
+        * Api/qwebobjectpluginconnector.cpp:
+        (QWebObjectPluginConnector::requestUrl):
+        * Api/qwebobjectpluginconnector.h:
+
 2007-06-13  Simon Hausmann  <hausmann@kde.org>
 
         Reviewed by Lars.