<!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>[177806] 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/177806">177806</a></dd>
<dt>Author</dt> <dd>andersca@apple.com</dd>
<dt>Date</dt> <dd>2014-12-29 11:38:19 -0800 (Mon, 29 Dec 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove the old user message coder code
https://bugs.webkit.org/show_bug.cgi?id=139994

Reviewed by Sam Weinig.

* Platform/IPC/HandleMessage.h:
(IPC::callMemberFunctionImpl): Deleted.
(IPC::callMemberFunction): Deleted.
(IPC::handleMessageVariadic): Deleted.
* Scripts/webkit/messages.py:
(decode_type):
(async_message_statement):
(sync_message_statement):
* Shared/UserMessageCoders.h: Removed.
* Shared/mac/ObjCObjectGraphCoders.h: Removed.
* Shared/mac/ObjCObjectGraphCoders.mm: Removed.
* UIProcess/WebConnectionToWebProcess.cpp:
* UIProcess/WebContextUserMessageCoders.h: Removed.
* UIProcess/WebPageProxy.cpp:
* UIProcess/WebProcessPool.cpp:
* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/InjectedBundle/InjectedBundle.cpp:
* WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h: Removed.
* WebProcess/WebConnectionToUIProcess.cpp:
* WebProcess/WebCoreSupport/WebChromeClient.cpp:
* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
* WebProcess/WebPage/WebContextMenu.cpp:
* WebProcess/WebPage/WebPage.cpp:
* WebProcess/WebPage/mac/WebPageMac.mm:
* WebProcess/WebProcess.cpp:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</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="#trunkSourceWebKit2UIProcessWebConnectionToWebProcesscpp">trunk/Source/WebKit2/UIProcess/WebConnectionToWebProcess.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebPageProxycpp">trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebProcessPoolcpp">trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebKit2xcodeprojprojectpbxproj">trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleInjectedBundlecpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebConnectionToUIProcesscpp">trunk/Source/WebKit2/WebProcess/WebConnectionToUIProcess.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebCoreSupportWebChromeClientcpp">trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebCoreSupportWebFrameLoaderClientcpp">trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageWebContextMenucpp">trunk/Source/WebKit2/WebProcess/WebPage/WebContextMenu.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageWebPagecpp">trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPagemacWebPageMacmm">trunk/Source/WebKit2/WebProcess/WebPage/mac/WebPageMac.mm</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebProcesscpp">trunk/Source/WebKit2/WebProcess/WebProcess.cpp</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2SharedUserMessageCodersh">trunk/Source/WebKit2/Shared/UserMessageCoders.h</a></li>
<li><a href="#trunkSourceWebKit2SharedmacObjCObjectGraphCodersh">trunk/Source/WebKit2/Shared/mac/ObjCObjectGraphCoders.h</a></li>
<li><a href="#trunkSourceWebKit2SharedmacObjCObjectGraphCodersmm">trunk/Source/WebKit2/Shared/mac/ObjCObjectGraphCoders.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebContextUserMessageCodersh">trunk/Source/WebKit2/UIProcess/WebContextUserMessageCoders.h</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleInjectedBundleUserMessageCodersh">trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (177805 => 177806)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2014-12-29 19:35:48 UTC (rev 177805)
+++ trunk/Source/WebKit2/ChangeLog        2014-12-29 19:38:19 UTC (rev 177806)
</span><span class="lines">@@ -1,3 +1,36 @@
</span><ins>+2014-12-29  Anders Carlsson  &lt;andersca@apple.com&gt;
+
+        Remove the old user message coder code
+        https://bugs.webkit.org/show_bug.cgi?id=139994
+
+        Reviewed by Sam Weinig.
+
+        * Platform/IPC/HandleMessage.h:
+        (IPC::callMemberFunctionImpl): Deleted.
+        (IPC::callMemberFunction): Deleted.
+        (IPC::handleMessageVariadic): Deleted.
+        * Scripts/webkit/messages.py:
+        (decode_type):
+        (async_message_statement):
+        (sync_message_statement):
+        * Shared/UserMessageCoders.h: Removed.
+        * Shared/mac/ObjCObjectGraphCoders.h: Removed.
+        * Shared/mac/ObjCObjectGraphCoders.mm: Removed.
+        * UIProcess/WebConnectionToWebProcess.cpp:
+        * UIProcess/WebContextUserMessageCoders.h: Removed.
+        * UIProcess/WebPageProxy.cpp:
+        * UIProcess/WebProcessPool.cpp:
+        * WebKit2.xcodeproj/project.pbxproj:
+        * WebProcess/InjectedBundle/InjectedBundle.cpp:
+        * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h: Removed.
+        * WebProcess/WebConnectionToUIProcess.cpp:
+        * WebProcess/WebCoreSupport/WebChromeClient.cpp:
+        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
+        * WebProcess/WebPage/WebContextMenu.cpp:
+        * WebProcess/WebPage/WebPage.cpp:
+        * WebProcess/WebPage/mac/WebPageMac.mm:
+        * WebProcess/WebProcess.cpp:
+
</ins><span class="cx"> 2014-12-29  Sam Weinig  &lt;sam@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Move WebPasteboardProxy from Shared to UIProcess, where it should have been all along
</span></span></pre></div>
<a id="trunkSourceWebKit2PlatformIPCHandleMessageh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Platform/IPC/HandleMessage.h (177805 => 177806)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Platform/IPC/HandleMessage.h        2014-12-29 19:35:48 UTC (rev 177805)
+++ trunk/Source/WebKit2/Platform/IPC/HandleMessage.h        2014-12-29 19:38:19 UTC (rev 177806)
</span><span class="lines">@@ -78,34 +78,6 @@
</span><span class="cx">     callMemberFunctionImpl(object, function, connection, std::forward&lt;ArgsTuple&gt;(args), replyArgs, ArgsIndicies(), ReplyArgsIndicies());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-// Variadic dispatch functions.
-
-template &lt;typename C, typename MF, typename ArgsTuple, size_t... ArgsIndex&gt;
-void callMemberFunctionImpl(C* object, MF function, MessageDecoder&amp; decoder, ArgsTuple&amp;&amp; args, std::index_sequence&lt;ArgsIndex...&gt;)
-{
-    (object-&gt;*function)(std::get&lt;ArgsIndex&gt;(std::forward&lt;ArgsTuple&gt;(args))..., decoder);
-}
-
-template&lt;typename C, typename MF, typename ArgsTuple, typename ArgsIndicies = std::make_index_sequence&lt;std::tuple_size&lt;ArgsTuple&gt;::value&gt;&gt;
-void callMemberFunction(ArgsTuple&amp;&amp; args, MessageDecoder&amp; decoder, C* object, MF function)
-{
-    callMemberFunctionImpl(object, function, decoder, std::forward&lt;ArgsTuple&gt;(args), ArgsIndicies());
-}
-
-// Variadic dispatch functions with non-variadic reply arguments.
-
-template &lt;typename C, typename MF, typename ArgsTuple, size_t... ArgsIndex, typename ReplyArgsTuple, size_t... ReplyArgsIndex&gt;
-void callMemberFunctionImpl(C* object, MF function, MessageDecoder&amp; decoder, ArgsTuple&amp;&amp; args, ReplyArgsTuple&amp; replyArgs, std::index_sequence&lt;ArgsIndex...&gt;, std::index_sequence&lt;ReplyArgsIndex...&gt;)
-{
-    (object-&gt;*function)(std::get&lt;ArgsIndex&gt;(std::forward&lt;ArgsTuple&gt;(args))..., decoder, std::get&lt;ReplyArgsIndex&gt;(replyArgs)...);
-}
-
-template &lt;typename C, typename MF, typename ArgsTuple, typename ArgsIndicies = std::make_index_sequence&lt;std::tuple_size&lt;ArgsTuple&gt;::value&gt;, typename ReplyArgsTuple, typename ReplyArgsIndicies = std::make_index_sequence&lt;std::tuple_size&lt;ReplyArgsTuple&gt;::value&gt;&gt;
-void callMemberFunction(ArgsTuple&amp;&amp; args, MessageDecoder&amp; decoder, ReplyArgsTuple&amp; replyArgs, C* object, MF function)
-{
-    callMemberFunctionImpl(object, function, decoder, std::forward&lt;ArgsTuple&gt;(args), replyArgs, ArgsIndicies(), ReplyArgsIndicies());
-}
-
</del><span class="cx"> // Main dispatch functions
</span><span class="cx"> 
</span><span class="cx"> template&lt;typename T, typename C, typename MF&gt;
</span><span class="lines">@@ -160,31 +132,6 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> template&lt;typename T, typename C, typename MF&gt;
</span><del>-void handleMessageVariadic(MessageDecoder&amp; decoder, C* object, MF function)
-{
-    typename T::DecodeType arguments;
-    if (!decoder.decode(arguments)) {
-        ASSERT(decoder.isInvalid());
-        return;
-    }
-    callMemberFunction(WTF::move(arguments), decoder, object, function);
-}
-
-template&lt;typename T, typename C, typename MF&gt;
-void handleMessageVariadic(MessageDecoder&amp; decoder, MessageEncoder&amp; replyEncoder, C* object, MF function)
-{
-    typename T::DecodeType arguments;
-    if (!decoder.decode(arguments)) {
-        ASSERT(decoder.isInvalid());
-        return;
-    }
-
-    typename T::Reply::ValueType replyArguments;
-    callMemberFunction(WTF::move(arguments), decoder, replyArguments, object, function);
-    replyEncoder &lt;&lt; replyArguments;
-}
-
-template&lt;typename T, typename C, typename MF&gt;
</del><span class="cx"> void handleMessageDelayed(Connection* connection, MessageDecoder&amp; decoder, std::unique_ptr&lt;MessageEncoder&gt;&amp; replyEncoder, C* object, MF function)
</span><span class="cx"> {
</span><span class="cx">     typename T::DecodeType arguments;
</span></span></pre></div>
<a id="trunkSourceWebKit2Scriptswebkitmessagespy"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Scripts/webkit/messages.py (177805 => 177806)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Scripts/webkit/messages.py        2014-12-29 19:35:48 UTC (rev 177805)
+++ trunk/Source/WebKit2/Scripts/webkit/messages.py        2014-12-29 19:38:19 UTC (rev 177806)
</span><span class="lines">@@ -28,7 +28,6 @@
</span><span class="cx"> WANTS_CONNECTION_ATTRIBUTE = 'WantsConnection'
</span><span class="cx"> LEGACY_RECEIVER_ATTRIBUTE = 'LegacyReceiver'
</span><span class="cx"> DELAYED_ATTRIBUTE = 'Delayed'
</span><del>-VARIADIC_ATTRIBUTE = 'Variadic'
</del><span class="cx"> 
</span><span class="cx"> _license_header = &quot;&quot;&quot;/*
</span><span class="cx">  * Copyright (C) 2010 Apple Inc. All rights reserved.
</span><span class="lines">@@ -102,14 +101,9 @@
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> def decode_type(message):
</span><del>-    parameters = message.parameters
</del><ins>+    return 'std::tuple&lt;%s&gt;' % ', '.join(parameter.type for parameter in message.parameters)
</ins><span class="cx"> 
</span><del>-    if message.has_attribute(VARIADIC_ATTRIBUTE):
-        parameters = parameters[:-1]
</del><span class="cx"> 
</span><del>-    return 'std::tuple&lt;%s&gt;' % ', '.join(parameter.type for parameter in parameters)
-
-
</del><span class="cx"> def message_to_struct_declaration(message):
</span><span class="cx">     result = []
</span><span class="cx">     function_parameters = [(function_parameter_type(x.type), x.name) for x in message.parameters]
</span><span class="lines">@@ -269,8 +263,6 @@
</span><span class="cx">     dispatch_function_args = ['decoder', 'this', '&amp;%s' % handler_function(receiver, message)]
</span><span class="cx"> 
</span><span class="cx">     dispatch_function = 'handleMessage'
</span><del>-    if message.has_attribute(VARIADIC_ATTRIBUTE):
-        dispatch_function += 'Variadic'
</del><span class="cx"> 
</span><span class="cx">     if message.has_attribute(WANTS_CONNECTION_ATTRIBUTE):
</span><span class="cx">         dispatch_function_args.insert(0, 'connection')
</span><span class="lines">@@ -287,8 +279,6 @@
</span><span class="cx">     dispatch_function = 'handleMessage'
</span><span class="cx">     if message.has_attribute(DELAYED_ATTRIBUTE):
</span><span class="cx">         dispatch_function += 'Delayed'
</span><del>-    if message.has_attribute(VARIADIC_ATTRIBUTE):
-        dispatch_function += 'Variadic'
</del><span class="cx"> 
</span><span class="cx">     wants_connection = message.has_attribute(DELAYED_ATTRIBUTE) or message.has_attribute(WANTS_CONNECTION_ATTRIBUTE)
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedUserMessageCodersh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit2/Shared/UserMessageCoders.h (177805 => 177806)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/UserMessageCoders.h        2014-12-29 19:35:48 UTC (rev 177805)
+++ trunk/Source/WebKit2/Shared/UserMessageCoders.h        2014-12-29 19:38:19 UTC (rev 177806)
</span><span class="lines">@@ -1,557 +0,0 @@
</span><del>-/*
- * Copyright (C) 2010 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef UserMessageCoders_h
-#define UserMessageCoders_h
-
-#include &quot;APIArray.h&quot;
-#include &quot;APIData.h&quot;
-#include &quot;APIDictionary.h&quot;
-#include &quot;APIError.h&quot;
-#include &quot;APIGeometry.h&quot;
-#include &quot;APINumber.h&quot;
-#include &quot;APISerializedScriptValue.h&quot;
-#include &quot;APIString.h&quot;
-#include &quot;APIURL.h&quot;
-#include &quot;APIURLRequest.h&quot;
-#include &quot;APIURLResponse.h&quot;
-#include &quot;APIUserContentURLPattern.h&quot;
-#include &quot;ArgumentDecoder.h&quot;
-#include &quot;ArgumentEncoder.h&quot;
-#include &quot;DataReference.h&quot;
-#include &quot;ShareableBitmap.h&quot;
-#include &quot;WebCertificateInfo.h&quot;
-#include &quot;WebCoreArgumentCoders.h&quot;
-#include &quot;WebImage.h&quot;
-#include &quot;WebRenderLayer.h&quot;
-#include &quot;WebRenderObject.h&quot;
-
-namespace WebKit {
-
-//   - Null -&gt; Null
-//   - API::Array -&gt; API::Array
-//   - API::Dictionary -&gt; API::Dictionary
-//   - SerializedScriptValue -&gt; SerializedScriptValue
-//   - API::String -&gt; API::String
-//   - UserContentURLPattern -&gt; UserContentURLPattern
-//   - WebCertificateInfo -&gt; WebCertificateInfo
-//   - API::Data -&gt; API::Data
-//   - API::Double -&gt; API::Double
-//   - WebImage -&gt; WebImage
-//   - WebRenderLayer -&gt; WebRenderLayer
-//   - WebRenderObject -&gt; WebRenderObject
-//   - API::UInt64 -&gt; API::UInt64
-//   - API::URL -&gt; API::URL
-//   - API::URLRequest -&gt; API::URLRequest
-//   - API::URLResponse -&gt; API::URLResponse
-//   - API::Error -&gt; API::Error
-
-template&lt;typename Owner&gt;
-class UserMessageEncoder {
-public:
-    bool baseEncode(IPC::ArgumentEncoder&amp; encoder, const Owner&amp; coder, API::Object::Type&amp; type) const
-    {
-        if (!m_root) {
-            encoder &lt;&lt; static_cast&lt;uint32_t&gt;(API::Object::Type::Null);
-            return true;
-        }
-
-        type = m_root-&gt;type();
-        encoder &lt;&lt; static_cast&lt;uint32_t&gt;(type);
-
-        switch (type) {
-        case API::Object::Type::Array: {
-            API::Array* array = static_cast&lt;API::Array*&gt;(m_root);
-            encoder &lt;&lt; static_cast&lt;uint64_t&gt;(array-&gt;size());
-            for (size_t i = 0; i &lt; array-&gt;size(); ++i)
-                encoder &lt;&lt; Owner(coder, array-&gt;at(i));
-            return true;
-        }
-        case API::Object::Type::Dictionary: {
-            API::Dictionary* dictionary = static_cast&lt;API::Dictionary*&gt;(m_root);
-            const API::Dictionary::MapType&amp; map = dictionary-&gt;map();
-            encoder &lt;&lt; static_cast&lt;uint64_t&gt;(map.size());
-
-            API::Dictionary::MapType::const_iterator it = map.begin();
-            API::Dictionary::MapType::const_iterator end = map.end();
-            for (; it != end; ++it) {
-                encoder &lt;&lt; it-&gt;key;
-                encoder &lt;&lt; Owner(coder, it-&gt;value.get());
-            }
-            return true;
-        }
-        case API::Object::Type::String: {
-            API::String* string = static_cast&lt;API::String*&gt;(m_root);
-            encoder &lt;&lt; string-&gt;string();
-            return true;
-        }
-        case API::Object::Type::SerializedScriptValue: {
-            API::SerializedScriptValue* scriptValue = static_cast&lt;API::SerializedScriptValue*&gt;(m_root);
-            encoder &lt;&lt; scriptValue-&gt;dataReference();
-            return true;
-        }
-        case API::Object::Type::Boolean: {
-            API::Boolean* booleanObject = static_cast&lt;API::Boolean*&gt;(m_root);
-            encoder &lt;&lt; booleanObject-&gt;value();
-            return true;
-        }
-        case API::Object::Type::Double: {
-            API::Double* doubleObject = static_cast&lt;API::Double*&gt;(m_root);
-            encoder &lt;&lt; doubleObject-&gt;value();
-            return true;
-        }
-        case API::Object::Type::UInt64: {
-            API::UInt64* uint64Object = static_cast&lt;API::UInt64*&gt;(m_root);
-            encoder &lt;&lt; uint64Object-&gt;value();
-            return true;
-        }
-        case API::Object::Type::Point: {
-            API::Point* pointObject = static_cast&lt;API::Point*&gt;(m_root);
-            encoder &lt;&lt; pointObject-&gt;point().x;
-            encoder &lt;&lt; pointObject-&gt;point().y;
-            return true;
-        }
-        case API::Object::Type::Size: {
-            API::Size* sizeObject = static_cast&lt;API::Size*&gt;(m_root);
-            encoder &lt;&lt; sizeObject-&gt;size().width;
-            encoder &lt;&lt; sizeObject-&gt;size().height;
-            return true;
-        }
-        case API::Object::Type::Rect: {
-            API::Rect* rectObject = static_cast&lt;API::Rect*&gt;(m_root);
-            encoder &lt;&lt; rectObject-&gt;rect().origin.x;
-            encoder &lt;&lt; rectObject-&gt;rect().origin.y;
-            encoder &lt;&lt; rectObject-&gt;rect().size.width;
-            encoder &lt;&lt; rectObject-&gt;rect().size.height;
-            return true;
-        }
-        case API::Object::Type::RenderLayer: {
-            WebRenderLayer* renderLayer = static_cast&lt;WebRenderLayer*&gt;(m_root);
-            encoder &lt;&lt; Owner(coder, renderLayer-&gt;renderer());
-            encoder &lt;&lt; renderLayer-&gt;isReflection();
-            encoder &lt;&lt; renderLayer-&gt;isClipping();
-            encoder &lt;&lt; renderLayer-&gt;isClipped();
-            encoder &lt;&lt; static_cast&lt;uint32_t&gt;(renderLayer-&gt;compositingLayerType());
-            encoder &lt;&lt; renderLayer-&gt;absoluteBoundingBox();
-            encoder &lt;&lt; renderLayer-&gt;backingStoreMemoryEstimate();
-            encoder &lt;&lt; Owner(coder, renderLayer-&gt;negativeZOrderList());
-            encoder &lt;&lt; Owner(coder, renderLayer-&gt;normalFlowList());
-            encoder &lt;&lt; Owner(coder, renderLayer-&gt;positiveZOrderList());
-            encoder &lt;&lt; Owner(coder, renderLayer-&gt;frameContentsLayer());
-            return true;
-        }
-        case API::Object::Type::RenderObject: {
-            WebRenderObject* renderObject = static_cast&lt;WebRenderObject*&gt;(m_root);
-            encoder &lt;&lt; renderObject-&gt;name();
-            encoder &lt;&lt; renderObject-&gt;elementTagName();
-            encoder &lt;&lt; renderObject-&gt;elementID();
-            encoder &lt;&lt; Owner(coder, renderObject-&gt;elementClassNames());
-            encoder &lt;&lt; renderObject-&gt;absolutePosition();
-            encoder &lt;&lt; renderObject-&gt;frameRect();
-            encoder &lt;&lt; renderObject-&gt;textSnippet();
-            encoder &lt;&lt; renderObject-&gt;textLength();
-            encoder &lt;&lt; Owner(coder, renderObject-&gt;children());
-            return true;
-        }
-        case API::Object::Type::URL: {
-            API::URL* urlObject = static_cast&lt;API::URL*&gt;(m_root);
-            encoder &lt;&lt; urlObject-&gt;string();
-            return true;
-        }
-        case API::Object::Type::URLRequest: {
-            API::URLRequest* urlRequestObject = static_cast&lt;API::URLRequest*&gt;(m_root);
-            encoder &lt;&lt; urlRequestObject-&gt;resourceRequest();
-            return true;
-        }
-        case API::Object::Type::URLResponse: {
-            API::URLResponse* urlResponseObject = static_cast&lt;API::URLResponse*&gt;(m_root);
-            encoder &lt;&lt; urlResponseObject-&gt;resourceResponse();
-            return true;
-        }
-        case API::Object::Type::UserContentURLPattern: {
-            API::UserContentURLPattern* urlPattern = static_cast&lt;API::UserContentURLPattern*&gt;(m_root);
-            encoder &lt;&lt; urlPattern-&gt;patternString();
-            return true;
-        }
-        case API::Object::Type::Image: {
-            WebImage* image = static_cast&lt;WebImage*&gt;(m_root);
-
-            ShareableBitmap::Handle handle;
-            ASSERT(!image-&gt;bitmap() || image-&gt;bitmap()-&gt;isBackedBySharedMemory());            
-            if (!image-&gt;bitmap() || !image-&gt;bitmap()-&gt;isBackedBySharedMemory() || !image-&gt;bitmap()-&gt;createHandle(handle)) {
-                // Initial false indicates no allocated bitmap or is not shareable.
-                encoder &lt;&lt; false;
-                return true;
-            }
-
-            // Initial true indicates a bitmap was allocated and is shareable.
-            encoder &lt;&lt; true;
-
-            encoder &lt;&lt; handle;
-            return true;
-        }
-        case API::Object::Type::Data: {
-            API::Data* data = static_cast&lt;API::Data*&gt;(m_root);
-            encoder &lt;&lt; data-&gt;dataReference();
-            return true;
-        }
-        case API::Object::Type::CertificateInfo: {
-            WebCertificateInfo* certificateInfo = static_cast&lt;WebCertificateInfo*&gt;(m_root);
-            encoder &lt;&lt; certificateInfo-&gt;certificateInfo();
-            return true;
-        }
-        case API::Object::Type::Error: {
-            API::Error* errorObject = static_cast&lt;API::Error*&gt;(m_root);
-            encoder &lt;&lt; errorObject-&gt;platformError();
-            return true;
-        }
-        default:
-            break;
-        }
-
-        return false;
-    }
-
-protected:
-    UserMessageEncoder(API::Object* root) 
-        : m_root(root)
-    {
-    }
-
-    API::Object* m_root;
-};
-
-
-// Handles
-//   - Null -&gt; Null
-//   - API::Array -&gt; API::Array
-//   - Dictionary -&gt; Dictionary
-//   - SerializedScriptValue -&gt; SerializedScriptValue
-//   - API::String -&gt; API::String
-//   - UserContentURLPattern -&gt; UserContentURLPattern
-//   - WebCertificateInfo -&gt; WebCertificateInfo
-//   - API::Data -&gt; API::Data
-//   - API::Double -&gt; API::Double
-//   - WebImage -&gt; WebImage
-//   - API::UInt64 -&gt; API::UInt64
-//   - API::URL -&gt; API::URL
-//   - API::URLRequest -&gt; API::URLRequest
-//   - API::URLResponse -&gt; API::URLResponse
-//   - API::Error -&gt; API::Error
-
-template&lt;typename Owner&gt;
-class UserMessageDecoder {
-public:
-    static bool baseDecode(IPC::ArgumentDecoder&amp; decoder, Owner&amp; coder, API::Object::Type&amp; type)
-    {
-        uint32_t typeAsUInt32;
-        if (!decoder.decode(typeAsUInt32))
-            return false;
-
-        type = static_cast&lt;API::Object::Type&gt;(typeAsUInt32);
-
-        switch (type) {
-        case API::Object::Type::Array: {
-            uint64_t size;
-            if (!decoder.decode(size))
-                return false;
-
-            Vector&lt;RefPtr&lt;API::Object&gt;&gt; vector;
-            for (size_t i = 0; i &lt; size; ++i) {
-                RefPtr&lt;API::Object&gt; element;
-                Owner messageCoder(coder, element);
-                if (!decoder.decode(messageCoder))
-                    return false;
-                vector.append(element.release());
-            }
-
-            coder.m_root = API::Array::create(WTF::move(vector));
-            break;
-        }
-        case API::Object::Type::Dictionary: {
-            uint64_t size;
-            if (!decoder.decode(size))
-                return false;
-
-            API::Dictionary::MapType map;
-            for (size_t i = 0; i &lt; size; ++i) {
-                String key;
-                if (!decoder.decode(key))
-                    return false;
-
-                RefPtr&lt;API::Object&gt; element;
-                Owner messageCoder(coder, element);
-                if (!decoder.decode(messageCoder))
-                    return false;
-
-                API::Dictionary::MapType::AddResult result = map.set(key, element.release());
-                if (!result.isNewEntry)
-                    return false;
-            }
-
-            coder.m_root = API::Dictionary::create(WTF::move(map));
-            break;
-        }
-        case API::Object::Type::String: {
-            String string;
-            if (!decoder.decode(string))
-                return false;
-            coder.m_root = API::String::create(string);
-            break;
-        }
-        case API::Object::Type::SerializedScriptValue: {
-            IPC::DataReference dataReference;
-            if (!decoder.decode(dataReference))
-                return false;
-            
-            Vector&lt;uint8_t&gt; vector = dataReference.vector();
-            coder.m_root = API::SerializedScriptValue::adopt(vector);
-            break;
-        }
-        case API::Object::Type::Double: {
-            double value;
-            if (!decoder.decode(value))
-                return false;
-            coder.m_root = API::Double::create(value);
-            break;
-        }
-        case API::Object::Type::UInt64: {
-            uint64_t value;
-            if (!decoder.decode(value))
-                return false;
-            coder.m_root = API::UInt64::create(value);
-            break;
-        }
-        case API::Object::Type::Boolean: {
-            bool value;
-            if (!decoder.decode(value))
-                return false;
-            coder.m_root = API::Boolean::create(value);
-            break;
-        }
-        case API::Object::Type::Size: {
-            double width;
-            double height;
-            if (!decoder.decode(width))
-                return false;
-            if (!decoder.decode(height))
-                return false;
-            coder.m_root = API::Size::create(WKSizeMake(width, height));
-            break;
-        }
-        case API::Object::Type::Point: {
-            double x;
-            double y;
-            if (!decoder.decode(x))
-                return false;
-            if (!decoder.decode(y))
-                return false;
-            coder.m_root = API::Point::create(WKPointMake(x, y));
-            break;
-        }
-        case API::Object::Type::Rect: {
-            double x;
-            double y;
-            double width;
-            double height;
-            if (!decoder.decode(x))
-                return false;
-            if (!decoder.decode(y))
-                return false;
-            if (!decoder.decode(width))
-                return false;
-            if (!decoder.decode(height))
-                return false;
-            coder.m_root = API::Rect::create(WKRectMake(x, y, width, height));
-            break;
-        }
-        case API::Object::Type::RenderLayer: {
-            RefPtr&lt;API::Object&gt; renderer;
-            bool isReflection;
-            bool isClipping;
-            bool isClipped;
-            uint32_t compositingLayerTypeAsUInt32;
-            WebCore::IntRect absoluteBoundingBox;
-            double backingStoreMemoryEstimate;
-            RefPtr&lt;API::Object&gt; negativeZOrderList;
-            RefPtr&lt;API::Object&gt; normalFlowList;
-            RefPtr&lt;API::Object&gt; positiveZOrderList;
-            RefPtr&lt;API::Object&gt; frameContentsLayer;
-
-            Owner rendererCoder(coder, renderer);
-            if (!decoder.decode(rendererCoder))
-                return false;
-            if (renderer-&gt;type() != API::Object::Type::RenderObject)
-                return false;
-            if (!decoder.decode(isReflection))
-                return false;
-            if (!decoder.decode(isClipping))
-                return false;
-            if (!decoder.decode(isClipped))
-                return false;
-            if (!decoder.decode(compositingLayerTypeAsUInt32))
-                return false;
-            if (!decoder.decode(absoluteBoundingBox))
-                return false;
-            if (!decoder.decode(backingStoreMemoryEstimate))
-                return false;
-            Owner negativeZOrderListCoder(coder, negativeZOrderList);
-            if (!decoder.decode(negativeZOrderListCoder))
-                return false;
-            Owner normalFlowListCoder(coder, normalFlowList);
-            if (!decoder.decode(normalFlowListCoder))
-                return false;
-            Owner positiveZOrderListCoder(coder, positiveZOrderList);
-            if (!decoder.decode(positiveZOrderListCoder))
-                return false;
-
-            Owner frameContentsLayerCoder(coder, frameContentsLayer);
-            if (!decoder.decode(frameContentsLayerCoder))
-                return false;
-
-            coder.m_root = WebRenderLayer::create(static_pointer_cast&lt;WebRenderObject&gt;(renderer), isReflection, isClipping, isClipped, static_cast&lt;WebRenderLayer::CompositingLayerType&gt;(compositingLayerTypeAsUInt32),
-                absoluteBoundingBox, backingStoreMemoryEstimate, static_pointer_cast&lt;API::Array&gt;(negativeZOrderList), static_pointer_cast&lt;API::Array&gt;(normalFlowList),
-                static_pointer_cast&lt;API::Array&gt;(positiveZOrderList), static_pointer_cast&lt;WebRenderLayer&gt;(frameContentsLayer));
-            break;
-        }
-        case API::Object::Type::RenderObject: {
-            String name;
-            String textSnippet;
-            String elementTagName;
-            String elementID;
-            unsigned textLength;
-            RefPtr&lt;API::Object&gt; elementClassNames;
-            WebCore::IntPoint absolutePosition;
-            WebCore::IntRect frameRect;
-            RefPtr&lt;API::Object&gt; children;
-            
-            if (!decoder.decode(name))
-                return false;
-            if (!decoder.decode(elementTagName))
-                return false;
-            if (!decoder.decode(elementID))
-                return false;
-            Owner classNamesCoder(coder, elementClassNames);
-            if (!decoder.decode(classNamesCoder))
-                return false;
-            if (!decoder.decode(absolutePosition))
-                return false;
-            if (!decoder.decode(frameRect))
-                return false;
-            if (!decoder.decode(textSnippet))
-                return false;
-            if (!decoder.decode(textLength))
-                return false;
-            Owner messageCoder(coder, children);
-            if (!decoder.decode(messageCoder))
-                return false;
-            if (children &amp;&amp; children-&gt;type() != API::Object::Type::Array)
-                return false;
-            coder.m_root = WebRenderObject::create(name, elementTagName, elementID, static_pointer_cast&lt;API::Array&gt;(elementClassNames), absolutePosition, frameRect, textSnippet, textLength, static_pointer_cast&lt;API::Array&gt;(children));
-            break;
-        }
-        case API::Object::Type::URL: {
-            String string;
-            if (!decoder.decode(string))
-                return false;
-            coder.m_root = API::URL::create(string);
-            break;
-        }
-        case API::Object::Type::URLRequest: {
-            WebCore::ResourceRequest request;
-            if (!decoder.decode(request))
-                return false;
-            coder.m_root = API::URLRequest::create(request);
-            break;
-        }
-        case API::Object::Type::URLResponse: {
-            WebCore::ResourceResponse response;
-            if (!decoder.decode(response))
-                return false;
-            coder.m_root = API::URLResponse::create(response);
-            break;
-        }
-        case API::Object::Type::UserContentURLPattern: {
-            String string;
-            if (!decoder.decode(string))
-                return false;
-            coder.m_root = API::UserContentURLPattern::create(string);
-            break;
-        }
-        case API::Object::Type::Image: {
-            bool didEncode = false;
-            if (!decoder.decode(didEncode))
-                return false;
-
-            if (!didEncode)
-                break;
-
-            ShareableBitmap::Handle handle;
-            if (!decoder.decode(handle))
-                return false;
-
-            coder.m_root = WebImage::create(ShareableBitmap::create(handle));
-            return true;
-        }
-        case API::Object::Type::Data: {
-            IPC::DataReference dataReference;
-            if (!decoder.decode(dataReference))
-                return false;
-            coder.m_root = API::Data::create(dataReference.data(), dataReference.size());
-            break;
-        }
-        case API::Object::Type::CertificateInfo: {
-            WebCore::CertificateInfo certificateInfo;
-            if (!decoder.decode(certificateInfo))
-                return false;
-            coder.m_root = WebCertificateInfo::create(certificateInfo);
-            break;
-        }
-        case API::Object::Type::Error: {
-            WebCore::ResourceError resourceError;
-            if (!decoder.decode(resourceError))
-                return false;
-            coder.m_root = API::Error::create(resourceError);
-            break;
-        }
-        default:
-            break;
-        }
-
-        return true;
-    }
-
-protected:
-    UserMessageDecoder(RefPtr&lt;API::Object&gt;&amp; root)
-        : m_root(root)
-    {
-    }
-
-    RefPtr&lt;API::Object&gt;&amp; m_root;
-};
-
-} // namespace WebKit
-
-#endif // UserMessageCoders_h
</del></span></pre></div>
<a id="trunkSourceWebKit2SharedmacObjCObjectGraphCodersh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit2/Shared/mac/ObjCObjectGraphCoders.h (177805 => 177806)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/mac/ObjCObjectGraphCoders.h        2014-12-29 19:35:48 UTC (rev 177805)
+++ trunk/Source/WebKit2/Shared/mac/ObjCObjectGraphCoders.h        2014-12-29 19:38:19 UTC (rev 177806)
</span><span class="lines">@@ -1,82 +0,0 @@
</span><del>-/*
- * Copyright (C) 2012 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef ObjCObjectGraphCoders_h
-#define ObjCObjectGraphCoders_h
-
-#include &quot;ArgumentDecoder.h&quot;
-#include &quot;ArgumentEncoder.h&quot;
-#include &quot;ObjCObjectGraph.h&quot;
-#include &lt;wtf/RefPtr.h&gt;
-
-namespace WebKit {
-
-class WebProcess;
-class WebProcessProxy;
-
-class WebContextObjCObjectGraphEncoder {
-public:
-    explicit WebContextObjCObjectGraphEncoder(ObjCObjectGraph*, WebProcessProxy&amp;);
-    void encode(IPC::ArgumentEncoder&amp;) const;
-
-private:
-    ObjCObjectGraph* m_objectGraph;
-    WebProcessProxy&amp; m_process;
-};
-
-class WebContextObjCObjectGraphDecoder {
-public:
-    explicit WebContextObjCObjectGraphDecoder(RefPtr&lt;ObjCObjectGraph&gt;&amp;, WebProcessProxy&amp;);
-    static bool decode(IPC::ArgumentDecoder&amp;, WebContextObjCObjectGraphDecoder&amp;);
-
-private:
-    RefPtr&lt;ObjCObjectGraph&gt;&amp; m_objectGraph;
-    WebProcessProxy&amp; m_process;
-};
-
-
-class InjectedBundleObjCObjectGraphEncoder {
-public:
-    explicit InjectedBundleObjCObjectGraphEncoder(ObjCObjectGraph*, WebProcess&amp;);
-    void encode(IPC::ArgumentEncoder&amp;) const;
-
-private:
-    ObjCObjectGraph* m_objectGraph;
-    WebProcess&amp; m_process;
-};
-
-class InjectedBundleObjCObjectGraphDecoder {
-public:
-    explicit InjectedBundleObjCObjectGraphDecoder(RefPtr&lt;ObjCObjectGraph&gt;&amp;, WebProcess&amp;);
-    static bool decode(IPC::ArgumentDecoder&amp;, InjectedBundleObjCObjectGraphDecoder&amp;);
-
-private:
-    RefPtr&lt;ObjCObjectGraph&gt;&amp; m_objectGraph;
-    WebProcess&amp; m_process;
-};
-
-} // namespace WebKit
-
-#endif // ObjCObjectGraphCoders_h
</del></span></pre></div>
<a id="trunkSourceWebKit2SharedmacObjCObjectGraphCodersmm"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit2/Shared/mac/ObjCObjectGraphCoders.mm (177805 => 177806)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/mac/ObjCObjectGraphCoders.mm        2014-12-29 19:35:48 UTC (rev 177805)
+++ trunk/Source/WebKit2/Shared/mac/ObjCObjectGraphCoders.mm        2014-12-29 19:38:19 UTC (rev 177806)
</span><span class="lines">@@ -1,549 +0,0 @@
</span><del>-/*
- * Copyright (C) 2012 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import &quot;config.h&quot;
-#import &quot;ObjCObjectGraphCoders.h&quot;
-
-#import &quot;ArgumentCodersMac.h&quot;
-#import &quot;WKTypeRefWrapper.h&quot;
-
-// For UIProcess side encoding/decoding
-#import &quot;WKAPICast.h&quot;
-#import &quot;WKBrowsingContextControllerInternal.h&quot;
-#import &quot;WebContextUserMessageCoders.h&quot;
-#import &quot;WebPageProxy.h&quot;
-#import &quot;WebProcessProxy.h&quot;
-
-// For WebProcess side encoding/decoding
-#import &quot;InjectedBundleUserMessageCoders.h&quot;
-#import &quot;WKBundleAPICast.h&quot;
-#import &quot;WKWebProcessPlugInBrowserContextControllerInternal.h&quot;
-#import &quot;WKWebProcessPlugInInternal.h&quot;
-#import &quot;WebPage.h&quot;
-#import &quot;WebProcess.h&quot;
-
-namespace WebKit {
-
-enum WebKitNSType {
-    NullType,
-    NSDictionaryType,
-    NSArrayType,
-    NSStringType,
-    NSNumberType,
-    NSDateType,
-    NSDataType,
-#if WK_API_ENABLED
-    WKBrowsingContextControllerType,
-    WKTypeRefWrapperType,
-#endif
-    UnknownType,
-};
-
-static WebKitNSType typeFromObject(id object)
-{
-    ASSERT(object);
-
-    if ([object isKindOfClass:[NSDictionary class]])
-        return NSDictionaryType;
-    if ([object isKindOfClass:[NSString class]])
-        return NSStringType;
-    if ([object isKindOfClass:[NSArray class]])
-        return NSArrayType;
-    if ([object isKindOfClass:[NSNumber class]])
-        return NSNumberType;
-    if ([object isKindOfClass:[NSDate class]])
-        return NSDateType;
-    if ([object isKindOfClass:[NSData class]])
-        return NSDataType;
-#if WK_API_ENABLED
-    if ([object isKindOfClass:[WKBrowsingContextController class]] || [object isKindOfClass:[WKWebProcessPlugInBrowserContextController class]])
-        return WKBrowsingContextControllerType;
-    if ([object isKindOfClass:[WKTypeRefWrapper class]])
-        return WKTypeRefWrapperType;
-#endif
-
-    return UnknownType;
-}
-
-template&lt;typename Owner&gt;
-class ObjCObjectGraphEncoder {
-public:
-    bool baseEncode(IPC::ArgumentEncoder&amp; encoder, const Owner&amp; coder, WebKitNSType&amp; type) const
-    {
-        if (!m_root) {
-            encoder &lt;&lt; static_cast&lt;uint32_t&gt;(NullType);
-            return true;
-        }
-
-        type = typeFromObject(m_root);
-        if (type == UnknownType) {
-            [NSException raise:NSInvalidArgumentException format:@&quot;Can not encode objects of class type '%@'&quot;, static_cast&lt;NSString *&gt;(NSStringFromClass([m_root class]))];
-        }
-
-        encoder &lt;&lt; static_cast&lt;uint32_t&gt;(type);
-
-        switch (type) {
-        case NSStringType: {
-            IPC::encode(encoder, static_cast&lt;NSString *&gt;(m_root));
-            return true;
-        }
-        case NSArrayType: {
-            NSArray *array = static_cast&lt;NSArray *&gt;(m_root);
-
-            NSUInteger size = [array count];
-            encoder &lt;&lt; static_cast&lt;uint64_t&gt;(size);
-
-            for (NSUInteger i = 0; i &lt; size; ++i)
-                encoder &lt;&lt; Owner(coder, [array objectAtIndex:i]);
-            return true;
-        }
-        case NSDictionaryType: {
-            NSDictionary* dictionary = static_cast&lt;NSDictionary *&gt;(m_root);
-
-            NSUInteger size = [dictionary count];
-            encoder &lt;&lt; static_cast&lt;uint64_t&gt;(size);
-
-            NSArray *keys = [dictionary allKeys];
-            NSArray *values = [dictionary allValues];
-            for (NSUInteger i = 0; i &lt; size; ++i) {
-                encoder &lt;&lt; Owner(coder, [keys objectAtIndex:i]);
-                encoder &lt;&lt; Owner(coder, [values objectAtIndex:i]);
-            }
-
-            return true;
-        }
-        case NSNumberType: {
-            IPC::encode(encoder, static_cast&lt;NSNumber *&gt;(m_root));
-            return true;
-        }
-        case NSDateType: {
-            IPC::encode(encoder, static_cast&lt;NSDate *&gt;(m_root));
-            return true;
-        }
-        case NSDataType: {
-            IPC::encode(encoder, static_cast&lt;NSData *&gt;(m_root));
-            return true;
-        }
-        default:
-            break;
-        }
-
-        return false;
-    }
-
-protected:
-    ObjCObjectGraphEncoder(id root)
-        : m_root(root)
-    {
-    }
-
-    id m_root;
-};
-
-template&lt;typename Owner&gt;
-class ObjCObjectGraphDecoder {
-public:
-    static bool baseDecode(IPC::ArgumentDecoder&amp; decoder, Owner&amp; coder, WebKitNSType&amp; type)
-    {
-        uint32_t typeAsUInt32;
-        if (!decoder.decode(typeAsUInt32))
-            return false;
-
-        type = static_cast&lt;WebKitNSType&gt;(typeAsUInt32);
-
-        switch (type) {
-        case NSStringType: {
-            RetainPtr&lt;NSString&gt; string;
-            if (!IPC::decode(decoder, string))
-                return false;
-            coder.m_root = string;
-            break;
-        }
-        case NSArrayType: {
-            uint64_t size;
-            if (!decoder.decode(size))
-                return false;
-
-            RetainPtr&lt;NSMutableArray&gt; array = adoptNS([[NSMutableArray alloc] initWithCapacity:size]);
-            for (uint64_t i = 0; i &lt; size; ++i) {
-                RetainPtr&lt;id&gt; value;
-                Owner messageCoder(coder, value);
-                if (!decoder.decode(messageCoder))
-                    return false;
-
-                [array addObject:value.get()];
-            }
-
-            coder.m_root = array;
-            break;
-        }
-        case NSDictionaryType: {
-            uint64_t size;
-            if (!decoder.decode(size))
-                return false;
-
-            RetainPtr&lt;NSMutableDictionary&gt; dictionary = adoptNS([[NSMutableDictionary alloc] initWithCapacity:size]);
-            for (uint64_t i = 0; i &lt; size; ++i) {
-                // Try to decode the key name.
-                RetainPtr&lt;id&gt; key;
-                Owner keyMessageCoder(coder, key);
-                if (!decoder.decode(keyMessageCoder))
-                    return false;
-
-                RetainPtr&lt;id&gt; value;
-                Owner valueMessageCoder(coder, value);
-                if (!decoder.decode(valueMessageCoder))
-                    return false;
-
-                [dictionary setObject:value.get() forKey:key.get()];
-            }
-
-            coder.m_root = dictionary;
-            break;
-        }
-        case NSNumberType: {
-            RetainPtr&lt;NSNumber&gt; number;
-            if (!IPC::decode(decoder, number))
-                return false;
-            coder.m_root = number;
-            break;
-        }
-        case NSDateType: {
-            RetainPtr&lt;NSDate&gt; date;
-            if (!IPC::decode(decoder, date))
-                return false;
-            coder.m_root = date;
-            break;
-        }
-        case NSDataType: {
-            RetainPtr&lt;NSData&gt; data;
-            if (!IPC::decode(decoder, data))
-                return false;
-            coder.m_root = data;
-            break;
-        }
-        default:
-            break;
-        }
-
-        return true;
-    }
-
-protected:
-    ObjCObjectGraphDecoder(RetainPtr&lt;id&gt;&amp; root)
-        : m_root(root)
-    {
-    }
-
-    RetainPtr&lt;id&gt;&amp; m_root;
-};
-
-
-// ProcessPool Additions
-
-class WebContextObjCObjectGraphEncoderImpl : public ObjCObjectGraphEncoder&lt;WebContextObjCObjectGraphEncoderImpl&gt; {
-public:
-    typedef ObjCObjectGraphEncoder&lt;WebContextObjCObjectGraphEncoderImpl&gt; Base;
-
-    explicit WebContextObjCObjectGraphEncoderImpl(id root, WebProcessProxy&amp; process)
-        : Base(root)
-        , m_process(process)
-    {
-    }
-
-    WebContextObjCObjectGraphEncoderImpl(const WebContextObjCObjectGraphEncoderImpl&amp; userMessageEncoder, id root)
-        : Base(root)
-        , m_process(userMessageEncoder.m_process)
-    {
-    }
-
-    void encode(IPC::ArgumentEncoder&amp; encoder) const
-    {
-        WebKitNSType type = NullType;
-        if (baseEncode(encoder, *this, type))
-            return;
-
-        switch (type) {
-#if WK_API_ENABLED
-        case WKBrowsingContextControllerType: {
-            WKBrowsingContextController *browsingContextController = static_cast&lt;WKBrowsingContextController *&gt;(m_root);
-
-            encoder &lt;&lt; toImpl(browsingContextController._pageRef)-&gt;pageID();
-            break;
-        }
-        case WKTypeRefWrapperType: {
-            WKTypeRefWrapper *wrapper = static_cast&lt;WKTypeRefWrapper *&gt;(m_root);
-            encoder &lt;&lt; WebContextUserMessageEncoder(toImpl(wrapper.object), m_process);
-            break;
-        }
-#endif
-        default:
-            ASSERT_NOT_REACHED();
-            break;
-        }
-    }
-
-private:
-    WebProcessProxy&amp; m_process;
-};
-
-
-class WebContextObjCObjectGraphDecoderImpl : public ObjCObjectGraphDecoder&lt;WebContextObjCObjectGraphDecoderImpl&gt; {
-public:
-    typedef ObjCObjectGraphDecoder&lt;WebContextObjCObjectGraphDecoderImpl&gt; Base;
-
-    WebContextObjCObjectGraphDecoderImpl(RetainPtr&lt;id&gt;&amp; root, WebProcessProxy&amp; process)
-        : Base(root)
-        , m_process(process)
-    {
-    }
-
-    WebContextObjCObjectGraphDecoderImpl(WebContextObjCObjectGraphDecoderImpl&amp; userMessageDecoder, RetainPtr&lt;id&gt;&amp; root)
-        : Base(root)
-        , m_process(userMessageDecoder.m_process)
-    {
-    }
-
-    static bool decode(IPC::ArgumentDecoder&amp; decoder, WebContextObjCObjectGraphDecoderImpl&amp; coder)
-    {
-        WebKitNSType type = NullType;
-        if (!Base::baseDecode(decoder, coder, type))
-            return false;
-
-        if (coder.m_root)
-            return true;
-
-        if (type == NullType || type == UnknownType) {
-            coder.m_root = [NSNull null];
-            return true;
-        }
-
-        switch (type) {
-#if WK_API_ENABLED
-        case WKBrowsingContextControllerType: {
-            uint64_t pageID;
-            if (!decoder.decode(pageID))
-                return false;
-
-            WebPageProxy* webPage = coder.m_process.webPage(pageID);
-            if (!webPage)
-                coder.m_root = [NSNull null];
-            else 
-                coder.m_root = [WKBrowsingContextController _browsingContextControllerForPageRef:toAPI(webPage)];
-            break;
-        }
-        case WKTypeRefWrapperType: {
-            RefPtr&lt;API::Object&gt; object;
-            WebContextUserMessageDecoder objectDecoder(object, coder.m_process);
-            if (!decoder.decode(objectDecoder))
-                return false;
-            coder.m_root = adoptNS([[WKTypeRefWrapper alloc] initWithObject:toAPI(object.get())]);
-            break;
-        }
-#endif
-        default:
-            return false;
-        }
-
-        return true;
-    }
-
-private:
-    WebProcessProxy&amp; m_process;
-};
-
-
-// InjectedBundle Additions
-
-class InjectedBundleObjCObjectGraphEncoderImpl : public ObjCObjectGraphEncoder&lt;InjectedBundleObjCObjectGraphEncoderImpl&gt; {
-public:
-    typedef ObjCObjectGraphEncoder&lt;InjectedBundleObjCObjectGraphEncoderImpl&gt; Base;
-
-    explicit InjectedBundleObjCObjectGraphEncoderImpl(id root, WebProcess&amp; process)
-        : Base(root)
-        , m_process(process)
-    {
-    }
-
-    explicit InjectedBundleObjCObjectGraphEncoderImpl(const InjectedBundleObjCObjectGraphEncoderImpl&amp; encoder, id root)
-        : Base(root)
-        , m_process(encoder.m_process)
-    {
-    }
-
-    void encode(IPC::ArgumentEncoder&amp; encoder) const
-    {
-        WebKitNSType type = NullType;
-        if (baseEncode(encoder, *this, type))
-            return;
-
-        switch (type) {
-#if WK_API_ENABLED
-        case WKBrowsingContextControllerType: {
-            WKWebProcessPlugInBrowserContextController *browserContextController = static_cast&lt;WKWebProcessPlugInBrowserContextController *&gt;(m_root);
-
-            encoder &lt;&lt; toImpl(browserContextController._bundlePageRef)-&gt;pageID();
-            break;
-        }
-        case WKTypeRefWrapperType: {
-            WKTypeRefWrapper *wrapper = static_cast&lt;WKTypeRefWrapper *&gt;(m_root);
-            encoder &lt;&lt; InjectedBundleUserMessageEncoder(toImpl(wrapper.object));
-            break;
-        }
-#endif
-        default:
-            ASSERT_NOT_REACHED();
-            break;
-        }
-    }
-
-private:
-    WebProcess&amp; m_process;
-};
-
-class InjectedBundleObjCObjectGraphDecoderImpl : public ObjCObjectGraphDecoder&lt;InjectedBundleObjCObjectGraphDecoderImpl&gt; {
-public:
-    typedef ObjCObjectGraphDecoder&lt;InjectedBundleObjCObjectGraphDecoderImpl&gt; Base;
-
-    InjectedBundleObjCObjectGraphDecoderImpl(RetainPtr&lt;id&gt;&amp; root, WebProcess&amp; process)
-        : Base(root)
-        , m_process(process)
-    {
-    }
-
-    InjectedBundleObjCObjectGraphDecoderImpl(InjectedBundleObjCObjectGraphDecoderImpl&amp; userMessageDecoder, RetainPtr&lt;id&gt;&amp; root)
-        : Base(root)
-        , m_process(userMessageDecoder.m_process)
-    {
-    }
-
-    static bool decode(IPC::ArgumentDecoder&amp; decoder, InjectedBundleObjCObjectGraphDecoderImpl&amp; coder)
-    {
-        WebKitNSType type = NullType;
-        if (!Base::baseDecode(decoder, coder, type))
-            return false;
-
-        if (coder.m_root)
-            return true;
-
-        if (type == NullType || type == UnknownType) {
-            coder.m_root = [NSNull null];
-            return true;
-        }
-
-        switch (type) {
-#if WK_API_ENABLED
-        case WKBrowsingContextControllerType: {
-            uint64_t pageID;
-            if (!decoder.decode(pageID))
-                return false;
-
-            WebPage* webPage = coder.m_process.webPage(pageID);
-            if (!webPage)
-                coder.m_root = [NSNull null];
-            else 
-                coder.m_root = wrapper(*webPage);
-            break;
-        }
-        case WKTypeRefWrapperType: {
-            RefPtr&lt;API::Object&gt; object;
-            InjectedBundleUserMessageDecoder objectDecoder(object);
-            if (!decoder.decode(objectDecoder))
-                return false;
-            coder.m_root = adoptNS([[WKTypeRefWrapper alloc] initWithObject:toAPI(object.get())]);
-            break;
-        }
-#endif
-        default:
-            return false;
-        }
-
-        return true;
-    }
-
-private:
-    WebProcess&amp; m_process;
-};
-
-
-// Adaptors
-
-WebContextObjCObjectGraphEncoder::WebContextObjCObjectGraphEncoder(ObjCObjectGraph* objectGraph, WebProcessProxy&amp; process)
-    : m_objectGraph(objectGraph)
-    , m_process(process)
-{
-}
-
-void WebContextObjCObjectGraphEncoder::encode(IPC::ArgumentEncoder&amp; encoder) const
-{
-    encoder &lt;&lt; WebContextObjCObjectGraphEncoderImpl(m_objectGraph-&gt;rootObject(), m_process);
-}
-
-WebContextObjCObjectGraphDecoder::WebContextObjCObjectGraphDecoder(RefPtr&lt;ObjCObjectGraph&gt;&amp; objectGraph, WebProcessProxy&amp; process)
-    : m_objectGraph(objectGraph)
-    , m_process(process)
-{
-}
-
-bool WebContextObjCObjectGraphDecoder::decode(IPC::ArgumentDecoder&amp; decoder, WebContextObjCObjectGraphDecoder&amp; coder)
-{
-    RetainPtr&lt;id&gt; root;
-    WebContextObjCObjectGraphDecoderImpl coderImpl(root, coder.m_process);
-    if (!decoder.decode(coderImpl))
-        return false;
-
-    coder.m_objectGraph = ObjCObjectGraph::create(root.get());
-    return true;
-}
-
-InjectedBundleObjCObjectGraphEncoder::InjectedBundleObjCObjectGraphEncoder(ObjCObjectGraph* objectGraph, WebProcess&amp; process)
-    : m_objectGraph(objectGraph)
-    , m_process(process)
-{
-}
-
-void InjectedBundleObjCObjectGraphEncoder::encode(IPC::ArgumentEncoder&amp; encoder) const
-{
-    encoder &lt;&lt; InjectedBundleObjCObjectGraphEncoderImpl(m_objectGraph-&gt;rootObject(), m_process);
-}
-
-InjectedBundleObjCObjectGraphDecoder::InjectedBundleObjCObjectGraphDecoder(RefPtr&lt;ObjCObjectGraph&gt;&amp; objectGraph, WebProcess&amp; process)
-    : m_objectGraph(objectGraph)
-    , m_process(process)
-{
-}
-
-bool InjectedBundleObjCObjectGraphDecoder::decode(IPC::ArgumentDecoder&amp; decoder, InjectedBundleObjCObjectGraphDecoder&amp; coder)
-{
-    RetainPtr&lt;id&gt; root;
-    InjectedBundleObjCObjectGraphDecoderImpl coderImpl(root, coder.m_process);
-    if (!decoder.decode(coderImpl))
-        return false;
-
-    coder.m_objectGraph = ObjCObjectGraph::create(root.get());
-    return true;
-}
-
-} // namespace WebKit
</del></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebConnectionToWebProcesscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebConnectionToWebProcess.cpp (177805 => 177806)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebConnectionToWebProcess.cpp        2014-12-29 19:35:48 UTC (rev 177805)
+++ trunk/Source/WebKit2/UIProcess/WebConnectionToWebProcess.cpp        2014-12-29 19:38:19 UTC (rev 177806)
</span><span class="lines">@@ -27,7 +27,6 @@
</span><span class="cx"> #include &quot;WebConnectionToWebProcess.h&quot;
</span><span class="cx"> 
</span><span class="cx"> #include &quot;WebConnectionMessages.h&quot;
</span><del>-#include &quot;WebContextUserMessageCoders.h&quot;
</del><span class="cx"> #include &quot;WebProcessProxy.h&quot;
</span><span class="cx"> 
</span><span class="cx"> namespace WebKit {
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebContextUserMessageCodersh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit2/UIProcess/WebContextUserMessageCoders.h (177805 => 177806)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebContextUserMessageCoders.h        2014-12-29 19:35:48 UTC (rev 177805)
+++ trunk/Source/WebKit2/UIProcess/WebContextUserMessageCoders.h        2014-12-29 19:38:19 UTC (rev 177806)
</span><span class="lines">@@ -1,171 +0,0 @@
</span><del>-/*
- * Copyright (C) 2010 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include &quot;UserMessageCoders.h&quot;
-#include &quot;WebFrameProxy.h&quot;
-#include &quot;WebPageGroup.h&quot;
-#include &quot;WebPageGroupData.h&quot;
-#include &quot;WebPageProxy.h&quot;
-
-#if PLATFORM(COCOA)
-#include &quot;ObjCObjectGraphCoders.h&quot;
-#endif
-
-namespace WebKit {
-
-// Adds
-// - Page -&gt; BundlePage
-// - Frame -&gt; BundleFrame
-// - PageGroup -&gt; BundlePageGroup
-
-class WebContextUserMessageEncoder : public UserMessageEncoder&lt;WebContextUserMessageEncoder&gt; {
-public:
-    typedef UserMessageEncoder&lt;WebContextUserMessageEncoder&gt; Base;
-
-    explicit WebContextUserMessageEncoder(API::Object* root, WebProcessProxy&amp; process)
-        : Base(root)
-        , m_process(process)
-    {
-    }
-
-    WebContextUserMessageEncoder(const WebContextUserMessageEncoder&amp; userMessageEncoder, API::Object* root)
-        : Base(root)
-        , m_process(userMessageEncoder.m_process)
-    {
-    }
-
-    void encode(IPC::ArgumentEncoder&amp; encoder) const
-    {
-        API::Object::Type type = API::Object::Type::Null;
-        if (baseEncode(encoder, *this, type))
-            return;
-
-        switch (type) {
-        case API::Object::Type::Page: {
-            WebPageProxy* page = static_cast&lt;WebPageProxy*&gt;(m_root);
-            encoder &lt;&lt; page-&gt;pageID();
-            break;
-        }
-        case API::Object::Type::Frame: {
-            WebFrameProxy* frame = static_cast&lt;WebFrameProxy*&gt;(m_root);
-            encoder &lt;&lt; frame-&gt;frameID();
-            break;
-        }
-        case API::Object::Type::PageGroup: {
-            WebPageGroup* pageGroup = static_cast&lt;WebPageGroup*&gt;(m_root);
-            encoder &lt;&lt; pageGroup-&gt;data();
-            break;
-        }
-#if PLATFORM(COCOA)
-        case API::Object::Type::ObjCObjectGraph: {
-            ObjCObjectGraph* objectGraph = static_cast&lt;ObjCObjectGraph*&gt;(m_root);
-            encoder &lt;&lt; WebContextObjCObjectGraphEncoder(objectGraph, m_process);
-            break;
-        }
-#endif
-        default:
-            ASSERT_NOT_REACHED();
-            break;
-        }
-    }
-
-private:
-    WebProcessProxy&amp; m_process;
-};
-
-// Adds
-//   - Page -&gt; BundlePage
-//   - Frame -&gt; BundleFrame
-//   - PageGroup -&gt; BundlePageGroup
-
-class WebContextUserMessageDecoder : public UserMessageDecoder&lt;WebContextUserMessageDecoder&gt; {
-public:
-    typedef UserMessageDecoder&lt;WebContextUserMessageDecoder&gt; Base;
-
-    WebContextUserMessageDecoder(RefPtr&lt;API::Object&gt;&amp; root, WebProcessProxy&amp; process)
-        : Base(root)
-        , m_process(process)
-    {
-    }
-
-    WebContextUserMessageDecoder(WebContextUserMessageDecoder&amp; userMessageDecoder, RefPtr&lt;API::Object&gt;&amp; root)
-        : Base(root)
-        , m_process(userMessageDecoder.m_process)
-    {
-    }
-
-    static bool decode(IPC::ArgumentDecoder&amp; decoder, WebContextUserMessageDecoder&amp; coder)
-    {
-        API::Object::Type type = API::Object::Type::Null;
-        if (!Base::baseDecode(decoder, coder, type))
-            return false;
-
-        if (coder.m_root || type == API::Object::Type::Null)
-            return true;
-
-        switch (type) {
-        case API::Object::Type::BundlePage: {
-            uint64_t pageID;
-            if (!decoder.decode(pageID))
-                return false;
-            coder.m_root = coder.m_process.webPage(pageID);
-            break;
-        }
-        case API::Object::Type::BundleFrame: {
-            uint64_t frameID;
-            if (!decoder.decode(frameID))
-                return false;
-            coder.m_root = coder.m_process.webFrame(frameID);
-            break;
-        }
-        case API::Object::Type::BundlePageGroup: {
-            uint64_t pageGroupID;
-            if (!decoder.decode(pageGroupID))
-                return false;
-            coder.m_root = WebPageGroup::get(pageGroupID);
-            break;
-        }
-#if PLATFORM(COCOA)
-        case API::Object::Type::ObjCObjectGraph: {
-            RefPtr&lt;ObjCObjectGraph&gt; objectGraph;
-            WebContextObjCObjectGraphDecoder objectGraphDecoder(objectGraph, coder.m_process);
-            if (!decoder.decode(objectGraphDecoder))
-                return false;
-            coder.m_root = objectGraph.get();
-            break;
-        }
-#endif
-        default:
-            return false;
-        }
-
-        return true;
-    }
-
-private:
-    WebProcessProxy&amp; m_process;
-};
-
-} // namespace WebKit
</del></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebPageProxycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp (177805 => 177806)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp        2014-12-29 19:35:48 UTC (rev 177805)
+++ trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp        2014-12-29 19:38:19 UTC (rev 177806)
</span><span class="lines">@@ -30,6 +30,7 @@
</span><span class="cx"> #include &quot;APIArray.h&quot;
</span><span class="cx"> #include &quot;APIFindClient.h&quot;
</span><span class="cx"> #include &quot;APIFormClient.h&quot;
</span><ins>+#include &quot;APIGeometry.h&quot;
</ins><span class="cx"> #include &quot;APILegacyContextHistoryClient.h&quot;
</span><span class="cx"> #include &quot;APILoaderClient.h&quot;
</span><span class="cx"> #include &quot;APIPolicyClient.h&quot;
</span><span class="lines">@@ -62,7 +63,6 @@
</span><span class="cx"> #include &quot;WebBackForwardListItem.h&quot;
</span><span class="cx"> #include &quot;WebCertificateInfo.h&quot;
</span><span class="cx"> #include &quot;WebContextMenuProxy.h&quot;
</span><del>-#include &quot;WebContextUserMessageCoders.h&quot;
</del><span class="cx"> #include &quot;WebCoreArgumentCoders.h&quot;
</span><span class="cx"> #include &quot;WebEditCommandProxy.h&quot;
</span><span class="cx"> #include &quot;WebEvent.h&quot;
</span><span class="lines">@@ -71,6 +71,7 @@
</span><span class="cx"> #include &quot;WebFramePolicyListenerProxy.h&quot;
</span><span class="cx"> #include &quot;WebFullScreenManagerProxy.h&quot;
</span><span class="cx"> #include &quot;WebFullScreenManagerProxyMessages.h&quot;
</span><ins>+#include &quot;WebImage.h&quot;
</ins><span class="cx"> #include &quot;WebInspectorProxy.h&quot;
</span><span class="cx"> #include &quot;WebInspectorProxyMessages.h&quot;
</span><span class="cx"> #include &quot;WebNotificationManagerProxy.h&quot;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebProcessPoolcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp (177805 => 177806)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp        2014-12-29 19:35:48 UTC (rev 177805)
+++ trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp        2014-12-29 19:38:19 UTC (rev 177806)
</span><span class="lines">@@ -38,8 +38,8 @@
</span><span class="cx"> #include &quot;TextChecker.h&quot;
</span><span class="cx"> #include &quot;WKContextPrivate.h&quot;
</span><span class="cx"> #include &quot;WebApplicationCacheManagerProxy.h&quot;
</span><ins>+#include &quot;WebCertificateInfo.h&quot;
</ins><span class="cx"> #include &quot;WebContextSupplement.h&quot;
</span><del>-#include &quot;WebContextUserMessageCoders.h&quot;
</del><span class="cx"> #include &quot;WebCookieManagerProxy.h&quot;
</span><span class="cx"> #include &quot;WebCoreArgumentCoders.h&quot;
</span><span class="cx"> #include &quot;WebDatabaseManagerProxy.h&quot;
</span></span></pre></div>
<a id="trunkSourceWebKit2WebKit2xcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj (177805 => 177806)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj        2014-12-29 19:35:48 UTC (rev 177805)
+++ trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj        2014-12-29 19:38:19 UTC (rev 177806)
</span><span class="lines">@@ -1415,8 +1415,6 @@
</span><span class="cx">                 BC8A501511765F5600757573 /* WKRetainPtr.h in Headers */ = {isa = PBXBuildFile; fileRef = BC8A501411765F5600757573 /* WKRetainPtr.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 BC8ACA1316670D89004C1941 /* ObjCObjectGraph.h in Headers */ = {isa = PBXBuildFile; fileRef = BC8ACA0F16670D7A004C1941 /* ObjCObjectGraph.h */; };
</span><span class="cx">                 BC8ACA1416670D89004C1941 /* ObjCObjectGraph.mm in Sources */ = {isa = PBXBuildFile; fileRef = BC8ACA1016670D7B004C1941 /* ObjCObjectGraph.mm */; };
</span><del>-                BC8ACA1516670D89004C1941 /* ObjCObjectGraphCoders.h in Headers */ = {isa = PBXBuildFile; fileRef = BC8ACA1116670D7E004C1941 /* ObjCObjectGraphCoders.h */; };
-                BC8ACA1616670D89004C1941 /* ObjCObjectGraphCoders.mm in Sources */ = {isa = PBXBuildFile; fileRef = BC8ACA1216670D83004C1941 /* ObjCObjectGraphCoders.mm */; };
</del><span class="cx">                 BC8F2F2A16273A2C005FACB5 /* WKWebProcessPlugInBrowserContextController.mm in Sources */ = {isa = PBXBuildFile; fileRef = BC8F2F2816273A2B005FACB5 /* WKWebProcessPlugInBrowserContextController.mm */; };
</span><span class="cx">                 BC8F2F2B16273A2C005FACB5 /* WKWebProcessPlugInBrowserContextController.h in Headers */ = {isa = PBXBuildFile; fileRef = BC8F2F2916273A2C005FACB5 /* WKWebProcessPlugInBrowserContextController.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 BC8F2F2E16273ACC005FACB5 /* WKWebProcessPlugInBrowserContextControllerInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = BC8F2F2D16273ACB005FACB5 /* WKWebProcessPlugInBrowserContextControllerInternal.h */; };
</span><span class="lines">@@ -1449,9 +1447,6 @@
</span><span class="cx">                 BCAF361F16CA28CD00D4E9FC /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BC3DE46815A91763008D26FC /* Foundation.framework */; };
</span><span class="cx">                 BCAF362016CA28D600D4E9FC /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BC3DE46815A91763008D26FC /* Foundation.framework */; };
</span><span class="cx">                 BCAF362216CA292B00D4E9FC /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BC3DE46815A91763008D26FC /* Foundation.framework */; };
</span><del>-                BCB0B0DC12305A2500B1341E /* WebContextUserMessageCoders.h in Headers */ = {isa = PBXBuildFile; fileRef = BCB0B0DB12305A2500B1341E /* WebContextUserMessageCoders.h */; };
-                BCB0B0DE12305A8C00B1341E /* InjectedBundleUserMessageCoders.h in Headers */ = {isa = PBXBuildFile; fileRef = BCB0B0DD12305A8C00B1341E /* InjectedBundleUserMessageCoders.h */; };
-                BCB0B0E012305AB100B1341E /* UserMessageCoders.h in Headers */ = {isa = PBXBuildFile; fileRef = BCB0B0DF12305AB100B1341E /* UserMessageCoders.h */; };
</del><span class="cx">                 BCB63478116BF10600603215 /* WebKit2_C.h in Headers */ = {isa = PBXBuildFile; fileRef = BCB63477116BF10600603215 /* WebKit2_C.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 BCB9E24B1120E15C00A137E0 /* WKContext.h in Headers */ = {isa = PBXBuildFile; fileRef = BCB9E2491120E15C00A137E0 /* WKContext.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 BCB9E24C1120E15C00A137E0 /* WKContext.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCB9E24A1120E15C00A137E0 /* WKContext.cpp */; };
</span><span class="lines">@@ -3536,8 +3531,6 @@
</span><span class="cx">                 BC8A501411765F5600757573 /* WKRetainPtr.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKRetainPtr.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 BC8ACA0F16670D7A004C1941 /* ObjCObjectGraph.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ObjCObjectGraph.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 BC8ACA1016670D7B004C1941 /* ObjCObjectGraph.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ObjCObjectGraph.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                BC8ACA1116670D7E004C1941 /* ObjCObjectGraphCoders.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ObjCObjectGraphCoders.h; sourceTree = &quot;&lt;group&gt;&quot;; };
-                BC8ACA1216670D83004C1941 /* ObjCObjectGraphCoders.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ObjCObjectGraphCoders.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx">                 BC8F2F2816273A2B005FACB5 /* WKWebProcessPlugInBrowserContextController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WKWebProcessPlugInBrowserContextController.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 BC8F2F2916273A2C005FACB5 /* WKWebProcessPlugInBrowserContextController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKWebProcessPlugInBrowserContextController.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 BC8F2F2D16273ACB005FACB5 /* WKWebProcessPlugInBrowserContextControllerInternal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKWebProcessPlugInBrowserContextControllerInternal.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -3570,9 +3563,6 @@
</span><span class="cx">                 BCACC44016B24CAA00B6E092 /* Info-OSX.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = &quot;Info-OSX.plist&quot;; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 BCACC44316B24CAA00B6E092 /* Info-OSX.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = &quot;Info-OSX.plist&quot;; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 BCAE9DE9160C097400A33217 /* com.apple.WebKit.WebContent.Development.xpc */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = com.apple.WebKit.WebContent.Development.xpc; sourceTree = BUILT_PRODUCTS_DIR; };
</span><del>-                BCB0B0DB12305A2500B1341E /* WebContextUserMessageCoders.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebContextUserMessageCoders.h; sourceTree = &quot;&lt;group&gt;&quot;; };
-                BCB0B0DD12305A8C00B1341E /* InjectedBundleUserMessageCoders.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InjectedBundleUserMessageCoders.h; sourceTree = &quot;&lt;group&gt;&quot;; };
-                BCB0B0DF12305AB100B1341E /* UserMessageCoders.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UserMessageCoders.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx">                 BCB63477116BF10600603215 /* WebKit2_C.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebKit2_C.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 BCB86F4B116AAACD00CE20B7 /* WebKit.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = WebKit.xcconfig; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 BCB9E2491120E15C00A137E0 /* WKContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKContext.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -4537,7 +4527,6 @@
</span><span class="cx">                                 1A64245C12DE29A100CAAE2C /* UpdateInfo.h */,
</span><span class="cx">                                 1AC1336518565B5700F3EC05 /* UserData.cpp */,
</span><span class="cx">                                 1AC1336618565B5700F3EC05 /* UserData.h */,
</span><del>-                                BCB0B0DF12305AB100B1341E /* UserMessageCoders.h */,
</del><span class="cx">                                 2684054A18B866FF0022C38B /* VisibleContentRectUpdateInfo.cpp */,
</span><span class="cx">                                 2684054218B85A630022C38B /* VisibleContentRectUpdateInfo.h */,
</span><span class="cx">                                 1A0F29C9120B37160053D1B9 /* VisitedLinkTable.cpp */,
</span><span class="lines">@@ -5939,7 +5928,6 @@
</span><span class="cx">                                 51A84CE2127F386B00CA6EA4 /* WebContextMenuProxy.cpp */,
</span><span class="cx">                                 51ACBB81127A8BAD00D203B9 /* WebContextMenuProxy.h */,
</span><span class="cx">                                 BCF4DE24168FA44800C94AFC /* WebContextSupplement.h */,
</span><del>-                                BCB0B0DB12305A2500B1341E /* WebContextUserMessageCoders.h */,
</del><span class="cx">                                 330934521315B9750097A7BC /* WebCookieManagerProxy.cpp */,
</span><span class="cx">                                 330934531315B9750097A7BC /* WebCookieManagerProxy.h */,
</span><span class="cx">                                 330934541315B9750097A7BC /* WebCookieManagerProxy.messages.in */,
</span><span class="lines">@@ -6228,8 +6216,6 @@
</span><span class="cx">                                 DF58C6351371ACA000F9A37C /* NativeWebWheelEventMac.mm */,
</span><span class="cx">                                 BC8ACA0F16670D7A004C1941 /* ObjCObjectGraph.h */,
</span><span class="cx">                                 BC8ACA1016670D7B004C1941 /* ObjCObjectGraph.mm */,
</span><del>-                                BC8ACA1116670D7E004C1941 /* ObjCObjectGraphCoders.h */,
-                                BC8ACA1216670D83004C1941 /* ObjCObjectGraphCoders.mm */,
</del><span class="cx">                                 C574A57F12E66681002DFE98 /* PasteboardTypes.h */,
</span><span class="cx">                                 C574A58012E66681002DFE98 /* PasteboardTypes.mm */,
</span><span class="cx">                                 E19582D2153CBFD700B60875 /* PDFKitImports.h */,
</span><span class="lines">@@ -6315,7 +6301,6 @@
</span><span class="cx">                                 BCA8C6AE11E3C08700812FB7 /* InjectedBundlePageUIClient.h */,
</span><span class="cx">                                 BC14DF76120B5B7900826C0C /* InjectedBundleScriptWorld.cpp */,
</span><span class="cx">                                 BC14DF75120B5B7900826C0C /* InjectedBundleScriptWorld.h */,
</span><del>-                                BCB0B0DD12305A8C00B1341E /* InjectedBundleUserMessageCoders.h */,
</del><span class="cx">                         );
</span><span class="cx">                         path = InjectedBundle;
</span><span class="cx">                         sourceTree = &quot;&lt;group&gt;&quot;;
</span><span class="lines">@@ -7380,7 +7365,6 @@
</span><span class="cx">                                 BCA8C6B011E3C08700812FB7 /* InjectedBundlePageUIClient.h in Headers */,
</span><span class="cx">                                 BC33E0D112408E8600360F3F /* InjectedBundleRangeHandle.h in Headers */,
</span><span class="cx">                                 BC14DF77120B5B7900826C0C /* InjectedBundleScriptWorld.h in Headers */,
</span><del>-                                BCB0B0DE12305A8C00B1341E /* InjectedBundleUserMessageCoders.h in Headers */,
</del><span class="cx">                                 C58CDF2E1887609F00871536 /* InteractionInformationAtPosition.h in Headers */,
</span><span class="cx">                                 C58CDF2A1887548B00871536 /* InteractionInformationAtPosition.h in Headers */,
</span><span class="cx">                                 1AE49A4911FFA8CE0048B464 /* JSNPMethod.h in Headers */,
</span><span class="lines">@@ -7449,7 +7433,6 @@
</span><span class="cx">                                 1A2162B111F38971008AD0F5 /* NPRuntimeUtilities.h in Headers */,
</span><span class="cx">                                 1A2D84A3127F6AD1001EB962 /* NPVariantData.h in Headers */,
</span><span class="cx">                                 BC8ACA1316670D89004C1941 /* ObjCObjectGraph.h in Headers */,
</span><del>-                                BC8ACA1516670D89004C1941 /* ObjCObjectGraphCoders.h in Headers */,
</del><span class="cx">                                 BCCF672D12C7EDF7008F9C35 /* OriginAndDatabases.h in Headers */,
</span><span class="cx">                                 7CF47FFB17275C57008ACB91 /* PageBanner.h in Headers */,
</span><span class="cx">                                 BC6EDAA6111271C600E7678B /* PageClient.h in Headers */,
</span><span class="lines">@@ -7562,7 +7545,6 @@
</span><span class="cx">                                 1AC1336818565B5700F3EC05 /* UserData.h in Headers */,
</span><span class="cx">                                 4A3CC18B19B0640F00D14AEF /* UserMediaPermissionRequestManagerProxy.h in Headers */,
</span><span class="cx">                                 4A3CC18D19B0641900D14AEF /* UserMediaPermissionRequestProxy.h in Headers */,
</span><del>-                                BCB0B0E012305AB100B1341E /* UserMessageCoders.h in Headers */,
</del><span class="cx">                                 2D125C5E1857EA05003BA3CB /* ViewGestureController.h in Headers */,
</span><span class="cx">                                 2D1B5D5E185869C8006C6596 /* ViewGestureControllerMessages.h in Headers */,
</span><span class="cx">                                 2D819BA21862800E001F03D1 /* ViewGestureGeometryCollectorMessages.h in Headers */,
</span><span class="lines">@@ -7602,7 +7584,6 @@
</span><span class="cx">                                 51ACBB82127A8BAD00D203B9 /* WebContextMenuProxy.h in Headers */,
</span><span class="cx">                                 51ACBBA0127A8F2C00D203B9 /* WebContextMenuProxyMac.h in Headers */,
</span><span class="cx">                                 BCF4DE25168FA44800C94AFC /* WebContextSupplement.h in Headers */,
</span><del>-                                BCB0B0DC12305A2500B1341E /* WebContextUserMessageCoders.h in Headers */,
</del><span class="cx">                                 330934501315B94D0097A7BC /* WebCookieManager.h in Headers */,
</span><span class="cx">                                 330934481315B9220097A7BC /* WebCookieManagerMessages.h in Headers */,
</span><span class="cx">                                 330934561315B9750097A7BC /* WebCookieManagerProxy.h in Headers */,
</span><span class="lines">@@ -9145,7 +9126,6 @@
</span><span class="cx">                                 1A2D84A4127F6AD1001EB962 /* NPVariantData.cpp in Sources */,
</span><span class="cx">                                 7C4694C91A4B4EA100AD5845 /* WebPasteboardProxyMessageReceiver.cpp in Sources */,
</span><span class="cx">                                 BC8ACA1416670D89004C1941 /* ObjCObjectGraph.mm in Sources */,
</span><del>-                                BC8ACA1616670D89004C1941 /* ObjCObjectGraphCoders.mm in Sources */,
</del><span class="cx">                                 BCCF673312C7F15C008F9C35 /* OriginAndDatabases.cpp in Sources */,
</span><span class="cx">                                 7C387434172F5615001BD88A /* PageBanner.cpp in Sources */,
</span><span class="cx">                                 7C6D37FC172F555F009D2847 /* PageBannerMac.mm in Sources */,
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleInjectedBundlecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp (177805 => 177806)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp        2014-12-29 19:35:48 UTC (rev 177805)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp        2014-12-29 19:38:19 UTC (rev 177806)
</span><span class="lines">@@ -27,9 +27,9 @@
</span><span class="cx"> #include &quot;InjectedBundle.h&quot;
</span><span class="cx"> 
</span><span class="cx"> #include &quot;APIArray.h&quot;
</span><ins>+#include &quot;APIData.h&quot;
</ins><span class="cx"> #include &quot;Arguments.h&quot;
</span><span class="cx"> #include &quot;InjectedBundleScriptWorld.h&quot;
</span><del>-#include &quot;InjectedBundleUserMessageCoders.h&quot;
</del><span class="cx"> #include &quot;NotificationPermissionRequestManager.h&quot;
</span><span class="cx"> #include &quot;SessionTracker.h&quot;
</span><span class="cx"> #include &quot;UserData.h&quot;
</span><span class="lines">@@ -43,6 +43,7 @@
</span><span class="cx"> #include &quot;WebFrame.h&quot;
</span><span class="cx"> #include &quot;WebFrameNetworkingContext.h&quot;
</span><span class="cx"> #include &quot;WebPage.h&quot;
</span><ins>+#include &quot;WebPageGroupProxy.h&quot;
</ins><span class="cx"> #include &quot;WebPreferencesKeys.h&quot;
</span><span class="cx"> #include &quot;WebPreferencesStore.h&quot;
</span><span class="cx"> #include &quot;WebProcess.h&quot;
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleInjectedBundleUserMessageCodersh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h (177805 => 177806)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h        2014-12-29 19:35:48 UTC (rev 177805)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h        2014-12-29 19:38:19 UTC (rev 177806)
</span><span class="lines">@@ -1,167 +0,0 @@
</span><del>-/*
- * Copyright (C) 2010 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef InjectedBundleUserMessageCoders_h
-#define InjectedBundleUserMessageCoders_h
-
-#include &quot;UserMessageCoders.h&quot;
-#include &quot;WebFrame.h&quot;
-#include &quot;WebPage.h&quot;
-#include &quot;WebPageGroupData.h&quot;
-#include &quot;WebPageGroupProxy.h&quot;
-#include &quot;WebProcess.h&quot;
-
-#if PLATFORM(COCOA)
-#include &quot;ObjCObjectGraphCoders.h&quot;
-#endif
-
-namespace WebKit {
-
-// Adds
-// - BundlePage -&gt; Page
-// - BundleFrame -&gt; Frame
-// - BundlePageGroup -&gt; PageGroup
-
-class InjectedBundleUserMessageEncoder : public UserMessageEncoder&lt;InjectedBundleUserMessageEncoder&gt; {
-public:
-    typedef UserMessageEncoder&lt;InjectedBundleUserMessageEncoder&gt; Base;
-
-    InjectedBundleUserMessageEncoder(API::Object* root)
-        : Base(root)
-    {
-    }
-
-    InjectedBundleUserMessageEncoder(const InjectedBundleUserMessageEncoder&amp;, API::Object* root)
-        : Base(root)
-    {
-    }
-
-    void encode(IPC::ArgumentEncoder&amp; encoder) const
-    {
-        API::Object::Type type = API::Object::Type::Null;
-        if (baseEncode(encoder, *this, type))
-            return;
-
-        switch (type) {
-        case API::Object::Type::BundlePage: {
-            WebPage* page = static_cast&lt;WebPage*&gt;(m_root);
-            encoder &lt;&lt; page-&gt;pageID();
-            break;
-        }
-        case API::Object::Type::BundleFrame: {
-            WebFrame* frame = static_cast&lt;WebFrame*&gt;(m_root);
-            encoder &lt;&lt; frame-&gt;frameID();
-            break;
-        }
-        case API::Object::Type::BundlePageGroup: {
-            WebPageGroupProxy* pageGroup = static_cast&lt;WebPageGroupProxy*&gt;(m_root);
-            encoder &lt;&lt; pageGroup-&gt;pageGroupID();
-            break;
-        }
-#if PLATFORM(COCOA)
-        case API::Object::Type::ObjCObjectGraph: {
-            ObjCObjectGraph* objectGraph = static_cast&lt;ObjCObjectGraph*&gt;(m_root);
-            encoder &lt;&lt; InjectedBundleObjCObjectGraphEncoder(objectGraph, WebProcess::shared());
-            break;
-        }
-#endif
-        default:
-            ASSERT_NOT_REACHED();
-            break;
-        }
-    }
-};
-
-// Adds
-//   - Page -&gt; BundlePage
-//   - Frame -&gt; BundleFrame
-//   - PageGroup -&gt; BundlePageGroup
-
-class InjectedBundleUserMessageDecoder : public UserMessageDecoder&lt;InjectedBundleUserMessageDecoder&gt; {
-public:
-    typedef UserMessageDecoder&lt;InjectedBundleUserMessageDecoder&gt; Base;
-
-    InjectedBundleUserMessageDecoder(RefPtr&lt;API::Object&gt;&amp; root)
-        : Base(root)
-    {
-    }
-
-    InjectedBundleUserMessageDecoder(InjectedBundleUserMessageDecoder&amp;, RefPtr&lt;API::Object&gt;&amp; root)
-        : Base(root)
-    {
-    }
-
-    static bool decode(IPC::ArgumentDecoder&amp; decoder, InjectedBundleUserMessageDecoder&amp; coder)
-    {
-        API::Object::Type type = API::Object::Type::Null;
-        if (!Base::baseDecode(decoder, coder, type))
-            return false;
-
-        if (coder.m_root || type == API::Object::Type::Null)
-            return true;
-
-        switch (type) {
-        case API::Object::Type::Page: {
-            uint64_t pageID;
-            if (!decoder.decode(pageID))
-                return false;
-            coder.m_root = WebProcess::shared().webPage(pageID);
-            break;
-        }
-        case API::Object::Type::Frame: {
-            uint64_t frameID;
-            if (!decoder.decode(frameID))
-                return false;
-            coder.m_root = WebProcess::shared().webFrame(frameID);
-            break;
-        }
-        case API::Object::Type::PageGroup: {
-            WebPageGroupData pageGroupData;
-            if (!decoder.decode(pageGroupData))
-                return false;
-            coder.m_root = WebProcess::shared().webPageGroup(pageGroupData);
-            break;
-        }
-#if PLATFORM(COCOA)
-        case API::Object::Type::ObjCObjectGraph: {
-            RefPtr&lt;ObjCObjectGraph&gt; objectGraph;
-            InjectedBundleObjCObjectGraphDecoder objectGraphDecoder(objectGraph, WebProcess::shared());
-            if (!decoder.decode(objectGraphDecoder))
-                return false;
-            coder.m_root = objectGraph.get();
-            break;
-        }
-#endif
-        default:
-            return false;
-        }
-
-        return true;
-    }
-};
-
-} // namespace WebKit
-
-#endif // InjectedBundleUserMessageCoders_h
</del></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebConnectionToUIProcesscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebConnectionToUIProcess.cpp (177805 => 177806)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebConnectionToUIProcess.cpp        2014-12-29 19:35:48 UTC (rev 177805)
+++ trunk/Source/WebKit2/WebProcess/WebConnectionToUIProcess.cpp        2014-12-29 19:38:19 UTC (rev 177806)
</span><span class="lines">@@ -26,7 +26,6 @@
</span><span class="cx"> #include &quot;config.h&quot;
</span><span class="cx"> #include &quot;WebConnectionToUIProcess.h&quot;
</span><span class="cx"> 
</span><del>-#include &quot;InjectedBundleUserMessageCoders.h&quot;
</del><span class="cx"> #include &quot;WebConnectionMessages.h&quot;
</span><span class="cx"> #include &quot;WebProcess.h&quot;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebCoreSupportWebChromeClientcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp (177805 => 177806)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp        2014-12-29 19:35:48 UTC (rev 177805)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp        2014-12-29 19:38:19 UTC (rev 177806)
</span><span class="lines">@@ -30,7 +30,6 @@
</span><span class="cx"> #include &quot;APISecurityOrigin.h&quot;
</span><span class="cx"> #include &quot;DrawingArea.h&quot;
</span><span class="cx"> #include &quot;InjectedBundleNavigationAction.h&quot;
</span><del>-#include &quot;InjectedBundleUserMessageCoders.h&quot;
</del><span class="cx"> #include &quot;LayerTreeHost.h&quot;
</span><span class="cx"> #include &quot;NavigationActionData.h&quot;
</span><span class="cx"> #include &quot;PageBanner.h&quot;
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebCoreSupportWebFrameLoaderClientcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp (177805 => 177806)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp        2014-12-29 19:35:48 UTC (rev 177805)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp        2014-12-29 19:38:19 UTC (rev 177806)
</span><span class="lines">@@ -33,7 +33,6 @@
</span><span class="cx"> #include &quot;InjectedBundleBackForwardListItem.h&quot;
</span><span class="cx"> #include &quot;InjectedBundleDOMWindowExtension.h&quot;
</span><span class="cx"> #include &quot;InjectedBundleNavigationAction.h&quot;
</span><del>-#include &quot;InjectedBundleUserMessageCoders.h&quot;
</del><span class="cx"> #include &quot;NavigationActionData.h&quot;
</span><span class="cx"> #include &quot;PluginView.h&quot;
</span><span class="cx"> #include &quot;UserData.h&quot;
</span><span class="lines">@@ -49,6 +48,7 @@
</span><span class="cx"> #include &quot;WebIconDatabaseMessages.h&quot;
</span><span class="cx"> #include &quot;WebNavigationDataStore.h&quot;
</span><span class="cx"> #include &quot;WebPage.h&quot;
</span><ins>+#include &quot;WebPageGroupProxy.h&quot;
</ins><span class="cx"> #include &quot;WebPageProxyMessages.h&quot;
</span><span class="cx"> #include &quot;WebProcess.h&quot;
</span><span class="cx"> #include &quot;WebProcessPoolMessages.h&quot;
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageWebContextMenucpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebContextMenu.cpp (177805 => 177806)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/WebContextMenu.cpp        2014-12-29 19:35:48 UTC (rev 177805)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebContextMenu.cpp        2014-12-29 19:38:19 UTC (rev 177806)
</span><span class="lines">@@ -27,12 +27,12 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;ContextMenuContextData.h&quot;
</span><span class="cx"> #include &quot;InjectedBundleHitTestResult.h&quot;
</span><del>-#include &quot;InjectedBundleUserMessageCoders.h&quot;
</del><span class="cx"> #include &quot;UserData.h&quot;
</span><span class="cx"> #include &quot;WebCoreArgumentCoders.h&quot;
</span><span class="cx"> #include &quot;WebHitTestResult.h&quot;
</span><span class="cx"> #include &quot;WebPage.h&quot;
</span><span class="cx"> #include &quot;WebPageProxyMessages.h&quot;
</span><ins>+#include &quot;WebProcess.h&quot;
</ins><span class="cx"> #include &lt;WebCore/ContextMenu.h&gt;
</span><span class="cx"> #include &lt;WebCore/ContextMenuController.h&gt;
</span><span class="cx"> #include &lt;WebCore/Frame.h&gt;
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageWebPagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp (177805 => 177806)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp        2014-12-29 19:35:48 UTC (rev 177805)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp        2014-12-29 19:38:19 UTC (rev 177806)
</span><span class="lines">@@ -28,6 +28,7 @@
</span><span class="cx"> #include &quot;config.h&quot;
</span><span class="cx"> #include &quot;WebPage.h&quot;
</span><span class="cx"> 
</span><ins>+#include &quot;APIGeometry.h&quot;
</ins><span class="cx"> #include &quot;Arguments.h&quot;
</span><span class="cx"> #include &quot;DataReference.h&quot;
</span><span class="cx"> #include &quot;DragControllerAction.h&quot;
</span><span class="lines">@@ -38,7 +39,6 @@
</span><span class="cx"> #include &quot;EventDispatcher.h&quot;
</span><span class="cx"> #include &quot;InjectedBundle.h&quot;
</span><span class="cx"> #include &quot;InjectedBundleBackForwardList.h&quot;
</span><del>-#include &quot;InjectedBundleUserMessageCoders.h&quot;
</del><span class="cx"> #include &quot;LayerTreeHost.h&quot;
</span><span class="cx"> #include &quot;Logging.h&quot;
</span><span class="cx"> #include &quot;NetscapePlugin.h&quot;
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPagemacWebPageMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/mac/WebPageMac.mm (177805 => 177806)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/mac/WebPageMac.mm        2014-12-29 19:35:48 UTC (rev 177805)
+++ trunk/Source/WebKit2/WebProcess/WebPage/mac/WebPageMac.mm        2014-12-29 19:38:19 UTC (rev 177806)
</span><span class="lines">@@ -35,7 +35,6 @@
</span><span class="cx"> #import &quot;EditingRange.h&quot;
</span><span class="cx"> #import &quot;EditorState.h&quot;
</span><span class="cx"> #import &quot;InjectedBundleHitTestResult.h&quot;
</span><del>-#import &quot;InjectedBundleUserMessageCoders.h&quot;
</del><span class="cx"> #import &quot;PDFKitImports.h&quot;
</span><span class="cx"> #import &quot;PageBanner.h&quot;
</span><span class="cx"> #import &quot;PluginView.h&quot;
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebProcesscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebProcess.cpp (177805 => 177806)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebProcess.cpp        2014-12-29 19:35:48 UTC (rev 177805)
+++ trunk/Source/WebKit2/WebProcess/WebProcess.cpp        2014-12-29 19:38:19 UTC (rev 177806)
</span><span class="lines">@@ -34,7 +34,6 @@
</span><span class="cx"> #include &quot;DrawingArea.h&quot;
</span><span class="cx"> #include &quot;EventDispatcher.h&quot;
</span><span class="cx"> #include &quot;InjectedBundle.h&quot;
</span><del>-#include &quot;InjectedBundleUserMessageCoders.h&quot;
</del><span class="cx"> #include &quot;Logging.h&quot;
</span><span class="cx"> #include &quot;PluginProcessConnectionManager.h&quot;
</span><span class="cx"> #include &quot;SessionTracker.h&quot;
</span><span class="lines">@@ -53,7 +52,7 @@
</span><span class="cx"> #include &quot;WebMemorySampler.h&quot;
</span><span class="cx"> #include &quot;WebOriginDataManager.h&quot;
</span><span class="cx"> #include &quot;WebPage.h&quot;
</span><del>-#include &quot;WebPageGroup.h&quot;
</del><ins>+#include &quot;WebPageGroupProxy.h&quot;
</ins><span class="cx"> #include &quot;WebPageGroupProxyMessages.h&quot;
</span><span class="cx"> #include &quot;WebPlatformStrategies.h&quot;
</span><span class="cx"> #include &quot;WebProcessCreationParameters.h&quot;
</span><span class="lines">@@ -94,6 +93,10 @@
</span><span class="cx"> #include &lt;wtf/RunLoop.h&gt;
</span><span class="cx"> #include &lt;wtf/text/StringHash.h&gt;
</span><span class="cx"> 
</span><ins>+#if PLATFORM(COCOA)
+#include &quot;ObjCObjectGraph.h&quot;
+#endif
+
</ins><span class="cx"> #if ENABLE(NETWORK_PROCESS)
</span><span class="cx"> #if PLATFORM(COCOA)
</span><span class="cx"> #include &quot;CookieStorageShim.h&quot;
</span></span></pre>
</div>
</div>

</body>
</html>