<!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>[162190] trunk/Source/WebKit2</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/162190">162190</a></dd>
<dt>Author</dt> <dd>carlosgc@webkit.org</dd>
<dt>Date</dt> <dd>2014-01-16 23:50:46 -0800 (Thu, 16 Jan 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>[SOUP] Add stubs for CustomProtocol classes
https://bugs.webkit.org/show_bug.cgi?id=126343

Reviewed by Gustavo Noronha Silva.

* CMakeLists.txt:
* GNUmakefile.am:
* GNUmakefile.list.am:
* PlatformGTK.cmake:
* Shared/Network/CustomProtocols/soup/CustomProtocolManagerSoup.cpp: Added.
(WebKit::generateCustomProtocolID):
(WebKit::WebSoupRequestAsyncData::WebSoupRequestAsyncData):
(WebKit::WebSoupRequestAsyncData::~WebSoupRequestAsyncData):
(WebKit::WebSoupRequestAsyncData::requestFailed):
(WebKit::WebSoupRequestAsyncData::releaseTask):
(WebKit::CustomProtocolManager::supplementName):
(WebKit::CustomProtocolManager::CustomProtocolManager):
(WebKit::CustomProtocolManager::initializeConnection):
(WebKit::CustomProtocolManager::initialize):
* Shared/Network/NetworkProcessCreationParameters.cpp:
(WebKit::NetworkProcessCreationParameters::encode): Move
urlSchemesRegisteredForCustomProtocols encoding out of platform
ifdefs, since it's already guarded by ENABLE(CUSTOM_PROTOCOLS).
(WebKit::NetworkProcessCreationParameters::decode): Ditto.
* Shared/Network/NetworkProcessCreationParameters.h: Ditto.
* UIProcess/Network/CustomProtocols/soup/CustomProtocolManagerProxySoup.cpp: Added.
(WebKit::CustomProtocolManagerProxy::CustomProtocolManagerProxy):
(WebKit::CustomProtocolManagerProxy::startLoading):
(WebKit::CustomProtocolManagerProxy::stopLoading):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2CMakeListstxt">trunk/Source/WebKit2/CMakeLists.txt</a></li>
<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="#trunkSourceWebKit2SharedNetworkNetworkProcessCreationParameterscpp">trunk/Source/WebKit2/Shared/Network/NetworkProcessCreationParameters.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedNetworkNetworkProcessCreationParametersh">trunk/Source/WebKit2/Shared/Network/NetworkProcessCreationParameters.h</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>trunk/Source/WebKit2/Shared/Network/CustomProtocols/soup/</li>
<li><a href="#trunkSourceWebKit2SharedNetworkCustomProtocolssoupCustomProtocolManagerSoupcpp">trunk/Source/WebKit2/Shared/Network/CustomProtocols/soup/CustomProtocolManagerSoup.cpp</a></li>
<li>trunk/Source/WebKit2/UIProcess/Network/CustomProtocols/soup/</li>
<li><a href="#trunkSourceWebKit2UIProcessNetworkCustomProtocolssoupCustomProtocolManagerProxySoupcpp">trunk/Source/WebKit2/UIProcess/Network/CustomProtocols/soup/CustomProtocolManagerProxySoup.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebKit2CMakeListstxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/CMakeLists.txt (162189 => 162190)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/CMakeLists.txt        2014-01-17 07:31:30 UTC (rev 162189)
+++ trunk/Source/WebKit2/CMakeLists.txt        2014-01-17 07:50:46 UTC (rev 162190)
</span><span class="lines">@@ -31,6 +31,7 @@
</span><span class="cx">     &quot;${WEBKIT2_DIR}/UIProcess/InspectorServer&quot;
</span><span class="cx">     &quot;${WEBKIT2_DIR}/UIProcess/Launcher&quot;
</span><span class="cx">     &quot;${WEBKIT2_DIR}/UIProcess/Network&quot;
</span><ins>+    &quot;${WEBKIT2_DIR}/UIProcess/Network/CustomProtocols&quot;
</ins><span class="cx">     &quot;${WEBKIT2_DIR}/UIProcess/Notifications&quot;
</span><span class="cx">     &quot;${WEBKIT2_DIR}/UIProcess/Plugins&quot;
</span><span class="cx">     &quot;${WEBKIT2_DIR}/UIProcess/Storage&quot;
</span><span class="lines">@@ -589,6 +590,8 @@
</span><span class="cx"> 
</span><span class="cx">     Shared/Plugins/NPObjectMessageReceiver.messages.in
</span><span class="cx"> 
</span><ins>+    Shared/Network/CustomProtocols/CustomProtocolManager.messages.in
+
</ins><span class="cx">     UIProcess/DrawingAreaProxy.messages.in
</span><span class="cx">     UIProcess/WebApplicationCacheManagerProxy.messages.in
</span><span class="cx">     UIProcess/WebBatteryManagerProxy.messages.in
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (162189 => 162190)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2014-01-17 07:31:30 UTC (rev 162189)
+++ trunk/Source/WebKit2/ChangeLog        2014-01-17 07:50:46 UTC (rev 162190)
</span><span class="lines">@@ -1,3 +1,35 @@
</span><ins>+2014-01-16  Carlos Garcia Campos  &lt;cgarcia@igalia.com&gt;
+
+        [SOUP] Add stubs for CustomProtocol classes
+        https://bugs.webkit.org/show_bug.cgi?id=126343
+
+        Reviewed by Gustavo Noronha Silva.
+
+        * CMakeLists.txt:
+        * GNUmakefile.am:
+        * GNUmakefile.list.am:
+        * PlatformGTK.cmake:
+        * Shared/Network/CustomProtocols/soup/CustomProtocolManagerSoup.cpp: Added.
+        (WebKit::generateCustomProtocolID):
+        (WebKit::WebSoupRequestAsyncData::WebSoupRequestAsyncData):
+        (WebKit::WebSoupRequestAsyncData::~WebSoupRequestAsyncData):
+        (WebKit::WebSoupRequestAsyncData::requestFailed):
+        (WebKit::WebSoupRequestAsyncData::releaseTask):
+        (WebKit::CustomProtocolManager::supplementName):
+        (WebKit::CustomProtocolManager::CustomProtocolManager):
+        (WebKit::CustomProtocolManager::initializeConnection):
+        (WebKit::CustomProtocolManager::initialize):
+        * Shared/Network/NetworkProcessCreationParameters.cpp:
+        (WebKit::NetworkProcessCreationParameters::encode): Move
+        urlSchemesRegisteredForCustomProtocols encoding out of platform
+        ifdefs, since it's already guarded by ENABLE(CUSTOM_PROTOCOLS).
+        (WebKit::NetworkProcessCreationParameters::decode): Ditto.
+        * Shared/Network/NetworkProcessCreationParameters.h: Ditto.
+        * UIProcess/Network/CustomProtocols/soup/CustomProtocolManagerProxySoup.cpp: Added.
+        (WebKit::CustomProtocolManagerProxy::CustomProtocolManagerProxy):
+        (WebKit::CustomProtocolManagerProxy::startLoading):
+        (WebKit::CustomProtocolManagerProxy::stopLoading):
+
</ins><span class="cx"> 2014-01-16  Tim Horton  &lt;timothy_horton@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         On iOS, zooming in with a TileController-backed main frame makes hundreds of tiles
</span></span></pre></div>
<a id="trunkSourceWebKit2GNUmakefileam"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/GNUmakefile.am (162189 => 162190)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/GNUmakefile.am        2014-01-17 07:31:30 UTC (rev 162189)
+++ trunk/Source/WebKit2/GNUmakefile.am        2014-01-17 07:50:46 UTC (rev 162190)
</span><span class="lines">@@ -121,6 +121,7 @@
</span><span class="cx">         -I$(srcdir)/Source/WebKit2/UIProcess/Launcher \
</span><span class="cx">         -I$(srcdir)/Source/WebKit2/UIProcess/Launcher/gtk \
</span><span class="cx">         -I$(srcdir)/Source/WebKit2/UIProcess/Network \
</span><ins>+        -I$(srcdir)/Source/WebKit2/UIProcess/Network/CustomProtocols \
</ins><span class="cx">         -I$(srcdir)/Source/WebKit2/UIProcess/Notifications \
</span><span class="cx">         -I$(srcdir)/Source/WebKit2/UIProcess/Plugins \
</span><span class="cx">         -I$(srcdir)/Source/WebKit2/UIProcess/Plugins/unix \
</span><span class="lines">@@ -414,6 +415,7 @@
</span><span class="cx">         $(WebKit2)/PluginProcess \
</span><span class="cx">         $(WebKit2)/Shared \
</span><span class="cx">         $(WebKit2)/Shared/Authentication \
</span><ins>+        $(WebKit2)/Shared/Network/CustomProtocols \
</ins><span class="cx">         $(WebKit2)/Shared/Plugins \
</span><span class="cx">         $(WebKit2)/UIProcess \
</span><span class="cx">         $(WebKit2)/UIProcess/ApplicationCache \
</span></span></pre></div>
<a id="trunkSourceWebKit2GNUmakefilelistam"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/GNUmakefile.list.am (162189 => 162190)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/GNUmakefile.list.am        2014-01-17 07:31:30 UTC (rev 162189)
+++ trunk/Source/WebKit2/GNUmakefile.list.am        2014-01-17 07:50:46 UTC (rev 162190)
</span><span class="lines">@@ -54,6 +54,8 @@
</span><span class="cx">         DerivedSources/WebKit2/AuthenticationManagerMessages.h \
</span><span class="cx">         DerivedSources/WebKit2/CustomProtocolManagerProxyMessageReceiver.cpp \
</span><span class="cx">         DerivedSources/WebKit2/CustomProtocolManagerProxyMessages.h \
</span><ins>+        DerivedSources/WebKit2/CustomProtocolManagerMessageReceiver.cpp \
+        DerivedSources/WebKit2/CustomProtocolManagerMessages.h \
</ins><span class="cx">         DerivedSources/WebKit2/DownloadProxyMessageReceiver.cpp \
</span><span class="cx">         DerivedSources/WebKit2/DownloadProxyMessages.h \
</span><span class="cx">         DerivedSources/WebKit2/DrawingAreaMessageReceiver.cpp \
</span><span class="lines">@@ -401,6 +403,7 @@
</span><span class="cx">         Source/WebKit2/Shared/NativeWebMouseEvent.h \
</span><span class="cx">         Source/WebKit2/Shared/NativeWebWheelEvent.h \
</span><span class="cx">         Source/WebKit2/Shared/Network/CustomProtocols/CustomProtocolManager.h \
</span><ins>+        Source/WebKit2/Shared/Network/CustomProtocols/soup/CustomProtocolManagerSoup.cpp \
</ins><span class="cx">         Source/WebKit2/Shared/Network/NetworkProcessCreationParameters.cpp \
</span><span class="cx">         Source/WebKit2/Shared/Network/NetworkProcessCreationParameters.h \
</span><span class="cx">         Source/WebKit2/Shared/Network/NetworkProcessSupplement.h \
</span><span class="lines">@@ -832,6 +835,8 @@
</span><span class="cx">         Source/WebKit2/UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp \
</span><span class="cx">         Source/WebKit2/UIProcess/Launcher/ProcessLauncher.cpp \
</span><span class="cx">         Source/WebKit2/UIProcess/Launcher/ProcessLauncher.h \
</span><ins>+        Source/WebKit2/UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h \
+        Source/WebKit2/UIProcess/Network/CustomProtocols/soup/CustomProtocolManagerProxySoup.cpp \
</ins><span class="cx">         Source/WebKit2/UIProcess/Network/NetworkProcessProxy.cpp \
</span><span class="cx">         Source/WebKit2/UIProcess/Network/NetworkProcessProxy.h \
</span><span class="cx">         Source/WebKit2/UIProcess/Network/soup/NetworkProcessProxySoup.cpp \
</span></span></pre></div>
<a id="trunkSourceWebKit2PlatformGTKcmake"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/PlatformGTK.cmake (162189 => 162190)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/PlatformGTK.cmake        2014-01-17 07:31:30 UTC (rev 162189)
+++ trunk/Source/WebKit2/PlatformGTK.cmake        2014-01-17 07:50:46 UTC (rev 162190)
</span><span class="lines">@@ -37,6 +37,8 @@
</span><span class="cx"> 
</span><span class="cx">     Shared/Downloads/soup/DownloadSoup.cpp
</span><span class="cx"> 
</span><ins>+    Shared/Network/CustomProtocols/soup/CustomProtocolManagerSoup.cpp
+
</ins><span class="cx">     Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp
</span><span class="cx"> 
</span><span class="cx">     Shared/cairo/ShareableBitmapCairo.cpp
</span><span class="lines">@@ -233,6 +235,8 @@
</span><span class="cx"> 
</span><span class="cx">     UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp
</span><span class="cx"> 
</span><ins>+    UIProcess/Network/CustomProtocols/soup/CustomProtocolManagerProxySoup.cpp
+
</ins><span class="cx">     UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp
</span><span class="cx">     UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedNetworkCustomProtocolssoupCustomProtocolManagerSoupcpp"></a>
<div class="addfile"><h4>Added: trunk/Source/WebKit2/Shared/Network/CustomProtocols/soup/CustomProtocolManagerSoup.cpp (0 => 162190)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/Network/CustomProtocols/soup/CustomProtocolManagerSoup.cpp                                (rev 0)
+++ trunk/Source/WebKit2/Shared/Network/CustomProtocols/soup/CustomProtocolManagerSoup.cpp        2014-01-17 07:50:46 UTC (rev 162190)
</span><span class="lines">@@ -0,0 +1,106 @@
</span><ins>+/*
+ * Copyright (C) 2013 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 &quot;config.h&quot;
+#include &quot;CustomProtocolManager.h&quot;
+
+#if ENABLE(CUSTOM_PROTOCOLS)
+
+#include &quot;ChildProcess.h&quot;
+#include &quot;CustomProtocolManagerMessages.h&quot;
+#include &quot;CustomProtocolManagerProxyMessages.h&quot;
+#include &quot;WebCoreArgumentCoders.h&quot;
+#include &quot;WebProcessCreationParameters.h&quot;
+#include &lt;WebCore/NotImplemented.h&gt;
+#include &lt;WebCore/ResourceError.h&gt;
+#include &lt;WebCore/ResourceRequest.h&gt;
+#include &lt;WebCore/ResourceResponse.h&gt;
+#include &lt;WebCore/URL.h&gt;
+
+#if ENABLE(NETWORK_PROCESS)
+#include &quot;NetworkProcessCreationParameters.h&quot;
+#endif
+
+namespace WebKit {
+
+const char* CustomProtocolManager::supplementName()
+{
+    return &quot;CustomProtocolManager&quot;;
+}
+
+CustomProtocolManager::CustomProtocolManager(ChildProcess* childProcess)
+    : m_childProcess(childProcess)
+    , m_messageQueue(WorkQueue::create(&quot;com.apple.WebKit.CustomProtocolManager&quot;))
+{
+}
+
+void CustomProtocolManager::initializeConnection(IPC::Connection* connection)
+{
+    connection-&gt;addWorkQueueMessageReceiver(Messages::CustomProtocolManager::messageReceiverName(), m_messageQueue.get(), this);
+}
+
+void CustomProtocolManager::initialize(const WebProcessCreationParameters&amp;)
+{
+}
+
+#if ENABLE(NETWORK_PROCESS)
+void CustomProtocolManager::initialize(const NetworkProcessCreationParameters&amp;)
+{
+}
+#endif
+
+void CustomProtocolManager::registerScheme(const String&amp;)
+{
+    notImplemented();
+}
+
+void CustomProtocolManager::unregisterScheme(const String&amp;)
+{
+    notImplemented();
+}
+
+bool CustomProtocolManager::supportsScheme(const String&amp;)
+{
+    notImplemented();
+    return false;
+}
+
+void CustomProtocolManager::didFailWithError(uint64_t, const WebCore::ResourceError&amp;)
+{
+    notImplemented();
+}
+
+void CustomProtocolManager::didLoadData(uint64_t, const IPC::DataReference&amp;)
+{
+    notImplemented();
+}
+
+void CustomProtocolManager::didReceiveResponse(uint64_t, const WebCore::ResourceResponse&amp;, uint32_t)
+{
+    notImplemented();
+}
+
+void CustomProtocolManager::didFinishLoading(uint64_t)
+{
+    notImplemented();
+}
+
+} // namespace WebKit
+
+#endif // ENABLE(CUSTOM_PROTOCOLS)
</ins></span></pre></div>
<a id="trunkSourceWebKit2SharedNetworkNetworkProcessCreationParameterscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/Network/NetworkProcessCreationParameters.cpp (162189 => 162190)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/Network/NetworkProcessCreationParameters.cpp        2014-01-17 07:31:30 UTC (rev 162189)
+++ trunk/Source/WebKit2/Shared/Network/NetworkProcessCreationParameters.cpp        2014-01-17 07:50:46 UTC (rev 162190)
</span><span class="lines">@@ -43,14 +43,14 @@
</span><span class="cx">     encoder &lt;&lt; diskCacheDirectory;
</span><span class="cx">     encoder &lt;&lt; diskCacheDirectoryExtensionHandle;
</span><span class="cx">     encoder &lt;&lt; shouldUseTestingNetworkSession;
</span><ins>+#if ENABLE(CUSTOM_PROTOCOLS)
+    encoder &lt;&lt; urlSchemesRegisteredForCustomProtocols;
+#endif
</ins><span class="cx"> #if PLATFORM(MAC)
</span><span class="cx">     encoder &lt;&lt; parentProcessName;
</span><span class="cx">     encoder &lt;&lt; uiProcessBundleIdentifier;
</span><span class="cx">     encoder &lt;&lt; nsURLCacheMemoryCapacity;
</span><span class="cx">     encoder &lt;&lt; nsURLCacheDiskCapacity;
</span><del>-#if ENABLE(CUSTOM_PROTOCOLS)
-    encoder &lt;&lt; urlSchemesRegisteredForCustomProtocols;
-#endif
</del><span class="cx">     encoder &lt;&lt; httpProxy;
</span><span class="cx">     encoder &lt;&lt; httpsProxy;
</span><span class="cx"> #endif
</span><span class="lines">@@ -75,6 +75,10 @@
</span><span class="cx">         return false;
</span><span class="cx">     if (!decoder.decode(result.shouldUseTestingNetworkSession))
</span><span class="cx">         return false;
</span><ins>+#if ENABLE(CUSTOM_PROTOCOLS)
+    if (!decoder.decode(result.urlSchemesRegisteredForCustomProtocols))
+        return false;
+#endif
</ins><span class="cx"> #if PLATFORM(MAC)
</span><span class="cx">     if (!decoder.decode(result.parentProcessName))
</span><span class="cx">         return false;
</span><span class="lines">@@ -84,10 +88,6 @@
</span><span class="cx">         return false;
</span><span class="cx">     if (!decoder.decode(result.nsURLCacheDiskCapacity))
</span><span class="cx">         return false;
</span><del>-#if ENABLE(CUSTOM_PROTOCOLS)
-    if (!decoder.decode(result.urlSchemesRegisteredForCustomProtocols))
-        return false;
-#endif
</del><span class="cx">     if (!decoder.decode(result.httpProxy))
</span><span class="cx">         return false;
</span><span class="cx">     if (!decoder.decode(result.httpsProxy))
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedNetworkNetworkProcessCreationParametersh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/Network/NetworkProcessCreationParameters.h (162189 => 162190)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/Network/NetworkProcessCreationParameters.h        2014-01-17 07:31:30 UTC (rev 162189)
+++ trunk/Source/WebKit2/Shared/Network/NetworkProcessCreationParameters.h        2014-01-17 07:50:46 UTC (rev 162190)
</span><span class="lines">@@ -58,16 +58,16 @@
</span><span class="cx"> 
</span><span class="cx">     bool shouldUseTestingNetworkSession;
</span><span class="cx"> 
</span><ins>+#if ENABLE(CUSTOM_PROTOCOLS)
+    Vector&lt;String&gt; urlSchemesRegisteredForCustomProtocols;
+#endif
+
</ins><span class="cx"> #if PLATFORM(MAC)
</span><span class="cx">     String parentProcessName;
</span><span class="cx">     String uiProcessBundleIdentifier;
</span><span class="cx">     uint64_t nsURLCacheMemoryCapacity;
</span><span class="cx">     uint64_t nsURLCacheDiskCapacity;
</span><span class="cx"> 
</span><del>-#if ENABLE(CUSTOM_PROTOCOLS)
-    Vector&lt;String&gt; urlSchemesRegisteredForCustomProtocols;
-#endif
-
</del><span class="cx">     String httpProxy;
</span><span class="cx">     String httpsProxy;
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessNetworkCustomProtocolssoupCustomProtocolManagerProxySoupcpp"></a>
<div class="addfile"><h4>Added: trunk/Source/WebKit2/UIProcess/Network/CustomProtocols/soup/CustomProtocolManagerProxySoup.cpp (0 => 162190)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Network/CustomProtocols/soup/CustomProtocolManagerProxySoup.cpp                                (rev 0)
+++ trunk/Source/WebKit2/UIProcess/Network/CustomProtocols/soup/CustomProtocolManagerProxySoup.cpp        2014-01-17 07:50:46 UTC (rev 162190)
</span><span class="lines">@@ -0,0 +1,52 @@
</span><ins>+/*
+ * Copyright (C) 2013 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 &quot;config.h&quot;
+#include &quot;CustomProtocolManagerProxy.h&quot;
+
+#if ENABLE(CUSTOM_PROTOCOLS)
+
+#include &quot;ChildProcessProxy.h&quot;
+#include &quot;CustomProtocolManagerMessages.h&quot;
+#include &quot;CustomProtocolManagerProxyMessages.h&quot;
+#include &lt;WebCore/NotImplemented.h&gt;
+#include &lt;WebCore/ResourceRequest.h&gt;
+
+namespace WebKit {
+
+CustomProtocolManagerProxy::CustomProtocolManagerProxy(ChildProcessProxy* childProcessProxy)
+    : m_childProcessProxy(childProcessProxy)
+{
+    ASSERT(m_childProcessProxy);
+    m_childProcessProxy-&gt;addMessageReceiver(Messages::CustomProtocolManagerProxy::messageReceiverName(), *this);
+}
+
+void CustomProtocolManagerProxy::startLoading(uint64_t, const WebCore::ResourceRequest&amp;)
+{
+    notImplemented();
+}
+
+void CustomProtocolManagerProxy::stopLoading(uint64_t)
+{
+    notImplemented();
+}
+
+} // namespace WebKit
+
+#endif // ENABLE(CUSTOM_PROTOCOLS)
</ins></span></pre>
</div>
</div>

</body>
</html>