<!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>[161472] 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/161472">161472</a></dd>
<dt>Author</dt> <dd>simon.fraser@apple.com</dd>
<dt>Date</dt> <dd>2014-01-07 17:03:44 -0800 (Tue, 07 Jan 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Move expected results out of messages_unittest.py into separate files
https://bugs.webkit.org/show_bug.cgi?id=126602

Reviewed by Anders Carlsson.

Uninline the test input and output from messages_unittest.py to make
it easier to add more tests.

* Scripts/webkit2/MessageReceiver-expected.cpp: Added.
(WebKit::WebPage::didReceiveWebPageMessage):
(WebKit::WebPage::didReceiveSyncWebPageMessage):
* Scripts/webkit2/Messages-expected.h: Added.
* Scripts/webkit2/messages_unittest.py:
(ParsingTest.test_receiver):
* Scripts/webkit2/test-messages.in: Added.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2Scriptswebkit2messages_unittestpy">trunk/Source/WebKit2/Scripts/webkit2/messages_unittest.py</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2Scriptswebkit2MessageReceiverexpectedcpp">trunk/Source/WebKit2/Scripts/webkit2/MessageReceiver-expected.cpp</a></li>
<li><a href="#trunkSourceWebKit2Scriptswebkit2Messagesexpectedh">trunk/Source/WebKit2/Scripts/webkit2/Messages-expected.h</a></li>
<li><a href="#trunkSourceWebKit2Scriptswebkit2testmessagesin">trunk/Source/WebKit2/Scripts/webkit2/test-messages.in</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (161471 => 161472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2014-01-08 00:51:30 UTC (rev 161471)
+++ trunk/Source/WebKit2/ChangeLog        2014-01-08 01:03:44 UTC (rev 161472)
</span><span class="lines">@@ -1,3 +1,21 @@
</span><ins>+2014-01-07  Simon Fraser  &lt;simon.fraser@apple.com&gt;
+
+        Move expected results out of messages_unittest.py into separate files
+        https://bugs.webkit.org/show_bug.cgi?id=126602
+
+        Reviewed by Anders Carlsson.
+        
+        Uninline the test input and output from messages_unittest.py to make
+        it easier to add more tests.
+
+        * Scripts/webkit2/MessageReceiver-expected.cpp: Added.
+        (WebKit::WebPage::didReceiveWebPageMessage):
+        (WebKit::WebPage::didReceiveSyncWebPageMessage):
+        * Scripts/webkit2/Messages-expected.h: Added.
+        * Scripts/webkit2/messages_unittest.py:
+        (ParsingTest.test_receiver):
+        * Scripts/webkit2/test-messages.in: Added.
+
</ins><span class="cx"> 2014-01-07  Commit Queue  &lt;commit-queue@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Unreviewed, rolling out r161447.
</span></span></pre></div>
<a id="trunkSourceWebKit2Scriptswebkit2MessageReceiverexpectedcpp"></a>
<div class="addfile"><h4>Added: trunk/Source/WebKit2/Scripts/webkit2/MessageReceiver-expected.cpp (0 => 161472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Scripts/webkit2/MessageReceiver-expected.cpp                                (rev 0)
+++ trunk/Source/WebKit2/Scripts/webkit2/MessageReceiver-expected.cpp        2014-01-08 01:03:44 UTC (rev 161472)
</span><span class="lines">@@ -0,0 +1,218 @@
</span><ins>+/*
+ * 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;config.h&quot;
+
+#if (ENABLE(WEBKIT2) &amp;&amp; (NESTED_MASTER_CONDITION || MASTER_OR &amp;&amp; MASTER_AND))
+
+#include &quot;WebPage.h&quot;
+
+#include &quot;ArgumentCoders.h&quot;
+#include &quot;Connection.h&quot;
+#if ENABLE(DEPRECATED_FEATURE) || ENABLE(EXPERIMENTAL_FEATURE)
+#include &quot;DummyType.h&quot;
+#endif
+#include &quot;HandleMessage.h&quot;
+#if PLATFORM(MAC)
+#include &quot;MachPort.h&quot;
+#endif
+#include &quot;MessageDecoder.h&quot;
+#include &quot;Plugin.h&quot;
+#include &quot;WebCoreArgumentCoders.h&quot;
+#if (ENABLE(TOUCH_EVENTS) &amp;&amp; (NESTED_MESSAGE_CONDITION &amp;&amp; SOME_OTHER_MESSAGE_CONDITION)) || (ENABLE(TOUCH_EVENTS) &amp;&amp; (NESTED_MESSAGE_CONDITION || SOME_OTHER_MESSAGE_CONDITION))
+#include &quot;WebEvent.h&quot;
+#endif
+#include &quot;WebPageMessages.h&quot;
+#include &quot;WebPreferencesStore.h&quot;
+#if PLATFORM(MAC)
+#include &lt;WebCore/KeyboardEvent.h&gt;
+#endif
+#include &lt;WebCore/PluginData.h&gt;
+#include &lt;utility&gt;
+#include &lt;wtf/HashMap.h&gt;
+#include &lt;wtf/Vector.h&gt;
+#include &lt;wtf/text/WTFString.h&gt;
+
+namespace Messages {
+
+namespace WebPage {
+
+GetPluginProcessConnection::DelayedReply::DelayedReply(PassRefPtr&lt;IPC::Connection&gt; connection, std::unique_ptr&lt;IPC::MessageEncoder&gt; encoder)
+    : m_connection(connection)
+    , m_encoder(std::move(encoder))
+{
+}
+
+GetPluginProcessConnection::DelayedReply::~DelayedReply()
+{
+    ASSERT(!m_connection);
+}
+
+bool GetPluginProcessConnection::DelayedReply::send(const IPC::Connection::Handle&amp; connectionHandle)
+{
+    ASSERT(m_encoder);
+    *m_encoder &lt;&lt; connectionHandle;
+    bool result = m_connection-&gt;sendSyncReply(std::move(m_encoder));
+    m_connection = nullptr;
+    return result;
+}
+
+TestMultipleAttributes::DelayedReply::DelayedReply(PassRefPtr&lt;IPC::Connection&gt; connection, std::unique_ptr&lt;IPC::MessageEncoder&gt; encoder)
+    : m_connection(connection)
+    , m_encoder(std::move(encoder))
+{
+}
+
+TestMultipleAttributes::DelayedReply::~DelayedReply()
+{
+    ASSERT(!m_connection);
+}
+
+bool TestMultipleAttributes::DelayedReply::send()
+{
+    ASSERT(m_encoder);
+    bool result = m_connection-&gt;sendSyncReply(std::move(m_encoder));
+    m_connection = nullptr;
+    return result;
+}
+
+} // namespace WebPage
+
+} // namespace Messages
+
+namespace WebKit {
+
+void WebPage::didReceiveWebPageMessage(IPC::Connection*, IPC::MessageDecoder&amp; decoder)
+{
+    if (decoder.messageName() == Messages::WebPage::LoadURL::name()) {
+        IPC::handleMessage&lt;Messages::WebPage::LoadURL&gt;(decoder, this, &amp;WebPage::loadURL);
+        return;
+    }
+#if ENABLE(TOUCH_EVENTS)
+    if (decoder.messageName() == Messages::WebPage::LoadSomething::name()) {
+        IPC::handleMessage&lt;Messages::WebPage::LoadSomething&gt;(decoder, this, &amp;WebPage::loadSomething);
+        return;
+    }
+#endif
+#if (ENABLE(TOUCH_EVENTS) &amp;&amp; (NESTED_MESSAGE_CONDITION || SOME_OTHER_MESSAGE_CONDITION))
+    if (decoder.messageName() == Messages::WebPage::TouchEvent::name()) {
+        IPC::handleMessage&lt;Messages::WebPage::TouchEvent&gt;(decoder, this, &amp;WebPage::touchEvent);
+        return;
+    }
+#endif
+#if (ENABLE(TOUCH_EVENTS) &amp;&amp; (NESTED_MESSAGE_CONDITION &amp;&amp; SOME_OTHER_MESSAGE_CONDITION))
+    if (decoder.messageName() == Messages::WebPage::AddEvent::name()) {
+        IPC::handleMessage&lt;Messages::WebPage::AddEvent&gt;(decoder, this, &amp;WebPage::addEvent);
+        return;
+    }
+#endif
+#if ENABLE(TOUCH_EVENTS)
+    if (decoder.messageName() == Messages::WebPage::LoadSomethingElse::name()) {
+        IPC::handleMessage&lt;Messages::WebPage::LoadSomethingElse&gt;(decoder, this, &amp;WebPage::loadSomethingElse);
+        return;
+    }
+#endif
+    if (decoder.messageName() == Messages::WebPage::DidReceivePolicyDecision::name()) {
+        IPC::handleMessage&lt;Messages::WebPage::DidReceivePolicyDecision&gt;(decoder, this, &amp;WebPage::didReceivePolicyDecision);
+        return;
+    }
+    if (decoder.messageName() == Messages::WebPage::Close::name()) {
+        IPC::handleMessage&lt;Messages::WebPage::Close&gt;(decoder, this, &amp;WebPage::close);
+        return;
+    }
+    if (decoder.messageName() == Messages::WebPage::PreferencesDidChange::name()) {
+        IPC::handleMessage&lt;Messages::WebPage::PreferencesDidChange&gt;(decoder, this, &amp;WebPage::preferencesDidChange);
+        return;
+    }
+    if (decoder.messageName() == Messages::WebPage::SendDoubleAndFloat::name()) {
+        IPC::handleMessage&lt;Messages::WebPage::SendDoubleAndFloat&gt;(decoder, this, &amp;WebPage::sendDoubleAndFloat);
+        return;
+    }
+    if (decoder.messageName() == Messages::WebPage::SendInts::name()) {
+        IPC::handleMessage&lt;Messages::WebPage::SendInts&gt;(decoder, this, &amp;WebPage::sendInts);
+        return;
+    }
+    if (decoder.messageName() == Messages::WebPage::TestParameterAttributes::name()) {
+        IPC::handleMessage&lt;Messages::WebPage::TestParameterAttributes&gt;(decoder, this, &amp;WebPage::testParameterAttributes);
+        return;
+    }
+    if (decoder.messageName() == Messages::WebPage::TemplateTest::name()) {
+        IPC::handleMessage&lt;Messages::WebPage::TemplateTest&gt;(decoder, this, &amp;WebPage::templateTest);
+        return;
+    }
+#if PLATFORM(MAC)
+    if (decoder.messageName() == Messages::WebPage::DidCreateWebProcessConnection::name()) {
+        IPC::handleMessage&lt;Messages::WebPage::DidCreateWebProcessConnection&gt;(decoder, this, &amp;WebPage::didCreateWebProcessConnection);
+        return;
+    }
+#endif
+#if ENABLE(DEPRECATED_FEATURE)
+    if (decoder.messageName() == Messages::WebPage::DeprecatedOperation::name()) {
+        IPC::handleMessage&lt;Messages::WebPage::DeprecatedOperation&gt;(decoder, this, &amp;WebPage::deprecatedOperation);
+        return;
+    }
+#endif
+#if ENABLE(EXPERIMENTAL_FEATURE)
+    if (decoder.messageName() == Messages::WebPage::ExperimentalOperation::name()) {
+        IPC::handleMessage&lt;Messages::WebPage::ExperimentalOperation&gt;(decoder, this, &amp;WebPage::experimentalOperation);
+        return;
+    }
+#endif
+    ASSERT_NOT_REACHED();
+}
+
+void WebPage::didReceiveSyncWebPageMessage(IPC::Connection* connection, IPC::MessageDecoder&amp; decoder, std::unique_ptr&lt;IPC::MessageEncoder&gt;&amp; replyEncoder)
+{
+    if (decoder.messageName() == Messages::WebPage::CreatePlugin::name()) {
+        IPC::handleMessage&lt;Messages::WebPage::CreatePlugin&gt;(decoder, *replyEncoder, this, &amp;WebPage::createPlugin);
+        return;
+    }
+    if (decoder.messageName() == Messages::WebPage::RunJavaScriptAlert::name()) {
+        IPC::handleMessage&lt;Messages::WebPage::RunJavaScriptAlert&gt;(decoder, *replyEncoder, this, &amp;WebPage::runJavaScriptAlert);
+        return;
+    }
+    if (decoder.messageName() == Messages::WebPage::GetPlugins::name()) {
+        IPC::handleMessage&lt;Messages::WebPage::GetPlugins&gt;(decoder, *replyEncoder, this, &amp;WebPage::getPlugins);
+        return;
+    }
+    if (decoder.messageName() == Messages::WebPage::GetPluginProcessConnection::name()) {
+        IPC::handleMessageDelayed&lt;Messages::WebPage::GetPluginProcessConnection&gt;(connection, decoder, replyEncoder, this, &amp;WebPage::getPluginProcessConnection);
+        return;
+    }
+    if (decoder.messageName() == Messages::WebPage::TestMultipleAttributes::name()) {
+        IPC::handleMessageDelayed&lt;Messages::WebPage::TestMultipleAttributes&gt;(connection, decoder, replyEncoder, this, &amp;WebPage::testMultipleAttributes);
+        return;
+    }
+#if PLATFORM(MAC)
+    if (decoder.messageName() == Messages::WebPage::InterpretKeyEvent::name()) {
+        IPC::handleMessage&lt;Messages::WebPage::InterpretKeyEvent&gt;(decoder, *replyEncoder, this, &amp;WebPage::interpretKeyEvent);
+        return;
+    }
+#endif
+    ASSERT_NOT_REACHED();
+}
+
+} // namespace WebKit
+
+#endif // (ENABLE(WEBKIT2) &amp;&amp; (NESTED_MASTER_CONDITION || MASTER_OR &amp;&amp; MASTER_AND))
</ins><span class="cx">Property changes on: trunk/Source/WebKit2/Scripts/webkit2/MessageReceiver-expected.cpp
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkSourceWebKit2Scriptswebkit2Messagesexpectedh"></a>
<div class="addfile"><h4>Added: trunk/Source/WebKit2/Scripts/webkit2/Messages-expected.h (0 => 161472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Scripts/webkit2/Messages-expected.h                                (rev 0)
+++ trunk/Source/WebKit2/Scripts/webkit2/Messages-expected.h        2014-01-08 01:03:44 UTC (rev 161472)
</span><span class="lines">@@ -0,0 +1,567 @@
</span><ins>+/*
+ * 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 WebPageMessages_h
+#define WebPageMessages_h
+
+#if (ENABLE(WEBKIT2) &amp;&amp; (NESTED_MASTER_CONDITION || MASTER_OR &amp;&amp; MASTER_AND))
+
+#include &quot;Arguments.h&quot;
+#include &quot;Connection.h&quot;
+#include &quot;MessageEncoder.h&quot;
+#include &quot;Plugin.h&quot;
+#include &quot;StringReference.h&quot;
+#include &lt;WebCore/KeyboardEvent.h&gt;
+#include &lt;WebCore/PluginData.h&gt;
+#include &lt;utility&gt;
+#include &lt;wtf/HashMap.h&gt;
+#include &lt;wtf/ThreadSafeRefCounted.h&gt;
+#include &lt;wtf/Vector.h&gt;
+#include &lt;wtf/text/WTFString.h&gt;
+
+namespace IPC {
+    class Connection;
+    class DummyType;
+    class MachPort;
+}
+
+namespace WTF {
+    class String;
+}
+
+namespace WebKit {
+    struct WebPreferencesStore;
+    class WebTouchEvent;
+}
+
+namespace Messages {
+namespace WebPage {
+
+static inline IPC::StringReference messageReceiverName()
+{
+    return IPC::StringReference(&quot;WebPage&quot;);
+}
+
+class LoadURL {
+public:
+    typedef std::tuple&lt;String&gt; DecodeType;
+
+    static IPC::StringReference receiverName() { return messageReceiverName(); }
+    static IPC::StringReference name() { return IPC::StringReference(&quot;LoadURL&quot;); }
+    static const bool isSync = false;
+
+    explicit LoadURL(const String&amp; url)
+        : m_arguments(url)
+    {
+    }
+
+    const std::tuple&lt;const String&amp;&gt; arguments() const
+    {
+        return m_arguments;
+    }
+
+private:
+    std::tuple&lt;const String&amp;&gt; m_arguments;
+};
+
+#if ENABLE(TOUCH_EVENTS)
+class LoadSomething {
+public:
+    typedef std::tuple&lt;String&gt; DecodeType;
+
+    static IPC::StringReference receiverName() { return messageReceiverName(); }
+    static IPC::StringReference name() { return IPC::StringReference(&quot;LoadSomething&quot;); }
+    static const bool isSync = false;
+
+    explicit LoadSomething(const String&amp; url)
+        : m_arguments(url)
+    {
+    }
+
+    const std::tuple&lt;const String&amp;&gt; arguments() const
+    {
+        return m_arguments;
+    }
+
+private:
+    std::tuple&lt;const String&amp;&gt; m_arguments;
+};
+#endif
+
+#if (ENABLE(TOUCH_EVENTS) &amp;&amp; (NESTED_MESSAGE_CONDITION || SOME_OTHER_MESSAGE_CONDITION))
+class TouchEvent {
+public:
+    typedef std::tuple&lt;WebKit::WebTouchEvent&gt; DecodeType;
+
+    static IPC::StringReference receiverName() { return messageReceiverName(); }
+    static IPC::StringReference name() { return IPC::StringReference(&quot;TouchEvent&quot;); }
+    static const bool isSync = false;
+
+    explicit TouchEvent(const WebKit::WebTouchEvent&amp; event)
+        : m_arguments(event)
+    {
+    }
+
+    const std::tuple&lt;const WebKit::WebTouchEvent&amp;&gt; arguments() const
+    {
+        return m_arguments;
+    }
+
+private:
+    std::tuple&lt;const WebKit::WebTouchEvent&amp;&gt; m_arguments;
+};
+#endif
+
+#if (ENABLE(TOUCH_EVENTS) &amp;&amp; (NESTED_MESSAGE_CONDITION &amp;&amp; SOME_OTHER_MESSAGE_CONDITION))
+class AddEvent {
+public:
+    typedef std::tuple&lt;WebKit::WebTouchEvent&gt; DecodeType;
+
+    static IPC::StringReference receiverName() { return messageReceiverName(); }
+    static IPC::StringReference name() { return IPC::StringReference(&quot;AddEvent&quot;); }
+    static const bool isSync = false;
+
+    explicit AddEvent(const WebKit::WebTouchEvent&amp; event)
+        : m_arguments(event)
+    {
+    }
+
+    const std::tuple&lt;const WebKit::WebTouchEvent&amp;&gt; arguments() const
+    {
+        return m_arguments;
+    }
+
+private:
+    std::tuple&lt;const WebKit::WebTouchEvent&amp;&gt; m_arguments;
+};
+#endif
+
+#if ENABLE(TOUCH_EVENTS)
+class LoadSomethingElse {
+public:
+    typedef std::tuple&lt;String&gt; DecodeType;
+
+    static IPC::StringReference receiverName() { return messageReceiverName(); }
+    static IPC::StringReference name() { return IPC::StringReference(&quot;LoadSomethingElse&quot;); }
+    static const bool isSync = false;
+
+    explicit LoadSomethingElse(const String&amp; url)
+        : m_arguments(url)
+    {
+    }
+
+    const std::tuple&lt;const String&amp;&gt; arguments() const
+    {
+        return m_arguments;
+    }
+
+private:
+    std::tuple&lt;const String&amp;&gt; m_arguments;
+};
+#endif
+
+class DidReceivePolicyDecision {
+public:
+    typedef std::tuple&lt;uint64_t, uint64_t, uint32_t&gt; DecodeType;
+
+    static IPC::StringReference receiverName() { return messageReceiverName(); }
+    static IPC::StringReference name() { return IPC::StringReference(&quot;DidReceivePolicyDecision&quot;); }
+    static const bool isSync = false;
+
+    DidReceivePolicyDecision(uint64_t frameID, uint64_t listenerID, uint32_t policyAction)
+        : m_arguments(frameID, listenerID, policyAction)
+    {
+    }
+
+    const std::tuple&lt;uint64_t, uint64_t, uint32_t&gt; arguments() const
+    {
+        return m_arguments;
+    }
+
+private:
+    std::tuple&lt;uint64_t, uint64_t, uint32_t&gt; m_arguments;
+};
+
+class Close {
+public:
+    typedef std::tuple&lt;&gt; DecodeType;
+
+    static IPC::StringReference receiverName() { return messageReceiverName(); }
+    static IPC::StringReference name() { return IPC::StringReference(&quot;Close&quot;); }
+    static const bool isSync = false;
+
+    const std::tuple&lt;&gt; arguments() const
+    {
+        return m_arguments;
+    }
+
+private:
+    std::tuple&lt;&gt; m_arguments;
+};
+
+class PreferencesDidChange {
+public:
+    typedef std::tuple&lt;WebKit::WebPreferencesStore&gt; DecodeType;
+
+    static IPC::StringReference receiverName() { return messageReceiverName(); }
+    static IPC::StringReference name() { return IPC::StringReference(&quot;PreferencesDidChange&quot;); }
+    static const bool isSync = false;
+
+    explicit PreferencesDidChange(const WebKit::WebPreferencesStore&amp; store)
+        : m_arguments(store)
+    {
+    }
+
+    const std::tuple&lt;const WebKit::WebPreferencesStore&amp;&gt; arguments() const
+    {
+        return m_arguments;
+    }
+
+private:
+    std::tuple&lt;const WebKit::WebPreferencesStore&amp;&gt; m_arguments;
+};
+
+class SendDoubleAndFloat {
+public:
+    typedef std::tuple&lt;double, float&gt; DecodeType;
+
+    static IPC::StringReference receiverName() { return messageReceiverName(); }
+    static IPC::StringReference name() { return IPC::StringReference(&quot;SendDoubleAndFloat&quot;); }
+    static const bool isSync = false;
+
+    SendDoubleAndFloat(double d, float f)
+        : m_arguments(d, f)
+    {
+    }
+
+    const std::tuple&lt;double, float&gt; arguments() const
+    {
+        return m_arguments;
+    }
+
+private:
+    std::tuple&lt;double, float&gt; m_arguments;
+};
+
+class SendInts {
+public:
+    typedef std::tuple&lt;Vector&lt;uint64_t&gt;, Vector&lt;Vector&lt;uint64_t&gt;&gt;&gt; DecodeType;
+
+    static IPC::StringReference receiverName() { return messageReceiverName(); }
+    static IPC::StringReference name() { return IPC::StringReference(&quot;SendInts&quot;); }
+    static const bool isSync = false;
+
+    SendInts(const Vector&lt;uint64_t&gt;&amp; ints, const Vector&lt;Vector&lt;uint64_t&gt;&gt;&amp; intVectors)
+        : m_arguments(ints, intVectors)
+    {
+    }
+
+    const std::tuple&lt;const Vector&lt;uint64_t&gt;&amp;, const Vector&lt;Vector&lt;uint64_t&gt;&gt;&amp;&gt; arguments() const
+    {
+        return m_arguments;
+    }
+
+private:
+    std::tuple&lt;const Vector&lt;uint64_t&gt;&amp;, const Vector&lt;Vector&lt;uint64_t&gt;&gt;&amp;&gt; m_arguments;
+};
+
+class CreatePlugin {
+public:
+    typedef std::tuple&lt;uint64_t, WebKit::Plugin::Parameters&gt; DecodeType;
+
+    static IPC::StringReference receiverName() { return messageReceiverName(); }
+    static IPC::StringReference name() { return IPC::StringReference(&quot;CreatePlugin&quot;); }
+    static const bool isSync = true;
+
+    typedef IPC::Arguments1&lt;bool&amp;&gt; Reply;
+    CreatePlugin(uint64_t pluginInstanceID, const WebKit::Plugin::Parameters&amp; parameters)
+        : m_arguments(pluginInstanceID, parameters)
+    {
+    }
+
+    const std::tuple&lt;uint64_t, const WebKit::Plugin::Parameters&amp;&gt; arguments() const
+    {
+        return m_arguments;
+    }
+
+private:
+    std::tuple&lt;uint64_t, const WebKit::Plugin::Parameters&amp;&gt; m_arguments;
+};
+
+class RunJavaScriptAlert {
+public:
+    typedef std::tuple&lt;uint64_t, String&gt; DecodeType;
+
+    static IPC::StringReference receiverName() { return messageReceiverName(); }
+    static IPC::StringReference name() { return IPC::StringReference(&quot;RunJavaScriptAlert&quot;); }
+    static const bool isSync = true;
+
+    typedef IPC::Arguments0 Reply;
+    RunJavaScriptAlert(uint64_t frameID, const String&amp; message)
+        : m_arguments(frameID, message)
+    {
+    }
+
+    const std::tuple&lt;uint64_t, const String&amp;&gt; arguments() const
+    {
+        return m_arguments;
+    }
+
+private:
+    std::tuple&lt;uint64_t, const String&amp;&gt; m_arguments;
+};
+
+class GetPlugins {
+public:
+    typedef std::tuple&lt;bool&gt; DecodeType;
+
+    static IPC::StringReference receiverName() { return messageReceiverName(); }
+    static IPC::StringReference name() { return IPC::StringReference(&quot;GetPlugins&quot;); }
+    static const bool isSync = true;
+
+    typedef IPC::Arguments1&lt;Vector&lt;WebCore::PluginInfo&gt;&amp;&gt; Reply;
+    explicit GetPlugins(bool refresh)
+        : m_arguments(refresh)
+    {
+    }
+
+    const std::tuple&lt;bool&gt; arguments() const
+    {
+        return m_arguments;
+    }
+
+private:
+    std::tuple&lt;bool&gt; m_arguments;
+};
+
+class GetPluginProcessConnection {
+public:
+    typedef std::tuple&lt;String&gt; DecodeType;
+
+    static IPC::StringReference receiverName() { return messageReceiverName(); }
+    static IPC::StringReference name() { return IPC::StringReference(&quot;GetPluginProcessConnection&quot;); }
+    static const bool isSync = true;
+
+    struct DelayedReply : public ThreadSafeRefCounted&lt;DelayedReply&gt; {
+        DelayedReply(PassRefPtr&lt;IPC::Connection&gt;, std::unique_ptr&lt;IPC::MessageEncoder&gt;);
+        ~DelayedReply();
+
+        bool send(const IPC::Connection::Handle&amp; connectionHandle);
+
+    private:
+        RefPtr&lt;IPC::Connection&gt; m_connection;
+        std::unique_ptr&lt;IPC::MessageEncoder&gt; m_encoder;
+    };
+
+    typedef IPC::Arguments1&lt;IPC::Connection::Handle&amp;&gt; Reply;
+    explicit GetPluginProcessConnection(const String&amp; pluginPath)
+        : m_arguments(pluginPath)
+    {
+    }
+
+    const std::tuple&lt;const String&amp;&gt; arguments() const
+    {
+        return m_arguments;
+    }
+
+private:
+    std::tuple&lt;const String&amp;&gt; m_arguments;
+};
+
+class TestMultipleAttributes {
+public:
+    typedef std::tuple&lt;&gt; DecodeType;
+
+    static IPC::StringReference receiverName() { return messageReceiverName(); }
+    static IPC::StringReference name() { return IPC::StringReference(&quot;TestMultipleAttributes&quot;); }
+    static const bool isSync = true;
+
+    struct DelayedReply : public ThreadSafeRefCounted&lt;DelayedReply&gt; {
+        DelayedReply(PassRefPtr&lt;IPC::Connection&gt;, std::unique_ptr&lt;IPC::MessageEncoder&gt;);
+        ~DelayedReply();
+
+        bool send();
+
+    private:
+        RefPtr&lt;IPC::Connection&gt; m_connection;
+        std::unique_ptr&lt;IPC::MessageEncoder&gt; m_encoder;
+    };
+
+    typedef IPC::Arguments0 Reply;
+    const std::tuple&lt;&gt; arguments() const
+    {
+        return m_arguments;
+    }
+
+private:
+    std::tuple&lt;&gt; m_arguments;
+};
+
+class TestParameterAttributes {
+public:
+    typedef std::tuple&lt;uint64_t, double, double&gt; DecodeType;
+
+    static IPC::StringReference receiverName() { return messageReceiverName(); }
+    static IPC::StringReference name() { return IPC::StringReference(&quot;TestParameterAttributes&quot;); }
+    static const bool isSync = false;
+
+    TestParameterAttributes(uint64_t foo, double bar, double baz)
+        : m_arguments(foo, bar, baz)
+    {
+    }
+
+    const std::tuple&lt;uint64_t, double, double&gt; arguments() const
+    {
+        return m_arguments;
+    }
+
+private:
+    std::tuple&lt;uint64_t, double, double&gt; m_arguments;
+};
+
+class TemplateTest {
+public:
+    typedef std::tuple&lt;HashMap&lt;String, std::pair&lt;String, uint64_t&gt;&gt;&gt; DecodeType;
+
+    static IPC::StringReference receiverName() { return messageReceiverName(); }
+    static IPC::StringReference name() { return IPC::StringReference(&quot;TemplateTest&quot;); }
+    static const bool isSync = false;
+
+    explicit TemplateTest(const HashMap&lt;String, std::pair&lt;String, uint64_t&gt;&gt;&amp; a)
+        : m_arguments(a)
+    {
+    }
+
+    const std::tuple&lt;const HashMap&lt;String, std::pair&lt;String, uint64_t&gt;&gt;&amp;&gt; arguments() const
+    {
+        return m_arguments;
+    }
+
+private:
+    std::tuple&lt;const HashMap&lt;String, std::pair&lt;String, uint64_t&gt;&gt;&amp;&gt; m_arguments;
+};
+
+#if PLATFORM(MAC)
+class DidCreateWebProcessConnection {
+public:
+    typedef std::tuple&lt;IPC::MachPort&gt; DecodeType;
+
+    static IPC::StringReference receiverName() { return messageReceiverName(); }
+    static IPC::StringReference name() { return IPC::StringReference(&quot;DidCreateWebProcessConnection&quot;); }
+    static const bool isSync = false;
+
+    explicit DidCreateWebProcessConnection(const IPC::MachPort&amp; connectionIdentifier)
+        : m_arguments(connectionIdentifier)
+    {
+    }
+
+    const std::tuple&lt;const IPC::MachPort&amp;&gt; arguments() const
+    {
+        return m_arguments;
+    }
+
+private:
+    std::tuple&lt;const IPC::MachPort&amp;&gt; m_arguments;
+};
+#endif
+
+#if PLATFORM(MAC)
+class InterpretKeyEvent {
+public:
+    typedef std::tuple&lt;uint32_t&gt; DecodeType;
+
+    static IPC::StringReference receiverName() { return messageReceiverName(); }
+    static IPC::StringReference name() { return IPC::StringReference(&quot;InterpretKeyEvent&quot;); }
+    static const bool isSync = true;
+
+    typedef IPC::Arguments1&lt;Vector&lt;WebCore::KeypressCommand&gt;&amp;&gt; Reply;
+    explicit InterpretKeyEvent(uint32_t type)
+        : m_arguments(type)
+    {
+    }
+
+    const std::tuple&lt;uint32_t&gt; arguments() const
+    {
+        return m_arguments;
+    }
+
+private:
+    std::tuple&lt;uint32_t&gt; m_arguments;
+};
+#endif
+
+#if ENABLE(DEPRECATED_FEATURE)
+class DeprecatedOperation {
+public:
+    typedef std::tuple&lt;IPC::DummyType&gt; DecodeType;
+
+    static IPC::StringReference receiverName() { return messageReceiverName(); }
+    static IPC::StringReference name() { return IPC::StringReference(&quot;DeprecatedOperation&quot;); }
+    static const bool isSync = false;
+
+    explicit DeprecatedOperation(const IPC::DummyType&amp; dummy)
+        : m_arguments(dummy)
+    {
+    }
+
+    const std::tuple&lt;const IPC::DummyType&amp;&gt; arguments() const
+    {
+        return m_arguments;
+    }
+
+private:
+    std::tuple&lt;const IPC::DummyType&amp;&gt; m_arguments;
+};
+#endif
+
+#if ENABLE(EXPERIMENTAL_FEATURE)
+class ExperimentalOperation {
+public:
+    typedef std::tuple&lt;IPC::DummyType&gt; DecodeType;
+
+    static IPC::StringReference receiverName() { return messageReceiverName(); }
+    static IPC::StringReference name() { return IPC::StringReference(&quot;ExperimentalOperation&quot;); }
+    static const bool isSync = false;
+
+    explicit ExperimentalOperation(const IPC::DummyType&amp; dummy)
+        : m_arguments(dummy)
+    {
+    }
+
+    const std::tuple&lt;const IPC::DummyType&amp;&gt; arguments() const
+    {
+        return m_arguments;
+    }
+
+private:
+    std::tuple&lt;const IPC::DummyType&amp;&gt; m_arguments;
+};
+#endif
+
+} // namespace WebPage
+} // namespace Messages
+
+#endif // (ENABLE(WEBKIT2) &amp;&amp; (NESTED_MASTER_CONDITION || MASTER_OR &amp;&amp; MASTER_AND))
+
+#endif // WebPageMessages_h
</ins><span class="cx">Property changes on: trunk/Source/WebKit2/Scripts/webkit2/Messages-expected.h
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkSourceWebKit2Scriptswebkit2messages_unittestpy"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Scripts/webkit2/messages_unittest.py (161471 => 161472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Scripts/webkit2/messages_unittest.py        2014-01-08 00:51:30 UTC (rev 161471)
+++ trunk/Source/WebKit2/Scripts/webkit2/messages_unittest.py        2014-01-08 01:03:44 UTC (rev 161472)
</span><span class="lines">@@ -20,89 +20,26 @@
</span><span class="cx"> # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
</span><span class="cx"> # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</span><span class="cx"> 
</span><ins>+import os
</ins><span class="cx"> import unittest
</span><span class="cx"> from StringIO import StringIO
</span><span class="cx"> 
</span><span class="cx"> import messages
</span><span class="cx"> import parser
</span><span class="cx"> 
</span><del>-_messages_file_contents = &quot;&quot;&quot;# 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.
</del><ins>+print os.getcwd()
</ins><span class="cx"> 
</span><del>-#if ENABLE(WEBKIT2)
-#if NESTED_MASTER_CONDITION || MASTER_OR &amp;&amp; MASTER_AND
</del><ins>+script_directory = os.path.dirname(os.path.realpath(__file__))
</ins><span class="cx"> 
</span><del>-messages -&gt; WebPage LegacyReceiver {
-    LoadURL(String url)
-#if ENABLE(TOUCH_EVENTS)
-    LoadSomething(String url)
-#if NESTED_MESSAGE_CONDITION || SOME_OTHER_MESSAGE_CONDITION
-    TouchEvent(WebKit::WebTouchEvent event)
-#endif
-#if NESTED_MESSAGE_CONDITION &amp;&amp; SOME_OTHER_MESSAGE_CONDITION
-    AddEvent(WebKit::WebTouchEvent event)
-#endif
-    LoadSomethingElse(String url)
-#endif
-    DidReceivePolicyDecision(uint64_t frameID, uint64_t listenerID, uint32_t policyAction)
-    Close()
</del><ins>+with open(os.path.join(script_directory, 'test-messages.in')) as file:
+    _messages_file_contents = file.read()
</ins><span class="cx"> 
</span><del>-    PreferencesDidChange(WebKit::WebPreferencesStore store)
-    SendDoubleAndFloat(double d, float f)
-    SendInts(Vector&lt;uint64_t&gt; ints, Vector&lt;Vector&lt;uint64_t&gt;&gt; intVectors)
</del><ins>+with open(os.path.join(script_directory, 'Messages-expected.h')) as file:
+    _expected_header = file.read()
</ins><span class="cx"> 
</span><del>-    CreatePlugin(uint64_t pluginInstanceID, WebKit::Plugin::Parameters parameters) -&gt; (bool result)
-    RunJavaScriptAlert(uint64_t frameID, String message) -&gt; ()
-    GetPlugins(bool refresh) -&gt; (Vector&lt;WebCore::PluginInfo&gt; plugins)
-    GetPluginProcessConnection(String pluginPath) -&gt; (IPC::Connection::Handle connectionHandle) Delayed
</del><ins>+with open(os.path.join(script_directory, 'MessageReceiver-expected.cpp')) as file:
+    _expected_receiver_implementation = file.read()
</ins><span class="cx"> 
</span><del>-    TestMultipleAttributes() -&gt; () WantsConnection Delayed
-
-    TestParameterAttributes([AttributeOne AttributeTwo] uint64_t foo, double bar, [AttributeThree] double baz)
-
-    TemplateTest(HashMap&lt;String, std::pair&lt;String, uint64_t&gt;&gt; a)
-
-#if PLATFORM(MAC)
-    DidCreateWebProcessConnection(IPC::MachPort connectionIdentifier)
-#endif
-
-#if PLATFORM(MAC)
-    # Keyboard support
-    InterpretKeyEvent(uint32_t type) -&gt; (Vector&lt;WebCore::KeypressCommand&gt; commandName)
-#endif
-
-#if ENABLE(DEPRECATED_FEATURE)
-    DeprecatedOperation(IPC::DummyType dummy)
-#endif
-
-#if ENABLE(EXPERIMENTAL_FEATURE)
-    ExperimentalOperation(IPC::DummyType dummy)
-#endif
-}
-
-#endif
-#endif
-&quot;&quot;&quot;
-
</del><span class="cx"> _expected_results = {
</span><span class="cx">     'name': 'WebPage',
</span><span class="cx">     'conditions': ('(ENABLE(WEBKIT2) &amp;&amp; (NESTED_MASTER_CONDITION || MASTER_OR &amp;&amp; MASTER_AND))'),
</span><span class="lines">@@ -313,796 +250,8 @@
</span><span class="cx">         for index, message in enumerate(self.receiver.messages):
</span><span class="cx">             self.check_message(message, _expected_results['messages'][index])
</span><span class="cx"> 
</span><del>-_expected_header = &quot;&quot;&quot;/*
- * 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.
- */
</del><span class="cx"> 
</span><del>-#ifndef WebPageMessages_h
-#define WebPageMessages_h
</del><span class="cx"> 
</span><del>-#if (ENABLE(WEBKIT2) &amp;&amp; (NESTED_MASTER_CONDITION || MASTER_OR &amp;&amp; MASTER_AND))
-
-#include &quot;Arguments.h&quot;
-#include &quot;Connection.h&quot;
-#include &quot;MessageEncoder.h&quot;
-#include &quot;Plugin.h&quot;
-#include &quot;StringReference.h&quot;
-#include &lt;WebCore/KeyboardEvent.h&gt;
-#include &lt;WebCore/PluginData.h&gt;
-#include &lt;utility&gt;
-#include &lt;wtf/HashMap.h&gt;
-#include &lt;wtf/ThreadSafeRefCounted.h&gt;
-#include &lt;wtf/Vector.h&gt;
-#include &lt;wtf/text/WTFString.h&gt;
-
-namespace IPC {
-    class Connection;
-    class DummyType;
-    class MachPort;
-}
-
-namespace WTF {
-    class String;
-}
-
-namespace WebKit {
-    struct WebPreferencesStore;
-    class WebTouchEvent;
-}
-
-namespace Messages {
-namespace WebPage {
-
-static inline IPC::StringReference messageReceiverName()
-{
-    return IPC::StringReference(&quot;WebPage&quot;);
-}
-
-class LoadURL {
-public:
-    typedef std::tuple&lt;String&gt; DecodeType;
-
-    static IPC::StringReference receiverName() { return messageReceiverName(); }
-    static IPC::StringReference name() { return IPC::StringReference(&quot;LoadURL&quot;); }
-    static const bool isSync = false;
-
-    explicit LoadURL(const String&amp; url)
-        : m_arguments(url)
-    {
-    }
-
-    const std::tuple&lt;const String&amp;&gt; arguments() const
-    {
-        return m_arguments;
-    }
-
-private:
-    std::tuple&lt;const String&amp;&gt; m_arguments;
-};
-
-#if ENABLE(TOUCH_EVENTS)
-class LoadSomething {
-public:
-    typedef std::tuple&lt;String&gt; DecodeType;
-
-    static IPC::StringReference receiverName() { return messageReceiverName(); }
-    static IPC::StringReference name() { return IPC::StringReference(&quot;LoadSomething&quot;); }
-    static const bool isSync = false;
-
-    explicit LoadSomething(const String&amp; url)
-        : m_arguments(url)
-    {
-    }
-
-    const std::tuple&lt;const String&amp;&gt; arguments() const
-    {
-        return m_arguments;
-    }
-
-private:
-    std::tuple&lt;const String&amp;&gt; m_arguments;
-};
-#endif
-
-#if (ENABLE(TOUCH_EVENTS) &amp;&amp; (NESTED_MESSAGE_CONDITION || SOME_OTHER_MESSAGE_CONDITION))
-class TouchEvent {
-public:
-    typedef std::tuple&lt;WebKit::WebTouchEvent&gt; DecodeType;
-
-    static IPC::StringReference receiverName() { return messageReceiverName(); }
-    static IPC::StringReference name() { return IPC::StringReference(&quot;TouchEvent&quot;); }
-    static const bool isSync = false;
-
-    explicit TouchEvent(const WebKit::WebTouchEvent&amp; event)
-        : m_arguments(event)
-    {
-    }
-
-    const std::tuple&lt;const WebKit::WebTouchEvent&amp;&gt; arguments() const
-    {
-        return m_arguments;
-    }
-
-private:
-    std::tuple&lt;const WebKit::WebTouchEvent&amp;&gt; m_arguments;
-};
-#endif
-
-#if (ENABLE(TOUCH_EVENTS) &amp;&amp; (NESTED_MESSAGE_CONDITION &amp;&amp; SOME_OTHER_MESSAGE_CONDITION))
-class AddEvent {
-public:
-    typedef std::tuple&lt;WebKit::WebTouchEvent&gt; DecodeType;
-
-    static IPC::StringReference receiverName() { return messageReceiverName(); }
-    static IPC::StringReference name() { return IPC::StringReference(&quot;AddEvent&quot;); }
-    static const bool isSync = false;
-
-    explicit AddEvent(const WebKit::WebTouchEvent&amp; event)
-        : m_arguments(event)
-    {
-    }
-
-    const std::tuple&lt;const WebKit::WebTouchEvent&amp;&gt; arguments() const
-    {
-        return m_arguments;
-    }
-
-private:
-    std::tuple&lt;const WebKit::WebTouchEvent&amp;&gt; m_arguments;
-};
-#endif
-
-#if ENABLE(TOUCH_EVENTS)
-class LoadSomethingElse {
-public:
-    typedef std::tuple&lt;String&gt; DecodeType;
-
-    static IPC::StringReference receiverName() { return messageReceiverName(); }
-    static IPC::StringReference name() { return IPC::StringReference(&quot;LoadSomethingElse&quot;); }
-    static const bool isSync = false;
-
-    explicit LoadSomethingElse(const String&amp; url)
-        : m_arguments(url)
-    {
-    }
-
-    const std::tuple&lt;const String&amp;&gt; arguments() const
-    {
-        return m_arguments;
-    }
-
-private:
-    std::tuple&lt;const String&amp;&gt; m_arguments;
-};
-#endif
-
-class DidReceivePolicyDecision {
-public:
-    typedef std::tuple&lt;uint64_t, uint64_t, uint32_t&gt; DecodeType;
-
-    static IPC::StringReference receiverName() { return messageReceiverName(); }
-    static IPC::StringReference name() { return IPC::StringReference(&quot;DidReceivePolicyDecision&quot;); }
-    static const bool isSync = false;
-
-    DidReceivePolicyDecision(uint64_t frameID, uint64_t listenerID, uint32_t policyAction)
-        : m_arguments(frameID, listenerID, policyAction)
-    {
-    }
-
-    const std::tuple&lt;uint64_t, uint64_t, uint32_t&gt; arguments() const
-    {
-        return m_arguments;
-    }
-
-private:
-    std::tuple&lt;uint64_t, uint64_t, uint32_t&gt; m_arguments;
-};
-
-class Close {
-public:
-    typedef std::tuple&lt;&gt; DecodeType;
-
-    static IPC::StringReference receiverName() { return messageReceiverName(); }
-    static IPC::StringReference name() { return IPC::StringReference(&quot;Close&quot;); }
-    static const bool isSync = false;
-
-    const std::tuple&lt;&gt; arguments() const
-    {
-        return m_arguments;
-    }
-
-private:
-    std::tuple&lt;&gt; m_arguments;
-};
-
-class PreferencesDidChange {
-public:
-    typedef std::tuple&lt;WebKit::WebPreferencesStore&gt; DecodeType;
-
-    static IPC::StringReference receiverName() { return messageReceiverName(); }
-    static IPC::StringReference name() { return IPC::StringReference(&quot;PreferencesDidChange&quot;); }
-    static const bool isSync = false;
-
-    explicit PreferencesDidChange(const WebKit::WebPreferencesStore&amp; store)
-        : m_arguments(store)
-    {
-    }
-
-    const std::tuple&lt;const WebKit::WebPreferencesStore&amp;&gt; arguments() const
-    {
-        return m_arguments;
-    }
-
-private:
-    std::tuple&lt;const WebKit::WebPreferencesStore&amp;&gt; m_arguments;
-};
-
-class SendDoubleAndFloat {
-public:
-    typedef std::tuple&lt;double, float&gt; DecodeType;
-
-    static IPC::StringReference receiverName() { return messageReceiverName(); }
-    static IPC::StringReference name() { return IPC::StringReference(&quot;SendDoubleAndFloat&quot;); }
-    static const bool isSync = false;
-
-    SendDoubleAndFloat(double d, float f)
-        : m_arguments(d, f)
-    {
-    }
-
-    const std::tuple&lt;double, float&gt; arguments() const
-    {
-        return m_arguments;
-    }
-
-private:
-    std::tuple&lt;double, float&gt; m_arguments;
-};
-
-class SendInts {
-public:
-    typedef std::tuple&lt;Vector&lt;uint64_t&gt;, Vector&lt;Vector&lt;uint64_t&gt;&gt;&gt; DecodeType;
-
-    static IPC::StringReference receiverName() { return messageReceiverName(); }
-    static IPC::StringReference name() { return IPC::StringReference(&quot;SendInts&quot;); }
-    static const bool isSync = false;
-
-    SendInts(const Vector&lt;uint64_t&gt;&amp; ints, const Vector&lt;Vector&lt;uint64_t&gt;&gt;&amp; intVectors)
-        : m_arguments(ints, intVectors)
-    {
-    }
-
-    const std::tuple&lt;const Vector&lt;uint64_t&gt;&amp;, const Vector&lt;Vector&lt;uint64_t&gt;&gt;&amp;&gt; arguments() const
-    {
-        return m_arguments;
-    }
-
-private:
-    std::tuple&lt;const Vector&lt;uint64_t&gt;&amp;, const Vector&lt;Vector&lt;uint64_t&gt;&gt;&amp;&gt; m_arguments;
-};
-
-class CreatePlugin {
-public:
-    typedef std::tuple&lt;uint64_t, WebKit::Plugin::Parameters&gt; DecodeType;
-
-    static IPC::StringReference receiverName() { return messageReceiverName(); }
-    static IPC::StringReference name() { return IPC::StringReference(&quot;CreatePlugin&quot;); }
-    static const bool isSync = true;
-
-    typedef IPC::Arguments1&lt;bool&amp;&gt; Reply;
-    CreatePlugin(uint64_t pluginInstanceID, const WebKit::Plugin::Parameters&amp; parameters)
-        : m_arguments(pluginInstanceID, parameters)
-    {
-    }
-
-    const std::tuple&lt;uint64_t, const WebKit::Plugin::Parameters&amp;&gt; arguments() const
-    {
-        return m_arguments;
-    }
-
-private:
-    std::tuple&lt;uint64_t, const WebKit::Plugin::Parameters&amp;&gt; m_arguments;
-};
-
-class RunJavaScriptAlert {
-public:
-    typedef std::tuple&lt;uint64_t, String&gt; DecodeType;
-
-    static IPC::StringReference receiverName() { return messageReceiverName(); }
-    static IPC::StringReference name() { return IPC::StringReference(&quot;RunJavaScriptAlert&quot;); }
-    static const bool isSync = true;
-
-    typedef IPC::Arguments0 Reply;
-    RunJavaScriptAlert(uint64_t frameID, const String&amp; message)
-        : m_arguments(frameID, message)
-    {
-    }
-
-    const std::tuple&lt;uint64_t, const String&amp;&gt; arguments() const
-    {
-        return m_arguments;
-    }
-
-private:
-    std::tuple&lt;uint64_t, const String&amp;&gt; m_arguments;
-};
-
-class GetPlugins {
-public:
-    typedef std::tuple&lt;bool&gt; DecodeType;
-
-    static IPC::StringReference receiverName() { return messageReceiverName(); }
-    static IPC::StringReference name() { return IPC::StringReference(&quot;GetPlugins&quot;); }
-    static const bool isSync = true;
-
-    typedef IPC::Arguments1&lt;Vector&lt;WebCore::PluginInfo&gt;&amp;&gt; Reply;
-    explicit GetPlugins(bool refresh)
-        : m_arguments(refresh)
-    {
-    }
-
-    const std::tuple&lt;bool&gt; arguments() const
-    {
-        return m_arguments;
-    }
-
-private:
-    std::tuple&lt;bool&gt; m_arguments;
-};
-
-class GetPluginProcessConnection {
-public:
-    typedef std::tuple&lt;String&gt; DecodeType;
-
-    static IPC::StringReference receiverName() { return messageReceiverName(); }
-    static IPC::StringReference name() { return IPC::StringReference(&quot;GetPluginProcessConnection&quot;); }
-    static const bool isSync = true;
-
-    struct DelayedReply : public ThreadSafeRefCounted&lt;DelayedReply&gt; {
-        DelayedReply(PassRefPtr&lt;IPC::Connection&gt;, std::unique_ptr&lt;IPC::MessageEncoder&gt;);
-        ~DelayedReply();
-
-        bool send(const IPC::Connection::Handle&amp; connectionHandle);
-
-    private:
-        RefPtr&lt;IPC::Connection&gt; m_connection;
-        std::unique_ptr&lt;IPC::MessageEncoder&gt; m_encoder;
-    };
-
-    typedef IPC::Arguments1&lt;IPC::Connection::Handle&amp;&gt; Reply;
-    explicit GetPluginProcessConnection(const String&amp; pluginPath)
-        : m_arguments(pluginPath)
-    {
-    }
-
-    const std::tuple&lt;const String&amp;&gt; arguments() const
-    {
-        return m_arguments;
-    }
-
-private:
-    std::tuple&lt;const String&amp;&gt; m_arguments;
-};
-
-class TestMultipleAttributes {
-public:
-    typedef std::tuple&lt;&gt; DecodeType;
-
-    static IPC::StringReference receiverName() { return messageReceiverName(); }
-    static IPC::StringReference name() { return IPC::StringReference(&quot;TestMultipleAttributes&quot;); }
-    static const bool isSync = true;
-
-    struct DelayedReply : public ThreadSafeRefCounted&lt;DelayedReply&gt; {
-        DelayedReply(PassRefPtr&lt;IPC::Connection&gt;, std::unique_ptr&lt;IPC::MessageEncoder&gt;);
-        ~DelayedReply();
-
-        bool send();
-
-    private:
-        RefPtr&lt;IPC::Connection&gt; m_connection;
-        std::unique_ptr&lt;IPC::MessageEncoder&gt; m_encoder;
-    };
-
-    typedef IPC::Arguments0 Reply;
-    const std::tuple&lt;&gt; arguments() const
-    {
-        return m_arguments;
-    }
-
-private:
-    std::tuple&lt;&gt; m_arguments;
-};
-
-class TestParameterAttributes {
-public:
-    typedef std::tuple&lt;uint64_t, double, double&gt; DecodeType;
-
-    static IPC::StringReference receiverName() { return messageReceiverName(); }
-    static IPC::StringReference name() { return IPC::StringReference(&quot;TestParameterAttributes&quot;); }
-    static const bool isSync = false;
-
-    TestParameterAttributes(uint64_t foo, double bar, double baz)
-        : m_arguments(foo, bar, baz)
-    {
-    }
-
-    const std::tuple&lt;uint64_t, double, double&gt; arguments() const
-    {
-        return m_arguments;
-    }
-
-private:
-    std::tuple&lt;uint64_t, double, double&gt; m_arguments;
-};
-
-class TemplateTest {
-public:
-    typedef std::tuple&lt;HashMap&lt;String, std::pair&lt;String, uint64_t&gt;&gt;&gt; DecodeType;
-
-    static IPC::StringReference receiverName() { return messageReceiverName(); }
-    static IPC::StringReference name() { return IPC::StringReference(&quot;TemplateTest&quot;); }
-    static const bool isSync = false;
-
-    explicit TemplateTest(const HashMap&lt;String, std::pair&lt;String, uint64_t&gt;&gt;&amp; a)
-        : m_arguments(a)
-    {
-    }
-
-    const std::tuple&lt;const HashMap&lt;String, std::pair&lt;String, uint64_t&gt;&gt;&amp;&gt; arguments() const
-    {
-        return m_arguments;
-    }
-
-private:
-    std::tuple&lt;const HashMap&lt;String, std::pair&lt;String, uint64_t&gt;&gt;&amp;&gt; m_arguments;
-};
-
-#if PLATFORM(MAC)
-class DidCreateWebProcessConnection {
-public:
-    typedef std::tuple&lt;IPC::MachPort&gt; DecodeType;
-
-    static IPC::StringReference receiverName() { return messageReceiverName(); }
-    static IPC::StringReference name() { return IPC::StringReference(&quot;DidCreateWebProcessConnection&quot;); }
-    static const bool isSync = false;
-
-    explicit DidCreateWebProcessConnection(const IPC::MachPort&amp; connectionIdentifier)
-        : m_arguments(connectionIdentifier)
-    {
-    }
-
-    const std::tuple&lt;const IPC::MachPort&amp;&gt; arguments() const
-    {
-        return m_arguments;
-    }
-
-private:
-    std::tuple&lt;const IPC::MachPort&amp;&gt; m_arguments;
-};
-#endif
-
-#if PLATFORM(MAC)
-class InterpretKeyEvent {
-public:
-    typedef std::tuple&lt;uint32_t&gt; DecodeType;
-
-    static IPC::StringReference receiverName() { return messageReceiverName(); }
-    static IPC::StringReference name() { return IPC::StringReference(&quot;InterpretKeyEvent&quot;); }
-    static const bool isSync = true;
-
-    typedef IPC::Arguments1&lt;Vector&lt;WebCore::KeypressCommand&gt;&amp;&gt; Reply;
-    explicit InterpretKeyEvent(uint32_t type)
-        : m_arguments(type)
-    {
-    }
-
-    const std::tuple&lt;uint32_t&gt; arguments() const
-    {
-        return m_arguments;
-    }
-
-private:
-    std::tuple&lt;uint32_t&gt; m_arguments;
-};
-#endif
-
-#if ENABLE(DEPRECATED_FEATURE)
-class DeprecatedOperation {
-public:
-    typedef std::tuple&lt;IPC::DummyType&gt; DecodeType;
-
-    static IPC::StringReference receiverName() { return messageReceiverName(); }
-    static IPC::StringReference name() { return IPC::StringReference(&quot;DeprecatedOperation&quot;); }
-    static const bool isSync = false;
-
-    explicit DeprecatedOperation(const IPC::DummyType&amp; dummy)
-        : m_arguments(dummy)
-    {
-    }
-
-    const std::tuple&lt;const IPC::DummyType&amp;&gt; arguments() const
-    {
-        return m_arguments;
-    }
-
-private:
-    std::tuple&lt;const IPC::DummyType&amp;&gt; m_arguments;
-};
-#endif
-
-#if ENABLE(EXPERIMENTAL_FEATURE)
-class ExperimentalOperation {
-public:
-    typedef std::tuple&lt;IPC::DummyType&gt; DecodeType;
-
-    static IPC::StringReference receiverName() { return messageReceiverName(); }
-    static IPC::StringReference name() { return IPC::StringReference(&quot;ExperimentalOperation&quot;); }
-    static const bool isSync = false;
-
-    explicit ExperimentalOperation(const IPC::DummyType&amp; dummy)
-        : m_arguments(dummy)
-    {
-    }
-
-    const std::tuple&lt;const IPC::DummyType&amp;&gt; arguments() const
-    {
-        return m_arguments;
-    }
-
-private:
-    std::tuple&lt;const IPC::DummyType&amp;&gt; m_arguments;
-};
-#endif
-
-} // namespace WebPage
-} // namespace Messages
-
-#endif // (ENABLE(WEBKIT2) &amp;&amp; (NESTED_MASTER_CONDITION || MASTER_OR &amp;&amp; MASTER_AND))
-
-#endif // WebPageMessages_h
-&quot;&quot;&quot;
-
-_expected_receiver_implementation = &quot;&quot;&quot;/*
- * 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;config.h&quot;
-
-#if (ENABLE(WEBKIT2) &amp;&amp; (NESTED_MASTER_CONDITION || MASTER_OR &amp;&amp; MASTER_AND))
-
-#include &quot;WebPage.h&quot;
-
-#include &quot;ArgumentCoders.h&quot;
-#include &quot;Connection.h&quot;
-#if ENABLE(DEPRECATED_FEATURE) || ENABLE(EXPERIMENTAL_FEATURE)
-#include &quot;DummyType.h&quot;
-#endif
-#include &quot;HandleMessage.h&quot;
-#if PLATFORM(MAC)
-#include &quot;MachPort.h&quot;
-#endif
-#include &quot;MessageDecoder.h&quot;
-#include &quot;Plugin.h&quot;
-#include &quot;WebCoreArgumentCoders.h&quot;
-#if (ENABLE(TOUCH_EVENTS) &amp;&amp; (NESTED_MESSAGE_CONDITION &amp;&amp; SOME_OTHER_MESSAGE_CONDITION)) || (ENABLE(TOUCH_EVENTS) &amp;&amp; (NESTED_MESSAGE_CONDITION || SOME_OTHER_MESSAGE_CONDITION))
-#include &quot;WebEvent.h&quot;
-#endif
-#include &quot;WebPageMessages.h&quot;
-#include &quot;WebPreferencesStore.h&quot;
-#if PLATFORM(MAC)
-#include &lt;WebCore/KeyboardEvent.h&gt;
-#endif
-#include &lt;WebCore/PluginData.h&gt;
-#include &lt;utility&gt;
-#include &lt;wtf/HashMap.h&gt;
-#include &lt;wtf/Vector.h&gt;
-#include &lt;wtf/text/WTFString.h&gt;
-
-namespace Messages {
-
-namespace WebPage {
-
-GetPluginProcessConnection::DelayedReply::DelayedReply(PassRefPtr&lt;IPC::Connection&gt; connection, std::unique_ptr&lt;IPC::MessageEncoder&gt; encoder)
-    : m_connection(connection)
-    , m_encoder(std::move(encoder))
-{
-}
-
-GetPluginProcessConnection::DelayedReply::~DelayedReply()
-{
-    ASSERT(!m_connection);
-}
-
-bool GetPluginProcessConnection::DelayedReply::send(const IPC::Connection::Handle&amp; connectionHandle)
-{
-    ASSERT(m_encoder);
-    *m_encoder &lt;&lt; connectionHandle;
-    bool result = m_connection-&gt;sendSyncReply(std::move(m_encoder));
-    m_connection = nullptr;
-    return result;
-}
-
-TestMultipleAttributes::DelayedReply::DelayedReply(PassRefPtr&lt;IPC::Connection&gt; connection, std::unique_ptr&lt;IPC::MessageEncoder&gt; encoder)
-    : m_connection(connection)
-    , m_encoder(std::move(encoder))
-{
-}
-
-TestMultipleAttributes::DelayedReply::~DelayedReply()
-{
-    ASSERT(!m_connection);
-}
-
-bool TestMultipleAttributes::DelayedReply::send()
-{
-    ASSERT(m_encoder);
-    bool result = m_connection-&gt;sendSyncReply(std::move(m_encoder));
-    m_connection = nullptr;
-    return result;
-}
-
-} // namespace WebPage
-
-} // namespace Messages
-
-namespace WebKit {
-
-void WebPage::didReceiveWebPageMessage(IPC::Connection*, IPC::MessageDecoder&amp; decoder)
-{
-    if (decoder.messageName() == Messages::WebPage::LoadURL::name()) {
-        IPC::handleMessage&lt;Messages::WebPage::LoadURL&gt;(decoder, this, &amp;WebPage::loadURL);
-        return;
-    }
-#if ENABLE(TOUCH_EVENTS)
-    if (decoder.messageName() == Messages::WebPage::LoadSomething::name()) {
-        IPC::handleMessage&lt;Messages::WebPage::LoadSomething&gt;(decoder, this, &amp;WebPage::loadSomething);
-        return;
-    }
-#endif
-#if (ENABLE(TOUCH_EVENTS) &amp;&amp; (NESTED_MESSAGE_CONDITION || SOME_OTHER_MESSAGE_CONDITION))
-    if (decoder.messageName() == Messages::WebPage::TouchEvent::name()) {
-        IPC::handleMessage&lt;Messages::WebPage::TouchEvent&gt;(decoder, this, &amp;WebPage::touchEvent);
-        return;
-    }
-#endif
-#if (ENABLE(TOUCH_EVENTS) &amp;&amp; (NESTED_MESSAGE_CONDITION &amp;&amp; SOME_OTHER_MESSAGE_CONDITION))
-    if (decoder.messageName() == Messages::WebPage::AddEvent::name()) {
-        IPC::handleMessage&lt;Messages::WebPage::AddEvent&gt;(decoder, this, &amp;WebPage::addEvent);
-        return;
-    }
-#endif
-#if ENABLE(TOUCH_EVENTS)
-    if (decoder.messageName() == Messages::WebPage::LoadSomethingElse::name()) {
-        IPC::handleMessage&lt;Messages::WebPage::LoadSomethingElse&gt;(decoder, this, &amp;WebPage::loadSomethingElse);
-        return;
-    }
-#endif
-    if (decoder.messageName() == Messages::WebPage::DidReceivePolicyDecision::name()) {
-        IPC::handleMessage&lt;Messages::WebPage::DidReceivePolicyDecision&gt;(decoder, this, &amp;WebPage::didReceivePolicyDecision);
-        return;
-    }
-    if (decoder.messageName() == Messages::WebPage::Close::name()) {
-        IPC::handleMessage&lt;Messages::WebPage::Close&gt;(decoder, this, &amp;WebPage::close);
-        return;
-    }
-    if (decoder.messageName() == Messages::WebPage::PreferencesDidChange::name()) {
-        IPC::handleMessage&lt;Messages::WebPage::PreferencesDidChange&gt;(decoder, this, &amp;WebPage::preferencesDidChange);
-        return;
-    }
-    if (decoder.messageName() == Messages::WebPage::SendDoubleAndFloat::name()) {
-        IPC::handleMessage&lt;Messages::WebPage::SendDoubleAndFloat&gt;(decoder, this, &amp;WebPage::sendDoubleAndFloat);
-        return;
-    }
-    if (decoder.messageName() == Messages::WebPage::SendInts::name()) {
-        IPC::handleMessage&lt;Messages::WebPage::SendInts&gt;(decoder, this, &amp;WebPage::sendInts);
-        return;
-    }
-    if (decoder.messageName() == Messages::WebPage::TestParameterAttributes::name()) {
-        IPC::handleMessage&lt;Messages::WebPage::TestParameterAttributes&gt;(decoder, this, &amp;WebPage::testParameterAttributes);
-        return;
-    }
-    if (decoder.messageName() == Messages::WebPage::TemplateTest::name()) {
-        IPC::handleMessage&lt;Messages::WebPage::TemplateTest&gt;(decoder, this, &amp;WebPage::templateTest);
-        return;
-    }
-#if PLATFORM(MAC)
-    if (decoder.messageName() == Messages::WebPage::DidCreateWebProcessConnection::name()) {
-        IPC::handleMessage&lt;Messages::WebPage::DidCreateWebProcessConnection&gt;(decoder, this, &amp;WebPage::didCreateWebProcessConnection);
-        return;
-    }
-#endif
-#if ENABLE(DEPRECATED_FEATURE)
-    if (decoder.messageName() == Messages::WebPage::DeprecatedOperation::name()) {
-        IPC::handleMessage&lt;Messages::WebPage::DeprecatedOperation&gt;(decoder, this, &amp;WebPage::deprecatedOperation);
-        return;
-    }
-#endif
-#if ENABLE(EXPERIMENTAL_FEATURE)
-    if (decoder.messageName() == Messages::WebPage::ExperimentalOperation::name()) {
-        IPC::handleMessage&lt;Messages::WebPage::ExperimentalOperation&gt;(decoder, this, &amp;WebPage::experimentalOperation);
-        return;
-    }
-#endif
-    ASSERT_NOT_REACHED();
-}
-
-void WebPage::didReceiveSyncWebPageMessage(IPC::Connection* connection, IPC::MessageDecoder&amp; decoder, std::unique_ptr&lt;IPC::MessageEncoder&gt;&amp; replyEncoder)
-{
-    if (decoder.messageName() == Messages::WebPage::CreatePlugin::name()) {
-        IPC::handleMessage&lt;Messages::WebPage::CreatePlugin&gt;(decoder, *replyEncoder, this, &amp;WebPage::createPlugin);
-        return;
-    }
-    if (decoder.messageName() == Messages::WebPage::RunJavaScriptAlert::name()) {
-        IPC::handleMessage&lt;Messages::WebPage::RunJavaScriptAlert&gt;(decoder, *replyEncoder, this, &amp;WebPage::runJavaScriptAlert);
-        return;
-    }
-    if (decoder.messageName() == Messages::WebPage::GetPlugins::name()) {
-        IPC::handleMessage&lt;Messages::WebPage::GetPlugins&gt;(decoder, *replyEncoder, this, &amp;WebPage::getPlugins);
-        return;
-    }
-    if (decoder.messageName() == Messages::WebPage::GetPluginProcessConnection::name()) {
-        IPC::handleMessageDelayed&lt;Messages::WebPage::GetPluginProcessConnection&gt;(connection, decoder, replyEncoder, this, &amp;WebPage::getPluginProcessConnection);
-        return;
-    }
-    if (decoder.messageName() == Messages::WebPage::TestMultipleAttributes::name()) {
-        IPC::handleMessageDelayed&lt;Messages::WebPage::TestMultipleAttributes&gt;(connection, decoder, replyEncoder, this, &amp;WebPage::testMultipleAttributes);
-        return;
-    }
-#if PLATFORM(MAC)
-    if (decoder.messageName() == Messages::WebPage::InterpretKeyEvent::name()) {
-        IPC::handleMessage&lt;Messages::WebPage::InterpretKeyEvent&gt;(decoder, *replyEncoder, this, &amp;WebPage::interpretKeyEvent);
-        return;
-    }
-#endif
-    ASSERT_NOT_REACHED();
-}
-
-} // namespace WebKit
-
-#endif // (ENABLE(WEBKIT2) &amp;&amp; (NESTED_MASTER_CONDITION || MASTER_OR &amp;&amp; MASTER_AND))
-&quot;&quot;&quot;
-
-
</del><span class="cx"> class GeneratedFileContentsTest(unittest.TestCase):
</span><span class="cx">     def assertGeneratedFileContentsEqual(self, first, second):
</span><span class="cx">         first_list = first.split('\n')
</span></span></pre></div>
<a id="trunkSourceWebKit2Scriptswebkit2testmessagesin"></a>
<div class="addfile"><h4>Added: trunk/Source/WebKit2/Scripts/webkit2/test-messages.in (0 => 161472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Scripts/webkit2/test-messages.in                                (rev 0)
+++ trunk/Source/WebKit2/Scripts/webkit2/test-messages.in        2014-01-08 01:03:44 UTC (rev 161472)
</span><span class="lines">@@ -0,0 +1,75 @@
</span><ins>+# 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.
+
+#if ENABLE(WEBKIT2)
+#if NESTED_MASTER_CONDITION || MASTER_OR &amp;&amp; MASTER_AND
+
+messages -&gt; WebPage LegacyReceiver {
+    LoadURL(String url)
+#if ENABLE(TOUCH_EVENTS)
+    LoadSomething(String url)
+#if NESTED_MESSAGE_CONDITION || SOME_OTHER_MESSAGE_CONDITION
+    TouchEvent(WebKit::WebTouchEvent event)
+#endif
+#if NESTED_MESSAGE_CONDITION &amp;&amp; SOME_OTHER_MESSAGE_CONDITION
+    AddEvent(WebKit::WebTouchEvent event)
+#endif
+    LoadSomethingElse(String url)
+#endif
+    DidReceivePolicyDecision(uint64_t frameID, uint64_t listenerID, uint32_t policyAction)
+    Close()
+
+    PreferencesDidChange(WebKit::WebPreferencesStore store)
+    SendDoubleAndFloat(double d, float f)
+    SendInts(Vector&lt;uint64_t&gt; ints, Vector&lt;Vector&lt;uint64_t&gt;&gt; intVectors)
+
+    CreatePlugin(uint64_t pluginInstanceID, WebKit::Plugin::Parameters parameters) -&gt; (bool result)
+    RunJavaScriptAlert(uint64_t frameID, String message) -&gt; ()
+    GetPlugins(bool refresh) -&gt; (Vector&lt;WebCore::PluginInfo&gt; plugins)
+    GetPluginProcessConnection(String pluginPath) -&gt; (IPC::Connection::Handle connectionHandle) Delayed
+
+    TestMultipleAttributes() -&gt; () WantsConnection Delayed
+
+    TestParameterAttributes([AttributeOne AttributeTwo] uint64_t foo, double bar, [AttributeThree] double baz)
+
+    TemplateTest(HashMap&lt;String, std::pair&lt;String, uint64_t&gt;&gt; a)
+
+#if PLATFORM(MAC)
+    DidCreateWebProcessConnection(IPC::MachPort connectionIdentifier)
+#endif
+
+#if PLATFORM(MAC)
+    # Keyboard support
+    InterpretKeyEvent(uint32_t type) -&gt; (Vector&lt;WebCore::KeypressCommand&gt; commandName)
+#endif
+
+#if ENABLE(DEPRECATED_FEATURE)
+    DeprecatedOperation(IPC::DummyType dummy)
+#endif
+
+#if ENABLE(EXPERIMENTAL_FEATURE)
+    ExperimentalOperation(IPC::DummyType dummy)
+#endif
+}
+
+#endif
+#endif
</ins></span></pre>
</div>
</div>

</body>
</html>