<!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>[210887] 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/210887">210887</a></dd>
<dt>Author</dt> <dd>achristensen@apple.com</dd>
<dt>Date</dt> <dd>2017-01-18 14:43:22 -0800 (Wed, 18 Jan 2017)</dd>
</dl>

<h3>Log Message</h3>
<pre>Modernize DelayedReply IPC code
https://bugs.webkit.org/show_bug.cgi?id=167176

Reviewed by Brady Eidson.

* NetworkProcess/NetworkConnectionToWebProcess.cpp:
(WebKit::NetworkConnectionToWebProcess::performSynchronousLoad):
* NetworkProcess/NetworkConnectionToWebProcess.h:
* Platform/IPC/HandleMessage.h:
(IPC::callMemberFunctionImpl):
(IPC::callMemberFunction):
(IPC::handleMessageDelayed):
* Scripts/webkit/messages.py:
(message_to_struct_declaration):
(generate_message_handler):
* UIProcess/Databases/DatabaseProcessProxy.cpp:
(WebKit::DatabaseProcessProxy::getDatabaseProcessConnection):
* UIProcess/Databases/DatabaseProcessProxy.h:
* UIProcess/Network/NetworkProcessProxy.cpp:
(WebKit::NetworkProcessProxy::getNetworkProcessConnection):
(WebKit::NetworkProcessProxy::networkProcessCrashedOrFailedToLaunch):
* UIProcess/Network/NetworkProcessProxy.h:
* UIProcess/Plugins/PluginProcessManager.cpp:
(WebKit::PluginProcessManager::getPluginProcessConnection):
* UIProcess/Plugins/PluginProcessManager.h:
* UIProcess/Plugins/PluginProcessProxy.cpp:
(WebKit::PluginProcessProxy::getPluginProcessConnection):
* UIProcess/Plugins/PluginProcessProxy.h:
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::runJavaScriptAlert):
(WebKit::WebPageProxy::runJavaScriptConfirm):
* UIProcess/WebPageProxy.h:
* UIProcess/WebProcessPool.cpp:
(WebKit::WebProcessPool::getNetworkProcessConnection):
(WebKit::WebProcessPool::getDatabaseProcessConnection):
* UIProcess/WebProcessPool.h:
* UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::getPluginProcessConnection):
(WebKit::WebProcessProxy::getNetworkProcessConnection):
(WebKit::WebProcessProxy::getDatabaseProcessConnection):
* UIProcess/WebProcessProxy.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2NetworkProcessNetworkConnectionToWebProcesscpp">trunk/Source/WebKit2/NetworkProcess/NetworkConnectionToWebProcess.cpp</a></li>
<li><a href="#trunkSourceWebKit2NetworkProcessNetworkConnectionToWebProcessh">trunk/Source/WebKit2/NetworkProcess/NetworkConnectionToWebProcess.h</a></li>
<li><a href="#trunkSourceWebKit2PlatformIPCHandleMessageh">trunk/Source/WebKit2/Platform/IPC/HandleMessage.h</a></li>
<li><a href="#trunkSourceWebKit2Scriptswebkitmessagespy">trunk/Source/WebKit2/Scripts/webkit/messages.py</a></li>
<li><a href="#trunkSourceWebKit2UIProcessDatabasesDatabaseProcessProxycpp">trunk/Source/WebKit2/UIProcess/Databases/DatabaseProcessProxy.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessDatabasesDatabaseProcessProxyh">trunk/Source/WebKit2/UIProcess/Databases/DatabaseProcessProxy.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessNetworkNetworkProcessProxycpp">trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessNetworkNetworkProcessProxyh">trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessPluginsPluginProcessManagercpp">trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessManager.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessPluginsPluginProcessManagerh">trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessManager.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessPluginsPluginProcessProxycpp">trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessProxy.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessPluginsPluginProcessProxyh">trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessProxy.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebPageProxycpp">trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebPageProxyh">trunk/Source/WebKit2/UIProcess/WebPageProxy.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebProcessPoolcpp">trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebProcessPoolh">trunk/Source/WebKit2/UIProcess/WebProcessPool.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebProcessProxycpp">trunk/Source/WebKit2/UIProcess/WebProcessProxy.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebProcessProxyh">trunk/Source/WebKit2/UIProcess/WebProcessProxy.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (210886 => 210887)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2017-01-18 22:29:31 UTC (rev 210886)
+++ trunk/Source/WebKit2/ChangeLog        2017-01-18 22:43:22 UTC (rev 210887)
</span><span class="lines">@@ -1,5 +1,49 @@
</span><span class="cx"> 2017-01-18  Alex Christensen  &lt;achristensen@webkit.org&gt;
</span><span class="cx"> 
</span><ins>+        Modernize DelayedReply IPC code
+        https://bugs.webkit.org/show_bug.cgi?id=167176
+
+        Reviewed by Brady Eidson.
+
+        * NetworkProcess/NetworkConnectionToWebProcess.cpp:
+        (WebKit::NetworkConnectionToWebProcess::performSynchronousLoad):
+        * NetworkProcess/NetworkConnectionToWebProcess.h:
+        * Platform/IPC/HandleMessage.h:
+        (IPC::callMemberFunctionImpl):
+        (IPC::callMemberFunction):
+        (IPC::handleMessageDelayed):
+        * Scripts/webkit/messages.py:
+        (message_to_struct_declaration):
+        (generate_message_handler):
+        * UIProcess/Databases/DatabaseProcessProxy.cpp:
+        (WebKit::DatabaseProcessProxy::getDatabaseProcessConnection):
+        * UIProcess/Databases/DatabaseProcessProxy.h:
+        * UIProcess/Network/NetworkProcessProxy.cpp:
+        (WebKit::NetworkProcessProxy::getNetworkProcessConnection):
+        (WebKit::NetworkProcessProxy::networkProcessCrashedOrFailedToLaunch):
+        * UIProcess/Network/NetworkProcessProxy.h:
+        * UIProcess/Plugins/PluginProcessManager.cpp:
+        (WebKit::PluginProcessManager::getPluginProcessConnection):
+        * UIProcess/Plugins/PluginProcessManager.h:
+        * UIProcess/Plugins/PluginProcessProxy.cpp:
+        (WebKit::PluginProcessProxy::getPluginProcessConnection):
+        * UIProcess/Plugins/PluginProcessProxy.h:
+        * UIProcess/WebPageProxy.cpp:
+        (WebKit::WebPageProxy::runJavaScriptAlert):
+        (WebKit::WebPageProxy::runJavaScriptConfirm):
+        * UIProcess/WebPageProxy.h:
+        * UIProcess/WebProcessPool.cpp:
+        (WebKit::WebProcessPool::getNetworkProcessConnection):
+        (WebKit::WebProcessPool::getDatabaseProcessConnection):
+        * UIProcess/WebProcessPool.h:
+        * UIProcess/WebProcessProxy.cpp:
+        (WebKit::WebProcessProxy::getPluginProcessConnection):
+        (WebKit::WebProcessProxy::getNetworkProcessConnection):
+        (WebKit::WebProcessProxy::getDatabaseProcessConnection):
+        * UIProcess/WebProcessProxy.h:
+
+2017-01-18  Alex Christensen  &lt;achristensen@webkit.org&gt;
+
</ins><span class="cx">         Fix CMake build.
</span><span class="cx"> 
</span><span class="cx">         * PlatformMac.cmake:
</span></span></pre></div>
<a id="trunkSourceWebKit2NetworkProcessNetworkConnectionToWebProcesscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/NetworkProcess/NetworkConnectionToWebProcess.cpp (210886 => 210887)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/NetworkProcess/NetworkConnectionToWebProcess.cpp        2017-01-18 22:29:31 UTC (rev 210886)
+++ trunk/Source/WebKit2/NetworkProcess/NetworkConnectionToWebProcess.cpp        2017-01-18 22:43:22 UTC (rev 210887)
</span><span class="lines">@@ -129,7 +129,7 @@
</span><span class="cx">     loader-&gt;start();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void NetworkConnectionToWebProcess::performSynchronousLoad(const NetworkResourceLoadParameters&amp; loadParameters, RefPtr&lt;Messages::NetworkConnectionToWebProcess::PerformSynchronousLoad::DelayedReply&gt;&amp;&amp; reply)
</del><ins>+void NetworkConnectionToWebProcess::performSynchronousLoad(const NetworkResourceLoadParameters&amp; loadParameters, Ref&lt;Messages::NetworkConnectionToWebProcess::PerformSynchronousLoad::DelayedReply&gt;&amp;&amp; reply)
</ins><span class="cx"> {
</span><span class="cx">     auto loader = NetworkResourceLoader::create(loadParameters, *this, WTFMove(reply));
</span><span class="cx">     m_networkResourceLoaders.add(loadParameters.identifier, loader.ptr());
</span></span></pre></div>
<a id="trunkSourceWebKit2NetworkProcessNetworkConnectionToWebProcessh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/NetworkProcess/NetworkConnectionToWebProcess.h (210886 => 210887)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/NetworkProcess/NetworkConnectionToWebProcess.h        2017-01-18 22:29:31 UTC (rev 210886)
+++ trunk/Source/WebKit2/NetworkProcess/NetworkConnectionToWebProcess.h        2017-01-18 22:43:22 UTC (rev 210887)
</span><span class="lines">@@ -73,7 +73,7 @@
</span><span class="cx">     void didReceiveSyncNetworkConnectionToWebProcessMessage(IPC::Connection&amp;, IPC::Decoder&amp;, std::unique_ptr&lt;IPC::Encoder&gt;&amp;);
</span><span class="cx">     
</span><span class="cx">     void scheduleResourceLoad(const NetworkResourceLoadParameters&amp;);
</span><del>-    void performSynchronousLoad(const NetworkResourceLoadParameters&amp;, RefPtr&lt;Messages::NetworkConnectionToWebProcess::PerformSynchronousLoad::DelayedReply&gt;&amp;&amp;);
</del><ins>+    void performSynchronousLoad(const NetworkResourceLoadParameters&amp;, Ref&lt;Messages::NetworkConnectionToWebProcess::PerformSynchronousLoad::DelayedReply&gt;&amp;&amp;);
</ins><span class="cx">     void loadPing(const NetworkResourceLoadParameters&amp;);
</span><span class="cx">     void prefetchDNS(const String&amp;);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2PlatformIPCHandleMessageh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Platform/IPC/HandleMessage.h (210886 => 210887)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Platform/IPC/HandleMessage.h        2017-01-18 22:29:31 UTC (rev 210886)
+++ trunk/Source/WebKit2/Platform/IPC/HandleMessage.h        2017-01-18 22:43:22 UTC (rev 210887)
</span><span class="lines">@@ -63,15 +63,15 @@
</span><span class="cx"> // Dispatch functions with delayed reply arguments.
</span><span class="cx"> 
</span><span class="cx"> template &lt;typename C, typename MF, typename R, typename ArgsTuple, size_t... ArgsIndex&gt;
</span><del>-void callMemberFunctionImpl(C* object, MF function, PassRefPtr&lt;R&gt; delayedReply, ArgsTuple&amp;&amp; args, std::index_sequence&lt;ArgsIndex...&gt;)
</del><ins>+void callMemberFunctionImpl(C* object, MF function, Ref&lt;R&gt;&amp;&amp; delayedReply, ArgsTuple&amp;&amp; args, std::index_sequence&lt;ArgsIndex...&gt;)
</ins><span class="cx"> {
</span><del>-    (object-&gt;*function)(std::get&lt;ArgsIndex&gt;(args)..., delayedReply);
</del><ins>+    (object-&gt;*function)(std::get&lt;ArgsIndex&gt;(args)..., WTFMove(delayedReply));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> template&lt;typename C, typename MF, typename R, typename ArgsTuple, typename ArgsIndicies = std::make_index_sequence&lt;std::tuple_size&lt;ArgsTuple&gt;::value&gt;&gt;
</span><del>-void callMemberFunction(ArgsTuple&amp;&amp; args, PassRefPtr&lt;R&gt; delayedReply, C* object, MF function)
</del><ins>+void callMemberFunction(ArgsTuple&amp;&amp; args, Ref&lt;R&gt;&amp;&amp; delayedReply, C* object, MF function)
</ins><span class="cx"> {
</span><del>-    callMemberFunctionImpl(object, function, delayedReply, std::forward&lt;ArgsTuple&gt;(args), ArgsIndicies());
</del><ins>+    callMemberFunctionImpl(object, function, WTFMove(delayedReply), std::forward&lt;ArgsTuple&gt;(args), ArgsIndicies());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> // Dispatch functions with connection parameter with no reply arguments.
</span><span class="lines">@@ -174,8 +174,8 @@
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    RefPtr&lt;typename T::DelayedReply&gt; delayedReply = adoptRef(new typename T::DelayedReply(&amp;connection, WTFMove(replyEncoder)));
-    callMemberFunction(WTFMove(arguments), PassRefPtr&lt;typename T::DelayedReply&gt;(WTFMove(delayedReply)), object, function);
</del><ins>+    Ref&lt;typename T::DelayedReply&gt; delayedReply = adoptRef(*new typename T::DelayedReply(connection, WTFMove(replyEncoder)));
+    callMemberFunction(WTFMove(arguments), WTFMove(delayedReply), object, function);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> } // namespace IPC
</span></span></pre></div>
<a id="trunkSourceWebKit2Scriptswebkitmessagespy"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Scripts/webkit/messages.py (210886 => 210887)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Scripts/webkit/messages.py        2017-01-18 22:29:31 UTC (rev 210886)
+++ trunk/Source/WebKit2/Scripts/webkit/messages.py        2017-01-18 22:43:22 UTC (rev 210887)
</span><span class="lines">@@ -118,7 +118,7 @@
</span><span class="cx">         if message.has_attribute(DELAYED_ATTRIBUTE):
</span><span class="cx">             send_parameters = [(function_parameter_type(x.type, x.kind), x.name) for x in message.reply_parameters]
</span><span class="cx">             result.append('    struct DelayedReply : public ThreadSafeRefCounted&lt;DelayedReply&gt; {\n')
</span><del>-            result.append('        DelayedReply(PassRefPtr&lt;IPC::Connection&gt;, std::unique_ptr&lt;IPC::Encoder&gt;);\n')
</del><ins>+            result.append('        DelayedReply(Ref&lt;IPC::Connection&gt;&amp;&amp;, std::unique_ptr&lt;IPC::Encoder&gt;);\n')
</ins><span class="cx">             result.append('        ~DelayedReply();\n')
</span><span class="cx">             result.append('\n')
</span><span class="cx">             result.append('        bool send(%s);\n' % ', '.join([' '.join(x) for x in send_parameters]))
</span><span class="lines">@@ -486,8 +486,8 @@
</span><span class="cx">             if message.condition:
</span><span class="cx">                 result.append('#if %s\n\n' % message.condition)
</span><span class="cx"> 
</span><del>-            result.append('%s::DelayedReply::DelayedReply(PassRefPtr&lt;IPC::Connection&gt; connection, std::unique_ptr&lt;IPC::Encoder&gt; encoder)\n' % message.name)
-            result.append('    : m_connection(connection)\n')
</del><ins>+            result.append('%s::DelayedReply::DelayedReply(Ref&lt;IPC::Connection&gt;&amp;&amp; connection, std::unique_ptr&lt;IPC::Encoder&gt; encoder)\n' % message.name)
+            result.append('    : m_connection(WTFMove(connection))\n')
</ins><span class="cx">             result.append('    , m_encoder(WTFMove(encoder))\n')
</span><span class="cx">             result.append('{\n')
</span><span class="cx">             result.append('}\n')
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessDatabasesDatabaseProcessProxycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Databases/DatabaseProcessProxy.cpp (210886 => 210887)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Databases/DatabaseProcessProxy.cpp        2017-01-18 22:29:31 UTC (rev 210886)
+++ trunk/Source/WebKit2/UIProcess/Databases/DatabaseProcessProxy.cpp        2017-01-18 22:43:22 UTC (rev 210887)
</span><span class="lines">@@ -112,9 +112,9 @@
</span><span class="cx">     send(Messages::DatabaseProcess::DeleteWebsiteDataForOrigins(sessionID, dataTypes, origins, callbackID), 0);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void DatabaseProcessProxy::getDatabaseProcessConnection(PassRefPtr&lt;Messages::WebProcessProxy::GetDatabaseProcessConnection::DelayedReply&gt; reply)
</del><ins>+void DatabaseProcessProxy::getDatabaseProcessConnection(Ref&lt;Messages::WebProcessProxy::GetDatabaseProcessConnection::DelayedReply&gt;&amp;&amp; reply)
</ins><span class="cx"> {
</span><del>-    m_pendingConnectionReplies.append(reply);
</del><ins>+    m_pendingConnectionReplies.append(WTFMove(reply));
</ins><span class="cx"> 
</span><span class="cx">     if (state() == State::Launching) {
</span><span class="cx">         m_numPendingConnectionRequests++;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessDatabasesDatabaseProcessProxyh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Databases/DatabaseProcessProxy.h (210886 => 210887)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Databases/DatabaseProcessProxy.h        2017-01-18 22:29:31 UTC (rev 210886)
+++ trunk/Source/WebKit2/UIProcess/Databases/DatabaseProcessProxy.h        2017-01-18 22:43:22 UTC (rev 210887)
</span><span class="lines">@@ -55,7 +55,7 @@
</span><span class="cx">     void deleteWebsiteData(WebCore::SessionID, OptionSet&lt;WebsiteDataType&gt;, std::chrono::system_clock::time_point modifiedSince, std::function&lt;void()&gt; completionHandler);
</span><span class="cx">     void deleteWebsiteDataForOrigins(WebCore::SessionID, OptionSet&lt;WebsiteDataType&gt;, const Vector&lt;WebCore::SecurityOriginData&gt;&amp;, std::function&lt;void()&gt; completionHandler);
</span><span class="cx"> 
</span><del>-    void getDatabaseProcessConnection(PassRefPtr&lt;Messages::WebProcessProxy::GetDatabaseProcessConnection::DelayedReply&gt;);
</del><ins>+    void getDatabaseProcessConnection(Ref&lt;Messages::WebProcessProxy::GetDatabaseProcessConnection::DelayedReply&gt;&amp;&amp;);
</ins><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     DatabaseProcessProxy(WebProcessPool*);
</span><span class="lines">@@ -86,7 +86,7 @@
</span><span class="cx">     WebProcessPool* m_processPool;
</span><span class="cx"> 
</span><span class="cx">     unsigned m_numPendingConnectionRequests;
</span><del>-    Deque&lt;RefPtr&lt;Messages::WebProcessProxy::GetDatabaseProcessConnection::DelayedReply&gt;&gt; m_pendingConnectionReplies;
</del><ins>+    Deque&lt;Ref&lt;Messages::WebProcessProxy::GetDatabaseProcessConnection::DelayedReply&gt;&gt; m_pendingConnectionReplies;
</ins><span class="cx"> 
</span><span class="cx">     HashMap&lt;uint64_t, std::function&lt;void (WebsiteData)&gt;&gt; m_pendingFetchWebsiteDataCallbacks;
</span><span class="cx">     HashMap&lt;uint64_t, std::function&lt;void ()&gt;&gt; m_pendingDeleteWebsiteDataCallbacks;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessNetworkNetworkProcessProxycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.cpp (210886 => 210887)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.cpp        2017-01-18 22:29:31 UTC (rev 210886)
+++ trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.cpp        2017-01-18 22:43:22 UTC (rev 210887)
</span><span class="lines">@@ -100,9 +100,9 @@
</span><span class="cx">     ASSERT_UNUSED(connection, this-&gt;connection() == &amp;connection);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void NetworkProcessProxy::getNetworkProcessConnection(RefPtr&lt;Messages::WebProcessProxy::GetNetworkProcessConnection::DelayedReply&gt;&amp;&amp; reply)
</del><ins>+void NetworkProcessProxy::getNetworkProcessConnection(Ref&lt;Messages::WebProcessProxy::GetNetworkProcessConnection::DelayedReply&gt;&amp;&amp; reply)
</ins><span class="cx"> {
</span><del>-    m_pendingConnectionReplies.append(reply);
</del><ins>+    m_pendingConnectionReplies.append(WTFMove(reply));
</ins><span class="cx"> 
</span><span class="cx">     if (state() == State::Launching) {
</span><span class="cx">         m_numPendingConnectionRequests++;
</span><span class="lines">@@ -169,7 +169,7 @@
</span><span class="cx"> {
</span><span class="cx">     // The network process must have crashed or exited, send any pending sync replies we might have.
</span><span class="cx">     while (!m_pendingConnectionReplies.isEmpty()) {
</span><del>-        RefPtr&lt;Messages::WebProcessProxy::GetNetworkProcessConnection::DelayedReply&gt; reply = m_pendingConnectionReplies.takeFirst();
</del><ins>+        Ref&lt;Messages::WebProcessProxy::GetNetworkProcessConnection::DelayedReply&gt; reply = m_pendingConnectionReplies.takeFirst();
</ins><span class="cx"> 
</span><span class="cx"> #if USE(UNIX_DOMAIN_SOCKETS)
</span><span class="cx">         reply-&gt;send(IPC::Attachment());
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessNetworkNetworkProcessProxyh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.h (210886 => 210887)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.h        2017-01-18 22:29:31 UTC (rev 210886)
+++ trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.h        2017-01-18 22:43:22 UTC (rev 210887)
</span><span class="lines">@@ -59,7 +59,7 @@
</span><span class="cx">     static Ref&lt;NetworkProcessProxy&gt; create(WebProcessPool&amp;);
</span><span class="cx">     ~NetworkProcessProxy();
</span><span class="cx"> 
</span><del>-    void getNetworkProcessConnection(RefPtr&lt;Messages::WebProcessProxy::GetNetworkProcessConnection::DelayedReply&gt;&amp;&amp;);
</del><ins>+    void getNetworkProcessConnection(Ref&lt;Messages::WebProcessProxy::GetNetworkProcessConnection::DelayedReply&gt;&amp;&amp;);
</ins><span class="cx"> 
</span><span class="cx">     DownloadProxy* createDownloadProxy(const WebCore::ResourceRequest&amp;);
</span><span class="cx"> 
</span><span class="lines">@@ -122,7 +122,7 @@
</span><span class="cx">     WebProcessPool&amp; m_processPool;
</span><span class="cx">     
</span><span class="cx">     unsigned m_numPendingConnectionRequests;
</span><del>-    Deque&lt;RefPtr&lt;Messages::WebProcessProxy::GetNetworkProcessConnection::DelayedReply&gt;&gt; m_pendingConnectionReplies;
</del><ins>+    Deque&lt;Ref&lt;Messages::WebProcessProxy::GetNetworkProcessConnection::DelayedReply&gt;&gt; m_pendingConnectionReplies;
</ins><span class="cx"> 
</span><span class="cx">     HashMap&lt;uint64_t, std::function&lt;void (WebsiteData)&gt;&gt; m_pendingFetchWebsiteDataCallbacks;
</span><span class="cx">     HashMap&lt;uint64_t, std::function&lt;void ()&gt;&gt; m_pendingDeleteWebsiteDataCallbacks;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessPluginsPluginProcessManagercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessManager.cpp (210886 => 210887)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessManager.cpp        2017-01-18 22:29:31 UTC (rev 210886)
+++ trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessManager.cpp        2017-01-18 22:43:22 UTC (rev 210887)
</span><span class="lines">@@ -79,12 +79,12 @@
</span><span class="cx">     return token;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void PluginProcessManager::getPluginProcessConnection(uint64_t pluginProcessToken, PassRefPtr&lt;Messages::WebProcessProxy::GetPluginProcessConnection::DelayedReply&gt; reply)
</del><ins>+void PluginProcessManager::getPluginProcessConnection(uint64_t pluginProcessToken, Ref&lt;Messages::WebProcessProxy::GetPluginProcessConnection::DelayedReply&gt;&amp;&amp; reply)
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(pluginProcessToken);
</span><span class="cx"> 
</span><span class="cx">     PluginProcessProxy* pluginProcess = getOrCreatePluginProcess(pluginProcessToken);
</span><del>-    pluginProcess-&gt;getPluginProcessConnection(reply);
</del><ins>+    pluginProcess-&gt;getPluginProcessConnection(WTFMove(reply));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void PluginProcessManager::removePluginProcessProxy(PluginProcessProxy* pluginProcessProxy)
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessPluginsPluginProcessManagerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessManager.h (210886 => 210887)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessManager.h        2017-01-18 22:29:31 UTC (rev 210886)
+++ trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessManager.h        2017-01-18 22:43:22 UTC (rev 210887)
</span><span class="lines">@@ -58,7 +58,7 @@
</span><span class="cx"> 
</span><span class="cx">     uint64_t pluginProcessToken(const PluginModuleInfo&amp;, PluginProcessType, PluginProcessSandboxPolicy);
</span><span class="cx"> 
</span><del>-    void getPluginProcessConnection(uint64_t pluginProcessToken, PassRefPtr&lt;Messages::WebProcessProxy::GetPluginProcessConnection::DelayedReply&gt;);
</del><ins>+    void getPluginProcessConnection(uint64_t pluginProcessToken, Ref&lt;Messages::WebProcessProxy::GetPluginProcessConnection::DelayedReply&gt;&amp;&amp;);
</ins><span class="cx">     void removePluginProcessProxy(PluginProcessProxy*);
</span><span class="cx"> 
</span><span class="cx">     void fetchWebsiteData(const PluginModuleInfo&amp;, std::function&lt;void (Vector&lt;String&gt;)&gt; completionHandler);
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessPluginsPluginProcessProxycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessProxy.cpp (210886 => 210887)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessProxy.cpp        2017-01-18 22:29:31 UTC (rev 210886)
+++ trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessProxy.cpp        2017-01-18 22:43:22 UTC (rev 210887)
</span><span class="lines">@@ -99,9 +99,9 @@
</span><span class="cx"> 
</span><span class="cx"> // Asks the plug-in process to create a new connection to a web process. The connection identifier will be 
</span><span class="cx"> // encoded in the given argument encoder and sent back to the connection of the given web process.
</span><del>-void PluginProcessProxy::getPluginProcessConnection(PassRefPtr&lt;Messages::WebProcessProxy::GetPluginProcessConnection::DelayedReply&gt; reply)
</del><ins>+void PluginProcessProxy::getPluginProcessConnection(Ref&lt;Messages::WebProcessProxy::GetPluginProcessConnection::DelayedReply&gt;&amp;&amp; reply)
</ins><span class="cx"> {
</span><del>-    m_pendingConnectionReplies.append(reply);
</del><ins>+    m_pendingConnectionReplies.append(WTFMove(reply));
</ins><span class="cx"> 
</span><span class="cx">     if (state() == State::Launching) {
</span><span class="cx">         m_numPendingConnectionRequests++;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessPluginsPluginProcessProxyh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessProxy.h (210886 => 210887)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessProxy.h        2017-01-18 22:29:31 UTC (rev 210886)
+++ trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessProxy.h        2017-01-18 22:43:22 UTC (rev 210887)
</span><span class="lines">@@ -76,7 +76,7 @@
</span><span class="cx"> 
</span><span class="cx">     // Asks the plug-in process to create a new connection to a web process. The connection identifier will be
</span><span class="cx">     // encoded in the given argument encoder and sent back to the connection of the given web process.
</span><del>-    void getPluginProcessConnection(PassRefPtr&lt;Messages::WebProcessProxy::GetPluginProcessConnection::DelayedReply&gt;);
</del><ins>+    void getPluginProcessConnection(Ref&lt;Messages::WebProcessProxy::GetPluginProcessConnection::DelayedReply&gt;&amp;&amp;);
</ins><span class="cx"> 
</span><span class="cx">     void fetchWebsiteData(std::function&lt;void (Vector&lt;String&gt;)&gt; completionHandler);
</span><span class="cx">     void deleteWebsiteData(std::chrono::system_clock::time_point modifiedSince, std::function&lt;void ()&gt; completionHandler);
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebPageProxycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp (210886 => 210887)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp        2017-01-18 22:29:31 UTC (rev 210886)
+++ trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp        2017-01-18 22:43:22 UTC (rev 210887)
</span><span class="lines">@@ -3896,7 +3896,7 @@
</span><span class="cx">     m_uiClient-&gt;close(this);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void WebPageProxy::runJavaScriptAlert(uint64_t frameID, const SecurityOriginData&amp; securityOrigin, const String&amp; message, RefPtr&lt;Messages::WebPageProxy::RunJavaScriptAlert::DelayedReply&gt; reply)
</del><ins>+void WebPageProxy::runJavaScriptAlert(uint64_t frameID, const SecurityOriginData&amp; securityOrigin, const String&amp; message, Ref&lt;Messages::WebPageProxy::RunJavaScriptAlert::DelayedReply&gt;&amp;&amp; reply)
</ins><span class="cx"> {
</span><span class="cx">     WebFrameProxy* frame = m_process-&gt;webFrame(frameID);
</span><span class="cx">     MESSAGE_CHECK(frame);
</span><span class="lines">@@ -3904,10 +3904,12 @@
</span><span class="cx">     // Since runJavaScriptAlert() can spin a nested run loop we need to turn off the responsiveness timer.
</span><span class="cx">     m_process-&gt;responsivenessTimer().stop();
</span><span class="cx"> 
</span><del>-    m_uiClient-&gt;runJavaScriptAlert(this, message, frame, securityOrigin, [reply]{ reply-&gt;send(); });
</del><ins>+    m_uiClient-&gt;runJavaScriptAlert(this, message, frame, securityOrigin, [reply = WTFMove(reply)] {
+        reply-&gt;send();
+    });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-void WebPageProxy::runJavaScriptConfirm(uint64_t frameID, const SecurityOriginData&amp; securityOrigin, const String&amp; message, RefPtr&lt;Messages::WebPageProxy::RunJavaScriptConfirm::DelayedReply&gt; reply)
</del><ins>+void WebPageProxy::runJavaScriptConfirm(uint64_t frameID, const SecurityOriginData&amp; securityOrigin, const String&amp; message, Ref&lt;Messages::WebPageProxy::RunJavaScriptConfirm::DelayedReply&gt;&amp;&amp; reply)
</ins><span class="cx"> {
</span><span class="cx">     WebFrameProxy* frame = m_process-&gt;webFrame(frameID);
</span><span class="cx">     MESSAGE_CHECK(frame);
</span><span class="lines">@@ -3915,7 +3917,9 @@
</span><span class="cx">     // Since runJavaScriptConfirm() can spin a nested run loop we need to turn off the responsiveness timer.
</span><span class="cx">     m_process-&gt;responsivenessTimer().stop();
</span><span class="cx"> 
</span><del>-    m_uiClient-&gt;runJavaScriptConfirm(this, message, frame, securityOrigin, [reply](bool result) { reply-&gt;send(result); });
</del><ins>+    m_uiClient-&gt;runJavaScriptConfirm(this, message, frame, securityOrigin, [reply = WTFMove(reply)](bool result) {
+        reply-&gt;send(result);
+    });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void WebPageProxy::runJavaScriptPrompt(uint64_t frameID, const SecurityOriginData&amp; securityOrigin, const String&amp; message, const String&amp; defaultValue, RefPtr&lt;Messages::WebPageProxy::RunJavaScriptPrompt::DelayedReply&gt; reply)
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebPageProxyh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebPageProxy.h (210886 => 210887)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebPageProxy.h        2017-01-18 22:29:31 UTC (rev 210886)
+++ trunk/Source/WebKit2/UIProcess/WebPageProxy.h        2017-01-18 22:43:22 UTC (rev 210887)
</span><span class="lines">@@ -1272,8 +1272,8 @@
</span><span class="cx">     // UI client
</span><span class="cx">     void createNewPage(uint64_t frameID, const WebCore::SecurityOriginData&amp;, const WebCore::ResourceRequest&amp;, const WebCore::WindowFeatures&amp;, const NavigationActionData&amp;, uint64_t&amp; newPageID, WebPageCreationParameters&amp;);
</span><span class="cx">     void showPage();
</span><del>-    void runJavaScriptAlert(uint64_t frameID, const WebCore::SecurityOriginData&amp;, const String&amp;, RefPtr&lt;Messages::WebPageProxy::RunJavaScriptAlert::DelayedReply&gt;);
-    void runJavaScriptConfirm(uint64_t frameID, const WebCore::SecurityOriginData&amp;, const String&amp;, RefPtr&lt;Messages::WebPageProxy::RunJavaScriptConfirm::DelayedReply&gt;);
</del><ins>+    void runJavaScriptAlert(uint64_t frameID, const WebCore::SecurityOriginData&amp;, const String&amp;, Ref&lt;Messages::WebPageProxy::RunJavaScriptAlert::DelayedReply&gt;&amp;&amp;);
+    void runJavaScriptConfirm(uint64_t frameID, const WebCore::SecurityOriginData&amp;, const String&amp;, Ref&lt;Messages::WebPageProxy::RunJavaScriptConfirm::DelayedReply&gt;&amp;&amp;);
</ins><span class="cx">     void runJavaScriptPrompt(uint64_t frameID, const WebCore::SecurityOriginData&amp;, const String&amp;, const String&amp;, RefPtr&lt;Messages::WebPageProxy::RunJavaScriptPrompt::DelayedReply&gt;);
</span><span class="cx">     void setStatusText(const String&amp;);
</span><span class="cx">     void mouseDidMoveOverElement(const WebHitTestResultData&amp;, uint32_t modifiers, const UserData&amp;);
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebProcessPoolcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp (210886 => 210887)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp        2017-01-18 22:29:31 UTC (rev 210886)
+++ trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp        2017-01-18 22:43:22 UTC (rev 210887)
</span><span class="lines">@@ -416,14 +416,12 @@
</span><span class="cx">     m_networkProcess = nullptr;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void WebProcessPool::getNetworkProcessConnection(PassRefPtr&lt;Messages::WebProcessProxy::GetNetworkProcessConnection::DelayedReply&gt; reply)
</del><ins>+void WebProcessPool::getNetworkProcessConnection(Ref&lt;Messages::WebProcessProxy::GetNetworkProcessConnection::DelayedReply&gt;&amp;&amp; reply)
</ins><span class="cx"> {
</span><del>-    ASSERT(reply);
-
</del><span class="cx">     ensureNetworkProcess();
</span><span class="cx">     ASSERT(m_networkProcess);
</span><span class="cx"> 
</span><del>-    m_networkProcess-&gt;getNetworkProcessConnection(reply);
</del><ins>+    m_networkProcess-&gt;getNetworkProcessConnection(WTFMove(reply));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(DATABASE_PROCESS)
</span><span class="lines">@@ -448,13 +446,11 @@
</span><span class="cx">     m_databaseProcess-&gt;send(Messages::DatabaseProcess::InitializeDatabaseProcess(parameters), 0);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void WebProcessPool::getDatabaseProcessConnection(PassRefPtr&lt;Messages::WebProcessProxy::GetDatabaseProcessConnection::DelayedReply&gt; reply)
</del><ins>+void WebProcessPool::getDatabaseProcessConnection(Ref&lt;Messages::WebProcessProxy::GetDatabaseProcessConnection::DelayedReply&gt;&amp;&amp; reply)
</ins><span class="cx"> {
</span><del>-    ASSERT(reply);
-
</del><span class="cx">     ensureDatabaseProcess();
</span><span class="cx"> 
</span><del>-    m_databaseProcess-&gt;getDatabaseProcessConnection(reply);
</del><ins>+    m_databaseProcess-&gt;getDatabaseProcessConnection(WTFMove(reply));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void WebProcessPool::databaseProcessCrashed(DatabaseProcessProxy* databaseProcessProxy)
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebProcessPoolh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebProcessPool.h (210886 => 210887)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebProcessPool.h        2017-01-18 22:29:31 UTC (rev 210886)
+++ trunk/Source/WebKit2/UIProcess/WebProcessPool.h        2017-01-18 22:43:22 UTC (rev 210887)
</span><span class="lines">@@ -295,12 +295,12 @@
</span><span class="cx">     NetworkProcessProxy* networkProcess() { return m_networkProcess.get(); }
</span><span class="cx">     void networkProcessCrashed(NetworkProcessProxy*);
</span><span class="cx"> 
</span><del>-    void getNetworkProcessConnection(PassRefPtr&lt;Messages::WebProcessProxy::GetNetworkProcessConnection::DelayedReply&gt;);
</del><ins>+    void getNetworkProcessConnection(Ref&lt;Messages::WebProcessProxy::GetNetworkProcessConnection::DelayedReply&gt;&amp;&amp;);
</ins><span class="cx"> 
</span><span class="cx"> #if ENABLE(DATABASE_PROCESS)
</span><span class="cx">     void ensureDatabaseProcess();
</span><span class="cx">     DatabaseProcessProxy* databaseProcess() { return m_databaseProcess.get(); }
</span><del>-    void getDatabaseProcessConnection(PassRefPtr&lt;Messages::WebProcessProxy::GetDatabaseProcessConnection::DelayedReply&gt;);
</del><ins>+    void getDatabaseProcessConnection(Ref&lt;Messages::WebProcessProxy::GetDatabaseProcessConnection::DelayedReply&gt;&amp;&amp;);
</ins><span class="cx">     void databaseProcessCrashed(DatabaseProcessProxy*);
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebProcessProxycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebProcessProxy.cpp (210886 => 210887)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebProcessProxy.cpp        2017-01-18 22:29:31 UTC (rev 210886)
+++ trunk/Source/WebKit2/UIProcess/WebProcessProxy.cpp        2017-01-18 22:43:22 UTC (rev 210887)
</span><span class="lines">@@ -407,21 +407,21 @@
</span><span class="cx"> #endif // ENABLE(NETSCAPE_PLUGIN_API)
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(NETSCAPE_PLUGIN_API)
</span><del>-void WebProcessProxy::getPluginProcessConnection(uint64_t pluginProcessToken, PassRefPtr&lt;Messages::WebProcessProxy::GetPluginProcessConnection::DelayedReply&gt; reply)
</del><ins>+void WebProcessProxy::getPluginProcessConnection(uint64_t pluginProcessToken, Ref&lt;Messages::WebProcessProxy::GetPluginProcessConnection::DelayedReply&gt;&amp;&amp; reply)
</ins><span class="cx"> {
</span><del>-    PluginProcessManager::singleton().getPluginProcessConnection(pluginProcessToken, reply);
</del><ins>+    PluginProcessManager::singleton().getPluginProcessConnection(pluginProcessToken, WTFMove(reply));
</ins><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-void WebProcessProxy::getNetworkProcessConnection(PassRefPtr&lt;Messages::WebProcessProxy::GetNetworkProcessConnection::DelayedReply&gt; reply)
</del><ins>+void WebProcessProxy::getNetworkProcessConnection(Ref&lt;Messages::WebProcessProxy::GetNetworkProcessConnection::DelayedReply&gt;&amp;&amp; reply)
</ins><span class="cx"> {
</span><del>-    m_processPool-&gt;getNetworkProcessConnection(reply);
</del><ins>+    m_processPool-&gt;getNetworkProcessConnection(WTFMove(reply));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(DATABASE_PROCESS)
</span><del>-void WebProcessProxy::getDatabaseProcessConnection(PassRefPtr&lt;Messages::WebProcessProxy::GetDatabaseProcessConnection::DelayedReply&gt; reply)
</del><ins>+void WebProcessProxy::getDatabaseProcessConnection(Ref&lt;Messages::WebProcessProxy::GetDatabaseProcessConnection::DelayedReply&gt;&amp;&amp; reply)
</ins><span class="cx"> {
</span><del>-    m_processPool-&gt;getDatabaseProcessConnection(reply);
</del><ins>+    m_processPool-&gt;getDatabaseProcessConnection(WTFMove(reply));
</ins><span class="cx"> }
</span><span class="cx"> #endif // ENABLE(DATABASE_PROCESS)
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebProcessProxyh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebProcessProxy.h (210886 => 210887)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebProcessProxy.h        2017-01-18 22:29:31 UTC (rev 210886)
+++ trunk/Source/WebKit2/UIProcess/WebProcessProxy.h        2017-01-18 22:43:22 UTC (rev 210887)
</span><span class="lines">@@ -173,11 +173,11 @@
</span><span class="cx">     void getPlugins(bool refresh, Vector&lt;WebCore::PluginInfo&gt;&amp; plugins, Vector&lt;WebCore::PluginInfo&gt;&amp; applicationPlugins);
</span><span class="cx"> #endif // ENABLE(NETSCAPE_PLUGIN_API)
</span><span class="cx"> #if ENABLE(NETSCAPE_PLUGIN_API)
</span><del>-    void getPluginProcessConnection(uint64_t pluginProcessToken, PassRefPtr&lt;Messages::WebProcessProxy::GetPluginProcessConnection::DelayedReply&gt;);
</del><ins>+    void getPluginProcessConnection(uint64_t pluginProcessToken, Ref&lt;Messages::WebProcessProxy::GetPluginProcessConnection::DelayedReply&gt;&amp;&amp;);
</ins><span class="cx"> #endif
</span><del>-    void getNetworkProcessConnection(PassRefPtr&lt;Messages::WebProcessProxy::GetNetworkProcessConnection::DelayedReply&gt;);
</del><ins>+    void getNetworkProcessConnection(Ref&lt;Messages::WebProcessProxy::GetNetworkProcessConnection::DelayedReply&gt;&amp;&amp;);
</ins><span class="cx"> #if ENABLE(DATABASE_PROCESS)
</span><del>-    void getDatabaseProcessConnection(PassRefPtr&lt;Messages::WebProcessProxy::GetDatabaseProcessConnection::DelayedReply&gt;);
</del><ins>+    void getDatabaseProcessConnection(Ref&lt;Messages::WebProcessProxy::GetDatabaseProcessConnection::DelayedReply&gt;&amp;&amp;);
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx">     void retainIconForPageURL(const String&amp; pageURL);
</span></span></pre>
</div>
</div>

</body>
</html>