[EFL][WK2] Stop using libsoup in ewk_url_scheme_request
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Feb 2013 18:32:05 +0000 (18:32 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Feb 2013 18:32:05 +0000 (18:32 +0000)
https://bugs.webkit.org/show_bug.cgi?id=108816

Patch by Christophe Dumez <dchris@gmail.com> on 2013-02-04
Reviewed by Anders Carlsson.

As we are trying to minimize use of external dependencies in our WK2 EFL
API implementation, we should stop using libsoup in
ewk_url_scheme_request and use the WK2 C API instead.

* UIProcess/API/efl/ewk_url_scheme_request.cpp:
(EwkUrlSchemeRequest::EwkUrlSchemeRequest):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@141780 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/efl/ewk_url_scheme_request.cpp

index 86fa11a19f0146f7d57dee81782e27c5ea0a219f..18a201e02d1cb856a984ceb5a0bca621b573d7ee 100644 (file)
@@ -1,3 +1,17 @@
+2013-02-04  Christophe Dumez  <dchris@gmail.com>
+
+        [EFL][WK2] Stop using libsoup in ewk_url_scheme_request
+        https://bugs.webkit.org/show_bug.cgi?id=108816
+
+        Reviewed by Anders Carlsson.
+
+        As we are trying to minimize use of external dependencies in our WK2 EFL
+        API implementation, we should stop using libsoup in
+        ewk_url_scheme_request and use the WK2 C API instead.
+
+        * UIProcess/API/efl/ewk_url_scheme_request.cpp:
+        (EwkUrlSchemeRequest::EwkUrlSchemeRequest):
+
 2013-02-04  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
 
         [WK2][EFL] Weird stripe at the end of the page
index 889173088f63cb7afa7be283df01f630456de122..728ee40fde6479f3eb3ddc179755703d085cf770 100644 (file)
@@ -26,9 +26,9 @@
 #include "config.h"
 #include "ewk_url_scheme_request.h"
 
-#include "GOwnPtrSoup.h"
 #include "WKData.h"
 #include "WKString.h"
+#include "WKURL.h"
 #include "ewk_url_scheme_request_private.h"
 
 using namespace WebKit;
@@ -37,10 +37,9 @@ EwkUrlSchemeRequest::EwkUrlSchemeRequest(WKSoupRequestManagerRef manager, WKURLR
     : m_wkRequestManager(manager)
     , m_url(url)
     , m_requestID(requestID)
+    , m_scheme(AdoptWK, WKURLCopyScheme(url))
+    , m_path(AdoptWK, WKURLCopyPath(url))
 {
-    GOwnPtr<SoupURI> soupURI(soup_uri_new(m_url));
-    m_scheme = soupURI->scheme;
-    m_path = soupURI->path;
 }
 
 uint64_t EwkUrlSchemeRequest::id() const