<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[162835] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/162835">162835</a></dd>
<dt>Author</dt> <dd>carlosgc@webkit.org</dd>
<dt>Date</dt> <dd>2014-01-27 05:14:49 -0800 (Mon, 27 Jan 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>[GTK] Implement custom URI schemes with CustomProtocols
https://bugs.webkit.org/show_bug.cgi?id=127091

Reviewed by Gustavo Noronha Silva.

Source/WebKit2:

The old classes are no longer built for GTK+ and should be removed once
other ports using soup backend switch to custom protocols implementation.

* GNUmakefile.am: Remove include path.
* GNUmakefile.list.am: Remove files from compilation.
* PlatformGTK.cmake: Ditto.
* UIProcess/API/gtk/WebKitPrivate.h:
* UIProcess/API/gtk/WebKitRequestManagerClient.cpp:
(startLoading):
(stopLoading):
(attachRequestManagerClientToContext):
* UIProcess/API/gtk/WebKitURISchemeRequest.cpp:
(webkitURISchemeRequestCreate):
(webkit_uri_scheme_request_get_web_view):
(webkitURISchemeRequestReadCallback):
(webkit_uri_scheme_request_finish):
(webkit_uri_scheme_request_finish_error):
* UIProcess/API/gtk/WebKitURISchemeRequestPrivate.h:
* UIProcess/API/gtk/WebKitWebContext.cpp:
(createDefaultWebContext):
(webkit_web_context_register_uri_scheme):
(webkitWebContextGetRequestManager):
(webkitWebContextStartLoadingCustomProtocol):
(webkitWebContextStopLoadingCustomProtocol):
(webkitWebContextDidFinishLoadingCustomProtocol):
* UIProcess/API/gtk/WebKitWebContextPrivate.h:
* UIProcess/gtk/WebContextGtk.cpp:
(WebKit::WebContext::platformInitializeWebProcess):
* WebKit2Prefix.h: Enable CustomProtocols unconditionally for the
GTK+ port.

Tools:

Temporarily disable the WebKitWebView check until we figure out
how to implement it with CustomProtocols.

* TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2GNUmakefileam">trunk/Source/WebKit2/GNUmakefile.am</a></li>
<li><a href="#trunkSourceWebKit2GNUmakefilelistam">trunk/Source/WebKit2/GNUmakefile.list.am</a></li>
<li><a href="#trunkSourceWebKit2PlatformGTKcmake">trunk/Source/WebKit2/PlatformGTK.cmake</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPIgtkWebKitPrivateh">trunk/Source/WebKit2/UIProcess/API/gtk/WebKitPrivate.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPIgtkWebKitRequestManagerClientcpp">trunk/Source/WebKit2/UIProcess/API/gtk/WebKitRequestManagerClient.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPIgtkWebKitURISchemeRequestcpp">trunk/Source/WebKit2/UIProcess/API/gtk/WebKitURISchemeRequest.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPIgtkWebKitURISchemeRequestPrivateh">trunk/Source/WebKit2/UIProcess/API/gtk/WebKitURISchemeRequestPrivate.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPIgtkWebKitWebContextcpp">trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPIgtkWebKitWebContextPrivateh">trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContextPrivate.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessgtkWebContextGtkcpp">trunk/Source/WebKit2/UIProcess/gtk/WebContextGtk.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebKit2Prefixh">trunk/Source/WebKit2/WebKit2Prefix.h</a></li>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
<li><a href="#trunkToolsTestWebKitAPITestsWebKit2GtkTestWebKitWebContextcpp">trunk/Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (162834 => 162835)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2014-01-27 12:40:18 UTC (rev 162834)
+++ trunk/Source/WebKit2/ChangeLog        2014-01-27 13:14:49 UTC (rev 162835)
</span><span class="lines">@@ -1,5 +1,43 @@
</span><span class="cx"> 2014-01-27  Carlos Garcia Campos  &lt;cgarcia@igalia.com&gt;
</span><span class="cx"> 
</span><ins>+        [GTK] Implement custom URI schemes with CustomProtocols
+        https://bugs.webkit.org/show_bug.cgi?id=127091
+
+        Reviewed by Gustavo Noronha Silva.
+
+        The old classes are no longer built for GTK+ and should be removed once
+        other ports using soup backend switch to custom protocols implementation.
+
+        * GNUmakefile.am: Remove include path.
+        * GNUmakefile.list.am: Remove files from compilation.
+        * PlatformGTK.cmake: Ditto.
+        * UIProcess/API/gtk/WebKitPrivate.h:
+        * UIProcess/API/gtk/WebKitRequestManagerClient.cpp:
+        (startLoading):
+        (stopLoading):
+        (attachRequestManagerClientToContext):
+        * UIProcess/API/gtk/WebKitURISchemeRequest.cpp:
+        (webkitURISchemeRequestCreate):
+        (webkit_uri_scheme_request_get_web_view):
+        (webkitURISchemeRequestReadCallback):
+        (webkit_uri_scheme_request_finish):
+        (webkit_uri_scheme_request_finish_error):
+        * UIProcess/API/gtk/WebKitURISchemeRequestPrivate.h:
+        * UIProcess/API/gtk/WebKitWebContext.cpp:
+        (createDefaultWebContext):
+        (webkit_web_context_register_uri_scheme):
+        (webkitWebContextGetRequestManager):
+        (webkitWebContextStartLoadingCustomProtocol):
+        (webkitWebContextStopLoadingCustomProtocol):
+        (webkitWebContextDidFinishLoadingCustomProtocol):
+        * UIProcess/API/gtk/WebKitWebContextPrivate.h:
+        * UIProcess/gtk/WebContextGtk.cpp:
+        (WebKit::WebContext::platformInitializeWebProcess):
+        * WebKit2Prefix.h: Enable CustomProtocols unconditionally for the
+        GTK+ port.
+
+2014-01-27  Carlos Garcia Campos  &lt;cgarcia@igalia.com&gt;
+
</ins><span class="cx">         [SOUP] WebProcess sometimes crashes when a download is cancelled
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=127650
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2GNUmakefileam"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/GNUmakefile.am (162834 => 162835)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/GNUmakefile.am        2014-01-27 12:40:18 UTC (rev 162834)
+++ trunk/Source/WebKit2/GNUmakefile.am        2014-01-27 13:14:49 UTC (rev 162835)
</span><span class="lines">@@ -428,7 +428,6 @@
</span><span class="cx">         $(WebKit2)/UIProcess/Plugins \
</span><span class="cx">         $(WebKit2)/UIProcess/ResourceCache \
</span><span class="cx">         $(WebKit2)/UIProcess/Storage \
</span><del>-        $(WebKit2)/UIProcess/soup \
</del><span class="cx">         $(WebKit2)/WebProcess \
</span><span class="cx">         $(WebKit2)/WebProcess/ApplicationCache \
</span><span class="cx">         $(WebKit2)/WebProcess/Battery \
</span></span></pre></div>
<a id="trunkSourceWebKit2GNUmakefilelistam"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/GNUmakefile.list.am (162834 => 162835)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/GNUmakefile.list.am        2014-01-27 12:40:18 UTC (rev 162834)
+++ trunk/Source/WebKit2/GNUmakefile.list.am        2014-01-27 13:14:49 UTC (rev 162835)
</span><span class="lines">@@ -160,10 +160,6 @@
</span><span class="cx">         DerivedSources/WebKit2/WebResourceCacheManagerProxyMessages.h \
</span><span class="cx">         DerivedSources/WebKit2/WebResourceLoaderMessageReceiver.cpp \
</span><span class="cx">         DerivedSources/WebKit2/WebResourceLoaderMessages.h \
</span><del>-        DerivedSources/WebKit2/WebSoupRequestManagerMessageReceiver.cpp \
-        DerivedSources/WebKit2/WebSoupRequestManagerMessages.h \
-        DerivedSources/WebKit2/WebSoupRequestManagerProxyMessageReceiver.cpp \
-        DerivedSources/WebKit2/WebSoupRequestManagerProxyMessages.h \
</del><span class="cx">         DerivedSources/WebKit2/WebVibrationProxyMessageReceiver.cpp \
</span><span class="cx">         DerivedSources/WebKit2/WebVibrationProxyMessages.h
</span><span class="cx"> 
</span><span class="lines">@@ -521,10 +517,6 @@
</span><span class="cx">         Source/WebKit2/UIProcess/API/C/gtk/WKView.h \
</span><span class="cx">         Source/WebKit2/UIProcess/API/C/gtk/WKViewPrivate.h \
</span><span class="cx">         Source/WebKit2/UIProcess/API/C/soup/WKAPICastSoup.h \
</span><del>-        Source/WebKit2/UIProcess/API/C/soup/WKContextSoup.cpp \
-        Source/WebKit2/UIProcess/API/C/soup/WKContextSoup.h \
-        Source/WebKit2/UIProcess/API/C/soup/WKSoupRequestManager.cpp \
-        Source/WebKit2/UIProcess/API/C/soup/WKSoupRequestManager.h \
</del><span class="cx">         Source/WebKit2/UIProcess/API/C/soup/WKSoupCustomProtocolRequestManager.cpp \
</span><span class="cx">         Source/WebKit2/UIProcess/API/C/soup/WKSoupCustomProtocolRequestManager.h \
</span><span class="cx">         Source/WebKit2/UIProcess/API/C/WebKit2_C.h \
</span><span class="lines">@@ -886,10 +878,6 @@
</span><span class="cx">         Source/WebKit2/UIProcess/Storage/StorageManager.h \
</span><span class="cx">         Source/WebKit2/UIProcess/soup/WebContextSoup.cpp \
</span><span class="cx">         Source/WebKit2/UIProcess/soup/WebCookieManagerProxySoup.cpp \
</span><del>-        Source/WebKit2/UIProcess/soup/WebSoupRequestManagerClient.cpp \
-        Source/WebKit2/UIProcess/soup/WebSoupRequestManagerClient.h \
-        Source/WebKit2/UIProcess/soup/WebSoupRequestManagerProxy.cpp \
-        Source/WebKit2/UIProcess/soup/WebSoupRequestManagerProxy.h \
</del><span class="cx">         Source/WebKit2/UIProcess/TextChecker.h \
</span><span class="cx">         Source/WebKit2/UIProcess/TextCheckerCompletion.h \
</span><span class="cx">         Source/WebKit2/UIProcess/TextCheckerCompletion.cpp \
</span><span class="lines">@@ -1184,8 +1172,6 @@
</span><span class="cx">         Source/WebKit2/WebProcess/Storage/StorageAreaMap.h \
</span><span class="cx">         Source/WebKit2/WebProcess/Storage/StorageNamespaceImpl.cpp \
</span><span class="cx">         Source/WebKit2/WebProcess/Storage/StorageNamespaceImpl.h \
</span><del>-        Source/WebKit2/WebProcess/soup/WebSoupRequestManager.cpp \
-        Source/WebKit2/WebProcess/soup/WebSoupRequestManager.h \
</del><span class="cx">         Source/WebKit2/WebProcess/soup/WebProcessSoup.cpp \
</span><span class="cx">         Source/WebKit2/WebProcess/soup/WebKitSoupRequestGeneric.cpp \
</span><span class="cx">         Source/WebKit2/WebProcess/soup/WebKitSoupRequestGeneric.h \
</span></span></pre></div>
<a id="trunkSourceWebKit2PlatformGTKcmake"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/PlatformGTK.cmake (162834 => 162835)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/PlatformGTK.cmake        2014-01-27 12:40:18 UTC (rev 162834)
+++ trunk/Source/WebKit2/PlatformGTK.cmake        2014-01-27 13:14:49 UTC (rev 162835)
</span><span class="lines">@@ -82,9 +82,7 @@
</span><span class="cx">     UIProcess/API/C/gtk/WKInspectorClientGtk.cpp
</span><span class="cx">     UIProcess/API/C/gtk/WKView.cpp
</span><span class="cx"> 
</span><del>-    UIProcess/API/C/soup/WKContextSoup.cpp
</del><span class="cx">     UIProcess/API/C/soup/WKCookieManagerSoup.cpp
</span><del>-    UIProcess/API/C/soup/WKSoupRequestManager.cpp
</del><span class="cx">     UIProcess/API/C/soup/WKSoupCustomProtocolRequestManager.cpp
</span><span class="cx"> 
</span><span class="cx">     UIProcess/API/gtk/PageClientImpl.cpp
</span><span class="lines">@@ -269,8 +267,6 @@
</span><span class="cx">     UIProcess/Network/soup/NetworkProcessProxySoup.cpp
</span><span class="cx">     UIProcess/soup/WebContextSoup.cpp
</span><span class="cx">     UIProcess/soup/WebCookieManagerProxySoup.cpp
</span><del>-    UIProcess/soup/WebSoupRequestManagerClient.cpp
-    UIProcess/soup/WebSoupRequestManagerProxy.cpp
</del><span class="cx"> 
</span><span class="cx">     WebProcess/Cookies/soup/WebCookieManagerSoup.cpp
</span><span class="cx">     WebProcess/Cookies/soup/WebKitSoupCookieJarSqlite.cpp
</span><span class="lines">@@ -311,7 +307,6 @@
</span><span class="cx">     WebProcess/soup/WebKitSoupRequestGeneric.cpp
</span><span class="cx">     WebProcess/soup/WebKitSoupRequestInputStream.cpp
</span><span class="cx">     WebProcess/soup/WebProcessSoup.cpp
</span><del>-    WebProcess/soup/WebSoupRequestManager.cpp
</del><span class="cx"> )
</span><span class="cx"> 
</span><span class="cx"> set(WebKit2GTK_INSTALLED_HEADERS
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIgtkWebKitPrivateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitPrivate.h (162834 => 162835)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitPrivate.h        2014-01-27 12:40:18 UTC (rev 162834)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitPrivate.h        2014-01-27 13:14:49 UTC (rev 162835)
</span><span class="lines">@@ -27,7 +27,6 @@
</span><span class="cx"> #define WebKitPrivate_h
</span><span class="cx"> 
</span><span class="cx"> #include &lt;WebKit2/WKAPICast.h&gt;
</span><del>-#include &lt;WebKit2/WKContextSoup.h&gt;
</del><span class="cx"> #include &lt;WebKit2/WKDownload.h&gt;
</span><span class="cx"> #include &lt;WebKit2/WKFindOptions.h&gt;
</span><span class="cx"> #include &lt;WebKit2/WKFullScreenClientGtk.h&gt;
</span><span class="lines">@@ -39,7 +38,7 @@
</span><span class="cx"> #include &lt;WebKit2/WKInspectorClientGtk.h&gt;
</span><span class="cx"> #include &lt;WebKit2/WKRetainPtr.h&gt;
</span><span class="cx"> #include &lt;WebKit2/WKSerializedScriptValue.h&gt;
</span><del>-#include &lt;WebKit2/WKSoupRequestManager.h&gt;
</del><ins>+#include &lt;WebKit2/WKSoupCustomProtocolRequestManager.h&gt;
</ins><span class="cx"> #include &lt;WebKit2/WKString.h&gt;
</span><span class="cx"> #include &lt;WebKit2/WKTextChecker.h&gt;
</span><span class="cx"> #include &lt;WebKit2/WebKit2_C.h&gt;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIgtkWebKitRequestManagerClientcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitRequestManagerClient.cpp (162834 => 162835)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitRequestManagerClient.cpp        2014-01-27 12:40:18 UTC (rev 162834)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitRequestManagerClient.cpp        2014-01-27 13:14:49 UTC (rev 162835)
</span><span class="lines">@@ -20,34 +20,30 @@
</span><span class="cx"> #include &quot;config.h&quot;
</span><span class="cx"> #include &quot;WebKitRequestManagerClient.h&quot;
</span><span class="cx"> 
</span><del>-#include &quot;WebKitURISchemeRequestPrivate.h&quot;
</del><span class="cx"> #include &quot;WebKitWebContextPrivate.h&quot;
</span><del>-#include &lt;wtf/gobject/GRefPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> using namespace WebKit;
</span><span class="cx"> 
</span><del>-static void didReceiveURIRequest(WKSoupRequestManagerRef soupRequestManagerRef, WKURLRef urlRef, WKPageRef initiatingPageRef, uint64_t requestID, const void* clientInfo)
</del><ins>+static void startLoading(WKSoupCustomProtocolRequestManagerRef soupRequestManagerRef, uint64_t customProtocolID, WKURLRequestRef requestRef, const void* clientInfo)
</ins><span class="cx"> {
</span><del>-    WebKitWebContext* webContext = WEBKIT_WEB_CONTEXT(clientInfo);
-    GRefPtr&lt;WebKitURISchemeRequest&gt; request = adoptGRef(webkitURISchemeRequestCreate(webContext, toImpl(soupRequestManagerRef), toImpl(urlRef), toImpl(initiatingPageRef), requestID));
-    webkitWebContextReceivedURIRequest(webContext, request.get());
</del><ins>+    webkitWebContextStartLoadingCustomProtocol(WEBKIT_WEB_CONTEXT(clientInfo), customProtocolID, toImpl(requestRef));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-static void didFailToLoadURIRequest(WKSoupRequestManagerRef, uint64_t requestID, const void* clientInfo)
</del><ins>+static void stopLoading(WKSoupCustomProtocolRequestManagerRef, uint64_t customProtocolID, const void* clientInfo)
</ins><span class="cx"> {
</span><del>-    webkitWebContextDidFailToLoadURIRequest(WEBKIT_WEB_CONTEXT(clientInfo), requestID);
</del><ins>+    webkitWebContextStopLoadingCustomProtocol(WEBKIT_WEB_CONTEXT(clientInfo), customProtocolID);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void attachRequestManagerClientToContext(WebKitWebContext* webContext)
</span><span class="cx"> {
</span><del>-    WKSoupRequestManagerClientV0 wkRequestManagerClient = {
</del><ins>+    WKSoupCustomProtocolRequestManagerClientV0 wkRequestManagerClient = {
</ins><span class="cx">         {
</span><span class="cx">             0, // version
</span><span class="cx">             webContext // clientInfo
</span><span class="cx">         },
</span><del>-        didReceiveURIRequest,
-        didFailToLoadURIRequest
</del><ins>+        startLoading,
+        stopLoading
</ins><span class="cx">     };
</span><del>-    WKSoupRequestManagerSetClient(toAPI(webkitWebContextGetRequestManager(webContext)), &amp;wkRequestManagerClient.base);
</del><ins>+    WKSoupCustomProtocolRequestManagerSetClient(toAPI(webkitWebContextGetRequestManager(webContext)), &amp;wkRequestManagerClient.base);
</ins><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIgtkWebKitURISchemeRequestcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitURISchemeRequest.cpp (162834 => 162835)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitURISchemeRequest.cpp        2014-01-27 12:40:18 UTC (rev 162834)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitURISchemeRequest.cpp        2014-01-27 13:14:49 UTC (rev 162835)
</span><span class="lines">@@ -25,7 +25,6 @@
</span><span class="cx"> #include &quot;WebKitWebContextPrivate.h&quot;
</span><span class="cx"> #include &quot;WebKitWebView.h&quot;
</span><span class="cx"> #include &quot;WebPageProxy.h&quot;
</span><del>-#include &quot;WebSoupRequestManagerProxy.h&quot;
</del><span class="cx"> #include &lt;WebCore/GUniquePtrSoup.h&gt;
</span><span class="cx"> #include &lt;WebCore/ResourceError.h&gt;
</span><span class="cx"> #include &lt;libsoup/soup.h&gt;
</span><span class="lines">@@ -55,7 +54,7 @@
</span><span class="cx"> 
</span><span class="cx"> struct _WebKitURISchemeRequestPrivate {
</span><span class="cx">     WebKitWebContext* webContext;
</span><del>-    RefPtr&lt;WebSoupRequestManagerProxy&gt; webRequestManager;
</del><ins>+    RefPtr&lt;WebSoupCustomProtocolRequestManager&gt; webRequestManager;
</ins><span class="cx">     RefPtr&lt;WebPageProxy&gt; initiatingPage;
</span><span class="cx">     uint64_t requestID;
</span><span class="cx">     CString uri;
</span><span class="lines">@@ -75,22 +74,17 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-WebKitURISchemeRequest* webkitURISchemeRequestCreate(WebKitWebContext* webContext, WebSoupRequestManagerProxy* webRequestManager, API::URL* webURL, WebPageProxy* initiatingPage, uint64_t requestID)
</del><ins>+WebKitURISchemeRequest* webkitURISchemeRequestCreate(uint64_t requestID, WebKitWebContext* webContext, API::URLRequest* urlRequest, WebPageProxy* initiatingPage)
</ins><span class="cx"> {
</span><span class="cx">     WebKitURISchemeRequest* request = WEBKIT_URI_SCHEME_REQUEST(g_object_new(WEBKIT_TYPE_URI_SCHEME_REQUEST, NULL));
</span><span class="cx">     request-&gt;priv-&gt;webContext = webContext;
</span><del>-    request-&gt;priv-&gt;webRequestManager = webRequestManager;
-    request-&gt;priv-&gt;uri = webURL-&gt;string().utf8();
</del><ins>+    request-&gt;priv-&gt;webRequestManager = webkitWebContextGetRequestManager(webContext);
+    request-&gt;priv-&gt;uri = urlRequest-&gt;resourceRequest().url().string().utf8();
</ins><span class="cx">     request-&gt;priv-&gt;initiatingPage = initiatingPage;
</span><span class="cx">     request-&gt;priv-&gt;requestID = requestID;
</span><span class="cx">     return request;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-uint64_t webkitURISchemeRequestGetID(WebKitURISchemeRequest* request)
-{
-    return request-&gt;priv-&gt;requestID;
-}
-
</del><span class="cx"> void webkitURISchemeRequestCancel(WebKitURISchemeRequest* request)
</span><span class="cx"> {
</span><span class="cx">     if (request-&gt;priv-&gt;cancellable.get())
</span><span class="lines">@@ -158,7 +152,8 @@
</span><span class="cx"> {
</span><span class="cx">     g_return_val_if_fail(WEBKIT_IS_URI_SCHEME_REQUEST(request), 0);
</span><span class="cx"> 
</span><del>-    return WEBKIT_WEB_VIEW(request-&gt;priv-&gt;initiatingPage-&gt;viewWidget());
</del><ins>+    // FIXME: initiatingPage is now always null, we need to re-implement this somehow.
+    return request-&gt;priv-&gt;initiatingPage ? WEBKIT_WEB_VIEW(request-&gt;priv-&gt;initiatingPage-&gt;viewWidget()) : nullptr;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> static void webkitURISchemeRequestReadCallback(GInputStream* inputStream, GAsyncResult* result, WebKitURISchemeRequest* schemeRequest)
</span><span class="lines">@@ -174,21 +169,25 @@
</span><span class="cx">     WebKitURISchemeRequestPrivate* priv = request-&gt;priv;
</span><span class="cx">     RefPtr&lt;API::Data&gt; webData = API::Data::create(reinterpret_cast&lt;const unsigned char*&gt;(priv-&gt;readBuffer), bytesRead);
</span><span class="cx">     if (!priv-&gt;bytesRead) {
</span><del>-        // First chunk read. In case of empty reply an empty API::Data is sent to the WebProcess.
-        priv-&gt;webRequestManager-&gt;didHandleURIRequest(webData.get(), priv-&gt;streamLength, String::fromUTF8(priv-&gt;mimeType.data()), priv-&gt;requestID);
</del><ins>+        // First chunk read. In case of empty reply an empty API::Data is sent to the networking process.
+        WebCore::ResourceResponse response(WebCore::URL(WebCore::URL(), String::fromUTF8(priv-&gt;uri)), String::fromUTF8(priv-&gt;mimeType.data()),
+            priv-&gt;streamLength, emptyString(), emptyString());
+        priv-&gt;webRequestManager-&gt;didReceiveResponse(priv-&gt;requestID, response);
+        priv-&gt;webRequestManager-&gt;didLoadData(priv-&gt;requestID, webData.get());
</ins><span class="cx">     } else if (bytesRead || (!bytesRead &amp;&amp; !priv-&gt;streamLength)) {
</span><del>-        // Subsequent chunk read. We only send an empty API::Data to the WebProcess when stream length is unknown.
-        priv-&gt;webRequestManager-&gt;didReceiveURIRequestData(webData.get(), priv-&gt;requestID);
</del><ins>+        // Subsequent chunk read. We only send an empty API::Data to the networking process when stream length is unknown.
+        priv-&gt;webRequestManager-&gt;didLoadData(priv-&gt;requestID, webData.get());
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     if (!bytesRead) {
</span><del>-        webkitWebContextDidFinishURIRequest(request-&gt;priv-&gt;webContext, request-&gt;priv-&gt;requestID);
</del><ins>+        priv-&gt;webRequestManager-&gt;didFinishLoading(request-&gt;priv-&gt;requestID);
+        webkitWebContextDidFinishLoadingCustomProtocol(request-&gt;priv-&gt;webContext, request-&gt;priv-&gt;requestID);
</ins><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     priv-&gt;bytesRead += bytesRead;
</span><span class="cx">     g_input_stream_read_async(inputStream, priv-&gt;readBuffer, gReadBufferSize, G_PRIORITY_DEFAULT, priv-&gt;cancellable.get(),
</span><del>-                              reinterpret_cast&lt;GAsyncReadyCallback&gt;(webkitURISchemeRequestReadCallback), g_object_ref(request.get()));
</del><ins>+        reinterpret_cast&lt;GAsyncReadyCallback&gt;(webkitURISchemeRequestReadCallback), g_object_ref(request.get()));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><span class="lines">@@ -213,7 +212,7 @@
</span><span class="cx">     request-&gt;priv-&gt;bytesRead = 0;
</span><span class="cx">     request-&gt;priv-&gt;mimeType = mimeType;
</span><span class="cx">     g_input_stream_read_async(inputStream, request-&gt;priv-&gt;readBuffer, gReadBufferSize, G_PRIORITY_DEFAULT, request-&gt;priv-&gt;cancellable.get(),
</span><del>-                              reinterpret_cast&lt;GAsyncReadyCallback&gt;(webkitURISchemeRequestReadCallback), g_object_ref(request));
</del><ins>+        reinterpret_cast&lt;GAsyncReadyCallback&gt;(webkitURISchemeRequestReadCallback), g_object_ref(request));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><span class="lines">@@ -233,7 +232,6 @@
</span><span class="cx">     WebKitURISchemeRequestPrivate* priv = request-&gt;priv;
</span><span class="cx"> 
</span><span class="cx">     WebCore::ResourceError resourceError(g_quark_to_string(error-&gt;domain), error-&gt;code, priv-&gt;uri.data(), String::fromUTF8(error-&gt;message));
</span><del>-    priv-&gt;webRequestManager-&gt;didFailURIRequest(resourceError, priv-&gt;requestID);
-
-    webkitWebContextDidFinishURIRequest(priv-&gt;webContext, priv-&gt;requestID);
</del><ins>+    priv-&gt;webRequestManager-&gt;didFailWithError(priv-&gt;requestID, resourceError);
+    webkitWebContextDidFinishLoadingCustomProtocol(priv-&gt;webContext, priv-&gt;requestID);
</ins><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIgtkWebKitURISchemeRequestPrivateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitURISchemeRequestPrivate.h (162834 => 162835)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitURISchemeRequestPrivate.h        2014-01-27 12:40:18 UTC (rev 162834)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitURISchemeRequestPrivate.h        2014-01-27 13:14:49 UTC (rev 162835)
</span><span class="lines">@@ -24,8 +24,7 @@
</span><span class="cx"> #include &quot;WebKitURISchemeRequest.h&quot;
</span><span class="cx"> #include &quot;WebKitWebContext.h&quot;
</span><span class="cx"> 
</span><del>-WebKitURISchemeRequest* webkitURISchemeRequestCreate(WebKitWebContext*, WebKit::WebSoupRequestManagerProxy*, API::URL*, WebKit::WebPageProxy*, uint64_t requestID);
-uint64_t webkitURISchemeRequestGetID(WebKitURISchemeRequest*);
</del><ins>+WebKitURISchemeRequest* webkitURISchemeRequestCreate(uint64_t requestID, WebKitWebContext*, API::URLRequest*, WebKit::WebPageProxy*);
</ins><span class="cx"> void webkitURISchemeRequestCancel(WebKitURISchemeRequest*);
</span><span class="cx"> 
</span><span class="cx"> #endif // WebKitURISchemeRequestPrivate_h
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIgtkWebKitWebContextcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp (162834 => 162835)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp        2014-01-27 12:40:18 UTC (rev 162834)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp        2014-01-27 13:14:49 UTC (rev 162835)
</span><span class="lines">@@ -137,7 +137,7 @@
</span><span class="cx">     GRefPtr&lt;WebKitCookieManager&gt; cookieManager;
</span><span class="cx">     GRefPtr&lt;WebKitFaviconDatabase&gt; faviconDatabase;
</span><span class="cx">     GRefPtr&lt;WebKitSecurityManager&gt; securityManager;
</span><del>-    RefPtr&lt;WebSoupRequestManagerProxy&gt; requestManager;
</del><ins>+    RefPtr&lt;WebSoupCustomProtocolRequestManager&gt; requestManager;
</ins><span class="cx">     URISchemeHandlerMap uriSchemeHandlers;
</span><span class="cx">     URISchemeRequestMap uriSchemeRequests;
</span><span class="cx"> #if ENABLE(GEOLOCATION)
</span><span class="lines">@@ -226,7 +226,7 @@
</span><span class="cx">     WebKitWebContextPrivate* priv = webContext-&gt;priv;
</span><span class="cx"> 
</span><span class="cx">     priv-&gt;context = WebContext::create(WebCore::filenameToString(injectedBundleFilename().data()));
</span><del>-    priv-&gt;requestManager = webContext-&gt;priv-&gt;context-&gt;supplement&lt;WebSoupRequestManagerProxy&gt;();
</del><ins>+    priv-&gt;requestManager = webContext-&gt;priv-&gt;context-&gt;supplement&lt;WebSoupCustomProtocolRequestManager&gt;();
</ins><span class="cx">     priv-&gt;context-&gt;setCacheModel(CacheModelPrimaryWebBrowser);
</span><span class="cx"> #if ENABLE(NETWORK_PROCESS)
</span><span class="cx">     // FIXME: Temporary use an env var until we have API to set the process model. See https://bugs.webkit.org/show_bug.cgi?id=125463.
</span><span class="lines">@@ -642,7 +642,7 @@
</span><span class="cx"> 
</span><span class="cx">     RefPtr&lt;WebKitURISchemeHandler&gt; handler = adoptRef(new WebKitURISchemeHandler(callback, userData, destroyNotify));
</span><span class="cx">     context-&gt;priv-&gt;uriSchemeHandlers.set(String::fromUTF8(scheme), handler.get());
</span><del>-    context-&gt;priv-&gt;requestManager-&gt;registerURIScheme(String::fromUTF8(scheme));
</del><ins>+    context-&gt;priv-&gt;requestManager-&gt;registerSchemeForCustomProtocol(String::fromUTF8(scheme));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><span class="lines">@@ -933,34 +933,36 @@
</span><span class="cx">     return context-&gt;priv-&gt;context.get();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-WebSoupRequestManagerProxy* webkitWebContextGetRequestManager(WebKitWebContext* context)
</del><ins>+WebSoupCustomProtocolRequestManager* webkitWebContextGetRequestManager(WebKitWebContext* context)
</ins><span class="cx"> {
</span><span class="cx">     return context-&gt;priv-&gt;requestManager.get();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void webkitWebContextReceivedURIRequest(WebKitWebContext* context, WebKitURISchemeRequest* request)
</del><ins>+void webkitWebContextStartLoadingCustomProtocol(WebKitWebContext* context, uint64_t customProtocolID, API::URLRequest* urlRequest)
</ins><span class="cx"> {
</span><del>-    String scheme(String::fromUTF8(webkit_uri_scheme_request_get_scheme(request)));
</del><ins>+    // FIXME: We need to figure out how to get the initiating page.
+    GRefPtr&lt;WebKitURISchemeRequest&gt; request = adoptGRef(webkitURISchemeRequestCreate(customProtocolID, context, urlRequest, nullptr));
+    String scheme(String::fromUTF8(webkit_uri_scheme_request_get_scheme(request.get())));
</ins><span class="cx">     RefPtr&lt;WebKitURISchemeHandler&gt; handler = context-&gt;priv-&gt;uriSchemeHandlers.get(scheme);
</span><span class="cx">     ASSERT(handler.get());
</span><span class="cx">     if (!handler-&gt;hasCallback())
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    context-&gt;priv-&gt;uriSchemeRequests.set(webkitURISchemeRequestGetID(request), request);
-    handler-&gt;performCallback(request);
</del><ins>+    context-&gt;priv-&gt;uriSchemeRequests.set(customProtocolID, request.get());
+    handler-&gt;performCallback(request.get());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-void webkitWebContextDidFailToLoadURIRequest(WebKitWebContext* context, uint64_t requestID)
</del><ins>+void webkitWebContextStopLoadingCustomProtocol(WebKitWebContext* context, uint64_t customProtocolID)
</ins><span class="cx"> {
</span><del>-    GRefPtr&lt;WebKitURISchemeRequest&gt; request = context-&gt;priv-&gt;uriSchemeRequests.get(requestID);
</del><ins>+    GRefPtr&lt;WebKitURISchemeRequest&gt; request = context-&gt;priv-&gt;uriSchemeRequests.get(customProtocolID);
</ins><span class="cx">     if (!request.get())
</span><span class="cx">         return;
</span><span class="cx">     webkitURISchemeRequestCancel(request.get());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void webkitWebContextDidFinishURIRequest(WebKitWebContext* context, uint64_t requestID)
</del><ins>+void webkitWebContextDidFinishLoadingCustomProtocol(WebKitWebContext* context, uint64_t customProtocolID)
</ins><span class="cx"> {
</span><del>-    context-&gt;priv-&gt;uriSchemeRequests.remove(requestID);
</del><ins>+    context-&gt;priv-&gt;uriSchemeRequests.remove(customProtocolID);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void webkitWebContextCreatePageForWebView(WebKitWebContext* context, WebKitWebView* webView, WebKitWebViewGroup* webViewGroup)
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIgtkWebKitWebContextPrivateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContextPrivate.h (162834 => 162835)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContextPrivate.h        2014-01-27 12:40:18 UTC (rev 162834)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContextPrivate.h        2014-01-27 13:14:49 UTC (rev 162835)
</span><span class="lines">@@ -29,20 +29,19 @@
</span><span class="cx"> #include &quot;DownloadProxy.h&quot;
</span><span class="cx"> #include &quot;WebContext.h&quot;
</span><span class="cx"> #include &quot;WebKitPrivate.h&quot;
</span><del>-#include &quot;WebKitURISchemeRequest.h&quot;
</del><span class="cx"> #include &quot;WebKitWebContext.h&quot;
</span><span class="cx"> #include &quot;WebKitWebViewGroup.h&quot;
</span><del>-#include &quot;WebSoupRequestManagerProxy.h&quot;
</del><ins>+#include &quot;WebSoupCustomProtocolRequestManager.h&quot;
</ins><span class="cx"> 
</span><span class="cx"> WebKit::WebContext* webkitWebContextGetContext(WebKitWebContext*);
</span><span class="cx"> WebKitDownload* webkitWebContextGetOrCreateDownload(WebKit::DownloadProxy*);
</span><span class="cx"> WebKitDownload* webkitWebContextStartDownload(WebKitWebContext*, const char* uri, WebKit::WebPageProxy*);
</span><span class="cx"> void webkitWebContextRemoveDownload(WebKit::DownloadProxy*);
</span><span class="cx"> void webkitWebContextDownloadStarted(WebKitWebContext*, WebKitDownload*);
</span><del>-WebKit::WebSoupRequestManagerProxy* webkitWebContextGetRequestManager(WebKitWebContext*);
-void webkitWebContextReceivedURIRequest(WebKitWebContext*, WebKitURISchemeRequest*);
-void webkitWebContextDidFailToLoadURIRequest(WebKitWebContext*, uint64_t requestID);
-void webkitWebContextDidFinishURIRequest(WebKitWebContext*, uint64_t requestID);
</del><ins>+WebKit::WebSoupCustomProtocolRequestManager* webkitWebContextGetRequestManager(WebKitWebContext*);
+void webkitWebContextStartLoadingCustomProtocol(WebKitWebContext*, uint64_t customProtocolID, API::URLRequest*);
+void webkitWebContextStopLoadingCustomProtocol(WebKitWebContext*, uint64_t customProtocolID);
+void webkitWebContextDidFinishLoadingCustomProtocol(WebKitWebContext*, uint64_t customProtocolID);
</ins><span class="cx"> void webkitWebContextCreatePageForWebView(WebKitWebContext*, WebKitWebView*, WebKitWebViewGroup*);
</span><span class="cx"> void webkitWebContextWebViewDestroyed(WebKitWebContext*, WebKitWebView*);
</span><span class="cx"> WebKitWebView* webkitWebContextGetWebViewForPage(WebKitWebContext*, WebKit::WebPageProxy*);
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessgtkWebContextGtkcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/gtk/WebContextGtk.cpp (162834 => 162835)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/gtk/WebContextGtk.cpp        2014-01-27 12:40:18 UTC (rev 162834)
+++ trunk/Source/WebKit2/UIProcess/gtk/WebContextGtk.cpp        2014-01-27 13:14:49 UTC (rev 162835)
</span><span class="lines">@@ -33,6 +33,7 @@
</span><span class="cx"> #include &quot;WebInspectorServer.h&quot;
</span><span class="cx"> #include &quot;WebProcessCreationParameters.h&quot;
</span><span class="cx"> #include &quot;WebProcessMessages.h&quot;
</span><ins>+#include &quot;WebSoupCustomProtocolRequestManager.h&quot;
</ins><span class="cx"> #include &lt;WebCore/FileSystem.h&gt;
</span><span class="cx"> #include &lt;WebCore/NotImplemented.h&gt;
</span><span class="cx"> #include &lt;WebCore/SchemeRegistry.h&gt;
</span><span class="lines">@@ -43,12 +44,6 @@
</span><span class="cx"> #include &quot;NetworkProcessMessages.h&quot;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#if ENABLE(CUSTOM_PROTOCOLS)
-#include &quot;WebSoupCustomProtocolRequestManager.h&quot;
-#else
-#include &quot;WebSoupRequestManagerProxy.h&quot;
-#endif
-
</del><span class="cx"> namespace WebKit {
</span><span class="cx"> 
</span><span class="cx"> static void initInspectorServer()
</span><span class="lines">@@ -104,11 +99,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     if (!usesNetworkProcess()) {
</span><del>-#if ENABLE(CUSTOM_PROTOCOLS)
</del><span class="cx">         parameters.urlSchemesRegisteredForCustomProtocols = supplement&lt;WebSoupCustomProtocolRequestManager&gt;()-&gt;registeredSchemesForCustomProtocols();
</span><del>-#else
-        parameters.urlSchemesRegistered = supplement&lt;WebSoupRequestManagerProxy&gt;()-&gt;registeredURISchemes();
-#endif
</del><span class="cx"> 
</span><span class="cx">         supplement&lt;WebCookieManagerProxy&gt;()-&gt;getCookiePersistentStorage(parameters.cookiePersistentStoragePath, parameters.cookiePersistentStorageType);
</span><span class="cx">         parameters.cookieAcceptPolicy = m_initialHTTPCookieAcceptPolicy;
</span></span></pre></div>
<a id="trunkSourceWebKit2WebKit2Prefixh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebKit2Prefix.h (162834 => 162835)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebKit2Prefix.h        2014-01-27 12:40:18 UTC (rev 162834)
+++ trunk/Source/WebKit2/WebKit2Prefix.h        2014-01-27 13:14:49 UTC (rev 162835)
</span><span class="lines">@@ -70,6 +70,7 @@
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(GTK)
</span><span class="cx"> #define ENABLE_NETWORK_PROCESS 1
</span><ins>+#define ENABLE_CUSTOM_PROTOCOLS 1
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> /* When C++ exceptions are disabled, the C++ library defines |try| and |catch|
</span></span></pre></div>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (162834 => 162835)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog        2014-01-27 12:40:18 UTC (rev 162834)
+++ trunk/Tools/ChangeLog        2014-01-27 13:14:49 UTC (rev 162835)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2014-01-27  Carlos Garcia Campos  &lt;cgarcia@igalia.com&gt;
+
+        [GTK] Implement custom URI schemes with CustomProtocols
+        https://bugs.webkit.org/show_bug.cgi?id=127091
+
+        Reviewed by Gustavo Noronha Silva.
+
+        Temporarily disable the WebKitWebView check until we figure out
+        how to implement it with CustomProtocols.
+
+        * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:
+
</ins><span class="cx"> 2014-01-26  Alexey Proskuryakov  &lt;ap@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         REGRESSION(r127412): http/tests/misc/link-rel-icon-beforeload.html is broken.
</span></span></pre></div>
<a id="trunkToolsTestWebKitAPITestsWebKit2GtkTestWebKitWebContextcpp"></a>
<div class="modfile"><h4>Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp (162834 => 162835)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp        2014-01-27 12:40:18 UTC (rev 162834)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp        2014-01-27 13:14:49 UTC (rev 162835)
</span><span class="lines">@@ -146,7 +146,8 @@
</span><span class="cx">         test-&gt;m_uriSchemeRequest = request;
</span><span class="cx">         test-&gt;assertObjectIsDeletedWhenTestFinishes(G_OBJECT(request));
</span><span class="cx"> 
</span><del>-        g_assert(webkit_uri_scheme_request_get_web_view(request) == test-&gt;m_webView);
</del><ins>+        // FIXME: webkit_uri_scheme_request_get_web_view doesn't work with custom protocols.
+        // g_assert(webkit_uri_scheme_request_get_web_view(request) == test-&gt;m_webView);
</ins><span class="cx"> 
</span><span class="cx">         GRefPtr&lt;GInputStream&gt; inputStream = adoptGRef(g_memory_input_stream_new());
</span><span class="cx">         test-&gt;assertObjectIsDeletedWhenTestFinishes(G_OBJECT(inputStream.get()));
</span></span></pre>
</div>
</div>

</body>
</html>