<!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>[187191] 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/187191">187191</a></dd>
<dt>Author</dt> <dd>gyuyoung.kim@webkit.org</dd>
<dt>Date</dt> <dd>2015-07-22 15:51:35 -0700 (Wed, 22 Jul 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>[EFL] Support indexeddb for WK2
https://bugs.webkit.org/show_bug.cgi?id=145867

Reviewed by Csaba Osztrogonác.

Add stub implementation for indexeddb. Move KeyedDecoder and KeyedEncoder from gtk to glib
in order to share it between GTK and EFL ports.

* DatabaseProcess/EntryPoint/unix/DatabaseProcessMain.cpp:
* DatabaseProcess/efl/DatabaseProcessMainEfl.cpp: Copied from Source/WebKit2/DatabaseProcess/EntryPoint/unix/DatabaseProcessMain.cpp.
(WebKit::DatabaseProcessMainUnix):
* PlatformEfl.cmake:
* PlatformGTK.cmake:
* Shared/glib/KeyedDecoder.cpp: Renamed from Source/WebKit2/Shared/gtk/KeyedDecoder.cpp.
(WebKit::KeyedDecoder::KeyedDecoder):
(WebKit::KeyedDecoder::~KeyedDecoder):
(WebKit::KeyedDecoder::dictionaryFromGVariant):
(WebKit::KeyedDecoder::decodeBytes):
(WebKit::KeyedDecoder::decodeSimpleValue):
(WebKit::KeyedDecoder::decodeBool):
(WebKit::KeyedDecoder::decodeUInt32):
(WebKit::KeyedDecoder::decodeInt32):
(WebKit::KeyedDecoder::decodeInt64):
(WebKit::KeyedDecoder::decodeFloat):
(WebKit::KeyedDecoder::decodeDouble):
(WebKit::KeyedDecoder::decodeString):
(WebKit::KeyedDecoder::beginObject):
(WebKit::KeyedDecoder::endObject):
(WebKit::KeyedDecoder::beginArray):
(WebKit::KeyedDecoder::beginArrayElement):
(WebKit::KeyedDecoder::endArrayElement):
(WebKit::KeyedDecoder::endArray):
* Shared/glib/KeyedDecoder.h: Renamed from Source/WebKit2/Shared/gtk/KeyedDecoder.h.
* Shared/glib/KeyedEncoder.cpp: Renamed from Source/WebKit2/Shared/gtk/KeyedEncoder.cpp.
(WebKit::KeyedEncoder::KeyedEncoder):
(WebKit::KeyedEncoder::~KeyedEncoder):
(WebKit::KeyedEncoder::encodeBytes):
(WebKit::KeyedEncoder::encodeBool):
(WebKit::KeyedEncoder::encodeUInt32):
(WebKit::KeyedEncoder::encodeInt32):
(WebKit::KeyedEncoder::encodeInt64):
(WebKit::KeyedEncoder::encodeFloat):
(WebKit::KeyedEncoder::encodeDouble):
(WebKit::KeyedEncoder::encodeString):
(WebKit::KeyedEncoder::beginObject):
(WebKit::KeyedEncoder::endObject):
(WebKit::KeyedEncoder::beginArray):
(WebKit::KeyedEncoder::beginArrayElement):
(WebKit::KeyedEncoder::endArrayElement):
(WebKit::KeyedEncoder::endArray):
(WebKit::KeyedEncoder::finishEncoding):
* Shared/glib/KeyedEncoder.h: Renamed from Source/WebKit2/Shared/gtk/KeyedEncoder.h.
* UIProcess/Databases/efl/DatabaseProcessProxyEfl.cpp: Copied from Source/WebKit2/DatabaseProcess/EntryPoint/unix/DatabaseProcessMain.cpp.
(WebKit::DatabaseProcessProxy::platformGetLaunchOptions):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2DatabaseProcessEntryPointunixDatabaseProcessMaincpp">trunk/Source/WebKit2/DatabaseProcess/EntryPoint/unix/DatabaseProcessMain.cpp</a></li>
<li><a href="#trunkSourceWebKit2PlatformEflcmake">trunk/Source/WebKit2/PlatformEfl.cmake</a></li>
<li><a href="#trunkSourceWebKit2PlatformGTKcmake">trunk/Source/WebKit2/PlatformGTK.cmake</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>trunk/Source/WebKit2/DatabaseProcess/efl/</li>
<li><a href="#trunkSourceWebKit2DatabaseProcesseflDatabaseProcessMainEflcpp">trunk/Source/WebKit2/DatabaseProcess/efl/DatabaseProcessMainEfl.cpp</a></li>
<li>trunk/Source/WebKit2/Shared/glib/</li>
<li><a href="#trunkSourceWebKit2SharedglibKeyedDecodercpp">trunk/Source/WebKit2/Shared/glib/KeyedDecoder.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedglibKeyedDecoderh">trunk/Source/WebKit2/Shared/glib/KeyedDecoder.h</a></li>
<li><a href="#trunkSourceWebKit2SharedglibKeyedEncodercpp">trunk/Source/WebKit2/Shared/glib/KeyedEncoder.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedglibKeyedEncoderh">trunk/Source/WebKit2/Shared/glib/KeyedEncoder.h</a></li>
<li>trunk/Source/WebKit2/UIProcess/Databases/efl/</li>
<li><a href="#trunkSourceWebKit2UIProcessDatabaseseflDatabaseProcessProxyEflcpp">trunk/Source/WebKit2/UIProcess/Databases/efl/DatabaseProcessProxyEfl.cpp</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2SharedgtkKeyedDecodercpp">trunk/Source/WebKit2/Shared/gtk/KeyedDecoder.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedgtkKeyedDecoderh">trunk/Source/WebKit2/Shared/gtk/KeyedDecoder.h</a></li>
<li><a href="#trunkSourceWebKit2SharedgtkKeyedEncodercpp">trunk/Source/WebKit2/Shared/gtk/KeyedEncoder.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedgtkKeyedEncoderh">trunk/Source/WebKit2/Shared/gtk/KeyedEncoder.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (187190 => 187191)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2015-07-22 22:09:35 UTC (rev 187190)
+++ trunk/Source/WebKit2/ChangeLog        2015-07-22 22:51:35 UTC (rev 187191)
</span><span class="lines">@@ -1,3 +1,60 @@
</span><ins>+2015-07-22  Gyuyoung Kim  &lt;gyuyoung.kim@webkit.org&gt;
+
+        [EFL] Support indexeddb for WK2
+        https://bugs.webkit.org/show_bug.cgi?id=145867
+
+        Reviewed by Csaba Osztrogonác.
+
+        Add stub implementation for indexeddb. Move KeyedDecoder and KeyedEncoder from gtk to glib
+        in order to share it between GTK and EFL ports.
+
+        * DatabaseProcess/EntryPoint/unix/DatabaseProcessMain.cpp:
+        * DatabaseProcess/efl/DatabaseProcessMainEfl.cpp: Copied from Source/WebKit2/DatabaseProcess/EntryPoint/unix/DatabaseProcessMain.cpp.
+        (WebKit::DatabaseProcessMainUnix):
+        * PlatformEfl.cmake:
+        * PlatformGTK.cmake:
+        * Shared/glib/KeyedDecoder.cpp: Renamed from Source/WebKit2/Shared/gtk/KeyedDecoder.cpp.
+        (WebKit::KeyedDecoder::KeyedDecoder):
+        (WebKit::KeyedDecoder::~KeyedDecoder):
+        (WebKit::KeyedDecoder::dictionaryFromGVariant):
+        (WebKit::KeyedDecoder::decodeBytes):
+        (WebKit::KeyedDecoder::decodeSimpleValue):
+        (WebKit::KeyedDecoder::decodeBool):
+        (WebKit::KeyedDecoder::decodeUInt32):
+        (WebKit::KeyedDecoder::decodeInt32):
+        (WebKit::KeyedDecoder::decodeInt64):
+        (WebKit::KeyedDecoder::decodeFloat):
+        (WebKit::KeyedDecoder::decodeDouble):
+        (WebKit::KeyedDecoder::decodeString):
+        (WebKit::KeyedDecoder::beginObject):
+        (WebKit::KeyedDecoder::endObject):
+        (WebKit::KeyedDecoder::beginArray):
+        (WebKit::KeyedDecoder::beginArrayElement):
+        (WebKit::KeyedDecoder::endArrayElement):
+        (WebKit::KeyedDecoder::endArray):
+        * Shared/glib/KeyedDecoder.h: Renamed from Source/WebKit2/Shared/gtk/KeyedDecoder.h.
+        * Shared/glib/KeyedEncoder.cpp: Renamed from Source/WebKit2/Shared/gtk/KeyedEncoder.cpp.
+        (WebKit::KeyedEncoder::KeyedEncoder):
+        (WebKit::KeyedEncoder::~KeyedEncoder):
+        (WebKit::KeyedEncoder::encodeBytes):
+        (WebKit::KeyedEncoder::encodeBool):
+        (WebKit::KeyedEncoder::encodeUInt32):
+        (WebKit::KeyedEncoder::encodeInt32):
+        (WebKit::KeyedEncoder::encodeInt64):
+        (WebKit::KeyedEncoder::encodeFloat):
+        (WebKit::KeyedEncoder::encodeDouble):
+        (WebKit::KeyedEncoder::encodeString):
+        (WebKit::KeyedEncoder::beginObject):
+        (WebKit::KeyedEncoder::endObject):
+        (WebKit::KeyedEncoder::beginArray):
+        (WebKit::KeyedEncoder::beginArrayElement):
+        (WebKit::KeyedEncoder::endArrayElement):
+        (WebKit::KeyedEncoder::endArray):
+        (WebKit::KeyedEncoder::finishEncoding):
+        * Shared/glib/KeyedEncoder.h: Renamed from Source/WebKit2/Shared/gtk/KeyedEncoder.h.
+        * UIProcess/Databases/efl/DatabaseProcessProxyEfl.cpp: Copied from Source/WebKit2/DatabaseProcess/EntryPoint/unix/DatabaseProcessMain.cpp.
+        (WebKit::DatabaseProcessProxy::platformGetLaunchOptions):
+
</ins><span class="cx"> 2015-07-22  Michael Catanzaro  &lt;mcatanzaro@igalia.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [Seccomp] Canonicalize filesystem path when whitelisting it
</span></span></pre></div>
<a id="trunkSourceWebKit2DatabaseProcessEntryPointunixDatabaseProcessMaincpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/DatabaseProcess/EntryPoint/unix/DatabaseProcessMain.cpp (187190 => 187191)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/DatabaseProcess/EntryPoint/unix/DatabaseProcessMain.cpp        2015-07-22 22:09:35 UTC (rev 187190)
+++ trunk/Source/WebKit2/DatabaseProcess/EntryPoint/unix/DatabaseProcessMain.cpp        2015-07-22 22:51:35 UTC (rev 187191)
</span><span class="lines">@@ -23,6 +23,7 @@
</span><span class="cx">  * THE POSSIBILITY OF SUCH DAMAGE.
</span><span class="cx">  */
</span><span class="cx"> 
</span><ins>+#include &quot;config.h&quot;
</ins><span class="cx"> #include &quot;DatabaseProcessMainUnix.h&quot;
</span><span class="cx"> 
</span><span class="cx"> using namespace WebKit;
</span></span></pre></div>
<a id="trunkSourceWebKit2DatabaseProcesseflDatabaseProcessMainEflcppfromrev187190trunkSourceWebKit2DatabaseProcessEntryPointunixDatabaseProcessMaincpp"></a>
<div class="copfile"><h4>Copied: trunk/Source/WebKit2/DatabaseProcess/efl/DatabaseProcessMainEfl.cpp (from rev 187190, trunk/Source/WebKit2/DatabaseProcess/EntryPoint/unix/DatabaseProcessMain.cpp) (0 => 187191)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/DatabaseProcess/efl/DatabaseProcessMainEfl.cpp                                (rev 0)
+++ trunk/Source/WebKit2/DatabaseProcess/efl/DatabaseProcessMainEfl.cpp        2015-07-22 22:51:35 UTC (rev 187191)
</span><span class="lines">@@ -0,0 +1,53 @@
</span><ins>+/*
+ * Copyright (C) 2015 Naver Corp. 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;
+#include &quot;DatabaseProcess.h&quot;
+
+#if ENABLE(DATABASE_PROCESS)
+
+#include &quot;ChildProcessMain.h&quot;
+#include &quot;DatabaseProcessMainUnix.h&quot;
+
+using namespace WebCore;
+
+namespace WebKit {
+
+class DatabaseProcessMain final: public ChildProcessMainBase {
+public:
+    bool platformInitialize() override
+    {
+        return true;
+    }
+};
+
+int DatabaseProcessMainUnix(int argc, char** argv)
+{
+    return ChildProcessMain&lt;DatabaseProcess, DatabaseProcessMain&gt;(argc, argv);
+}
+
+} // namespace WebKit
+
+#endif // ENABLE(DATABASE_PROCESS)
</ins></span></pre></div>
<a id="trunkSourceWebKit2PlatformEflcmake"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/PlatformEfl.cmake (187190 => 187191)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/PlatformEfl.cmake        2015-07-22 22:09:35 UTC (rev 187190)
+++ trunk/Source/WebKit2/PlatformEfl.cmake        2015-07-22 22:51:35 UTC (rev 187191)
</span><span class="lines">@@ -1,4 +1,6 @@
</span><span class="cx"> list(APPEND WebKit2_SOURCES
</span><ins>+    DatabaseProcess/efl/DatabaseProcessMainEfl.cpp
+
</ins><span class="cx">     NetworkProcess/efl/NetworkProcessMainEfl.cpp
</span><span class="cx"> 
</span><span class="cx">     NetworkProcess/soup/NetworkProcessSoup.cpp
</span><span class="lines">@@ -45,6 +47,9 @@
</span><span class="cx">     Shared/efl/ProcessExecutablePathEfl.cpp
</span><span class="cx">     Shared/efl/WebEventFactory.cpp
</span><span class="cx"> 
</span><ins>+    Shared/glib/KeyedDecoder.cpp
+    Shared/glib/KeyedEncoder.cpp
+
</ins><span class="cx">     Shared/linux/WebMemorySamplerLinux.cpp
</span><span class="cx"> 
</span><span class="cx">     Shared/linux/SeccompFilters/OpenSyscall.cpp
</span><span class="lines">@@ -124,6 +129,8 @@
</span><span class="cx">     UIProcess/CoordinatedGraphics/WebView.cpp
</span><span class="cx">     UIProcess/CoordinatedGraphics/WebViewClient.cpp
</span><span class="cx"> 
</span><ins>+    UIProcess/Databases/efl/DatabaseProcessProxyEfl.cpp
+
</ins><span class="cx">     UIProcess/InspectorServer/efl/WebInspectorServerEfl.cpp
</span><span class="cx"> 
</span><span class="cx">     UIProcess/InspectorServer/soup/WebSocketServerSoup.cpp
</span><span class="lines">@@ -231,6 +238,7 @@
</span><span class="cx">     &quot;${WEBCORE_DIR}/platform/graphics/x11&quot;
</span><span class="cx">     &quot;${WEBCORE_DIR}/platform/network/soup&quot;
</span><span class="cx">     &quot;${WEBCORE_DIR}/platform/text/enchant&quot;
</span><ins>+    &quot;${WEBKIT2_DIR}/DatabaseProcess/unix&quot;
</ins><span class="cx">     &quot;${WEBKIT2_DIR}/NetworkProcess/efl&quot;
</span><span class="cx">     &quot;${WEBKIT2_DIR}/NetworkProcess/unix&quot;
</span><span class="cx">     &quot;${WEBKIT2_DIR}/Platform/efl&quot;
</span><span class="lines">@@ -261,6 +269,8 @@
</span><span class="cx">     &quot;${WEBKIT2_DIR}/WebProcess/WebPage/CoordinatedGraphics&quot;
</span><span class="cx">     &quot;${WTF_DIR}/wtf/efl&quot;
</span><span class="cx">     &quot;${WTF_DIR}/wtf/glib&quot;
</span><ins>+    &quot;${WTF_DIR}&quot;
+    &quot;${WEBKIT2_DIR}&quot;
</ins><span class="cx"> )
</span><span class="cx"> 
</span><span class="cx"> list(APPEND WebKit2_SYSTEM_INCLUDE_DIRECTORIES
</span><span class="lines">@@ -317,6 +327,10 @@
</span><span class="cx">     NetworkProcess/EntryPoint/unix/NetworkProcessMain.cpp
</span><span class="cx"> )
</span><span class="cx"> 
</span><ins>+list(APPEND DatabaseProcess_SOURCES
+    DatabaseProcess/EntryPoint/unix/DatabaseProcessMain.cpp
+)
+
</ins><span class="cx"> list(APPEND WebProcess_LIBRARIES
</span><span class="cx">     ${CAIRO_LIBRARIES}
</span><span class="cx">     ${ECORE_IMF_EVAS_LIBRARIES}
</span></span></pre></div>
<a id="trunkSourceWebKit2PlatformGTKcmake"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/PlatformGTK.cmake (187190 => 187191)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/PlatformGTK.cmake        2015-07-22 22:09:35 UTC (rev 187190)
+++ trunk/Source/WebKit2/PlatformGTK.cmake        2015-07-22 22:51:35 UTC (rev 187191)
</span><span class="lines">@@ -62,9 +62,9 @@
</span><span class="cx"> 
</span><span class="cx">     Shared/cairo/ShareableBitmapCairo.cpp
</span><span class="cx"> 
</span><ins>+    Shared/glib/KeyedDecoder.cpp
+    Shared/glib/KeyedEncoder.cpp
</ins><span class="cx">     Shared/gtk/ArgumentCodersGtk.cpp
</span><del>-    Shared/gtk/KeyedDecoder.cpp
-    Shared/gtk/KeyedEncoder.cpp
</del><span class="cx">     Shared/gtk/NativeContextMenuItemGtk.cpp
</span><span class="cx">     Shared/gtk/NativeWebKeyboardEventGtk.cpp
</span><span class="cx">     Shared/gtk/NativeWebMouseEventGtk.cpp
</span><span class="lines">@@ -483,6 +483,7 @@
</span><span class="cx">     &quot;${WEBKIT2_DIR}/Shared/Network/CustomProtocols/soup&quot;
</span><span class="cx">     &quot;${WEBKIT2_DIR}/Shared/Downloads/soup&quot;
</span><span class="cx">     &quot;${WEBKIT2_DIR}/Shared/Plugins/unix&quot;
</span><ins>+    &quot;${WEBKIT2_DIR}/Shared/glib&quot;
</ins><span class="cx">     &quot;${WEBKIT2_DIR}/Shared/gtk&quot;
</span><span class="cx">     &quot;${WEBKIT2_DIR}/Shared/linux&quot;
</span><span class="cx">     &quot;${WEBKIT2_DIR}/Shared/linux/SeccompFilters&quot;
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedglibKeyedDecodercppfromrev187190trunkSourceWebKit2SharedgtkKeyedDecodercpp"></a>
<div class="copfile"><h4>Copied: trunk/Source/WebKit2/Shared/glib/KeyedDecoder.cpp (from rev 187190, trunk/Source/WebKit2/Shared/gtk/KeyedDecoder.cpp) (0 => 187191)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/glib/KeyedDecoder.cpp                                (rev 0)
+++ trunk/Source/WebKit2/Shared/glib/KeyedDecoder.cpp        2015-07-22 22:51:35 UTC (rev 187191)
</span><span class="lines">@@ -0,0 +1,168 @@
</span><ins>+/*
+ * Copyright (C) 2015 Igalia S.L.
+ *
+ * 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;
+#include &quot;KeyedDecoder.h&quot;
+
+#include &lt;wtf/text/CString.h&gt;
+
+namespace WebKit {
+
+KeyedDecoder::KeyedDecoder(const uint8_t* data, size_t size)
+{
+    GRefPtr&lt;GBytes&gt; bytes = adoptGRef(g_bytes_new(data, size));
+    GRefPtr&lt;GVariant&gt; variant = g_variant_new_from_bytes(G_VARIANT_TYPE(&quot;a{sv}&quot;), bytes.get(), TRUE);
+    m_dictionaryStack.append(dictionaryFromGVariant(variant.get()));
+}
+
+KeyedDecoder::~KeyedDecoder()
+{
+    ASSERT(m_dictionaryStack.size() == 1);
+    ASSERT(m_arrayStack.isEmpty());
+    ASSERT(m_arrayIndexStack.isEmpty());
+}
+
+HashMap&lt;String, GRefPtr&lt;GVariant&gt;&gt; KeyedDecoder::dictionaryFromGVariant(GVariant* variant)
+{
+    HashMap&lt;String, GRefPtr&lt;GVariant&gt;&gt; dictionary;
+    GVariantIter iter;
+    g_variant_iter_init(&amp;iter, variant);
+    const char* key;
+    GVariant* value;
+    while (g_variant_iter_loop(&amp;iter, &quot;{&amp;sv}&quot;, &amp;key, &amp;value))
+        dictionary.set(String::fromUTF8(key), value);
+    return WTF::move(dictionary);
+}
+
+bool KeyedDecoder::decodeBytes(const String&amp; key, const uint8_t*&amp; bytes, size_t&amp; size)
+{
+    GRefPtr&lt;GVariant&gt; value = m_dictionaryStack.last().get(key);
+    if (!value)
+        return false;
+
+    size = g_variant_get_size(value.get());
+    bytes = static_cast&lt;const uint8_t*&gt;(g_variant_get_data(value.get()));
+    return true;
+}
+
+template&lt;typename T, typename F&gt;
+bool KeyedDecoder::decodeSimpleValue(const String&amp; key, T&amp; result, F getFunction)
+{
+    GRefPtr&lt;GVariant&gt; value = m_dictionaryStack.last().get(key);
+    if (!value)
+        return false;
+
+    result = getFunction(value.get());
+    return true;
+}
+
+bool KeyedDecoder::decodeBool(const String&amp; key, bool&amp; result)
+{
+    return decodeSimpleValue(key, result, g_variant_get_boolean);
+}
+
+bool KeyedDecoder::decodeUInt32(const String&amp; key, uint32_t&amp; result)
+{
+    return decodeSimpleValue(key, result, g_variant_get_uint32);
+}
+
+bool KeyedDecoder::decodeInt32(const String&amp; key, int32_t&amp; result)
+{
+    return decodeSimpleValue(key, result, g_variant_get_int32);
+}
+
+bool KeyedDecoder::decodeInt64(const String&amp; key, int64_t&amp; result)
+{
+    return decodeSimpleValue(key, result, g_variant_get_int64);
+}
+
+bool KeyedDecoder::decodeFloat(const String&amp; key, float&amp; result)
+{
+    return decodeSimpleValue(key, result, g_variant_get_double);
+}
+
+bool KeyedDecoder::decodeDouble(const String&amp; key, double&amp; result)
+{
+    return decodeSimpleValue(key, result, g_variant_get_double);
+}
+
+bool KeyedDecoder::decodeString(const String&amp; key, String&amp; result)
+{
+    GRefPtr&lt;GVariant&gt; value = m_dictionaryStack.last().get(key);
+    if (!value)
+        return false;
+
+    result = String::fromUTF8(g_variant_get_string(value.get(), nullptr));
+    return true;
+}
+
+bool KeyedDecoder::beginObject(const String&amp; key)
+{
+    GRefPtr&lt;GVariant&gt; value = m_dictionaryStack.last().get(key);
+    if (!value)
+        return false;
+
+    m_dictionaryStack.append(dictionaryFromGVariant(value.get()));
+    return true;
+}
+
+void KeyedDecoder::endObject()
+{
+    m_dictionaryStack.removeLast();
+}
+
+bool KeyedDecoder::beginArray(const String&amp; key)
+{
+    GRefPtr&lt;GVariant&gt; value = m_dictionaryStack.last().get(key);
+    if (!value)
+        return false;
+
+    m_arrayStack.append(value.get());
+    m_arrayIndexStack.append(0);
+    return true;
+}
+
+bool KeyedDecoder::beginArrayElement()
+{
+    if (m_arrayIndexStack.last() &gt;= g_variant_n_children(m_arrayStack.last()))
+        return false;
+
+    GRefPtr&lt;GVariant&gt; variant = adoptGRef(g_variant_get_child_value(m_arrayStack.last(), m_arrayIndexStack.last()++));
+    m_dictionaryStack.append(dictionaryFromGVariant(variant.get()));
+    return true;
+}
+
+void KeyedDecoder::endArrayElement()
+{
+    m_dictionaryStack.removeLast();
+}
+
+void KeyedDecoder::endArray()
+{
+    m_arrayStack.removeLast();
+    m_arrayIndexStack.removeLast();
+}
+
+} // namespace WebKit
</ins></span></pre></div>
<a id="trunkSourceWebKit2SharedglibKeyedDecoderhfromrev187190trunkSourceWebKit2SharedgtkKeyedDecoderh"></a>
<div class="copfile"><h4>Copied: trunk/Source/WebKit2/Shared/glib/KeyedDecoder.h (from rev 187190, trunk/Source/WebKit2/Shared/gtk/KeyedDecoder.h) (0 => 187191)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/glib/KeyedDecoder.h                                (rev 0)
+++ trunk/Source/WebKit2/Shared/glib/KeyedDecoder.h        2015-07-22 22:51:35 UTC (rev 187191)
</span><span class="lines">@@ -0,0 +1,71 @@
</span><ins>+/*
+ * Copyright (C) 2015 Igaia S.L.
+ *
+ * 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 KeyedDecoder_h
+#define KeyedDecoder_h
+
+#include &lt;WebCore/KeyedCoding.h&gt;
+#include &lt;glib.h&gt;
+#include &lt;wtf/HashMap.h&gt;
+#include &lt;wtf/glib/GRefPtr.h&gt;
+#include &lt;wtf/text/StringHash.h&gt;
+#include &lt;wtf/text/WTFString.h&gt;
+
+namespace WebKit {
+
+class KeyedDecoder final : public WebCore::KeyedDecoder {
+public:
+    KeyedDecoder(const uint8_t* data, size_t);
+    virtual ~KeyedDecoder() override;
+
+private:
+    virtual bool decodeBytes(const String&amp; key, const uint8_t*&amp;, size_t&amp;) override;
+    virtual bool decodeBool(const String&amp; key, bool&amp;) override;
+    virtual bool decodeUInt32(const String&amp; key, uint32_t&amp;) override;
+    virtual bool decodeInt32(const String&amp; key, int32_t&amp;) override;
+    virtual bool decodeInt64(const String&amp; key, int64_t&amp;) override;
+    virtual bool decodeFloat(const String&amp; key, float&amp;) override;
+    virtual bool decodeDouble(const String&amp; key, double&amp;) override;
+    virtual bool decodeString(const String&amp; key, String&amp;) override;
+
+    virtual bool beginObject(const String&amp; key) override;
+    virtual void endObject() override;
+
+    virtual bool beginArray(const String&amp; key) override;
+    virtual bool beginArrayElement() override;
+    virtual void endArrayElement() override;
+    virtual void endArray() override;
+
+    template&lt;typename T, typename F&gt; bool decodeSimpleValue(const String&amp; key, T&amp; result, F getFunction);
+    HashMap&lt;String, GRefPtr&lt;GVariant&gt;&gt; dictionaryFromGVariant(GVariant*);
+
+    Vector&lt;HashMap&lt;String, GRefPtr&lt;GVariant&gt;&gt;&gt; m_dictionaryStack;
+    Vector&lt;GVariant*, 16&gt; m_arrayStack;
+    Vector&lt;unsigned&gt; m_arrayIndexStack;
+};
+
+} // namespace WebKit
+
+#endif // KeyedDecoder_h
</ins></span></pre></div>
<a id="trunkSourceWebKit2SharedglibKeyedEncodercppfromrev187190trunkSourceWebKit2SharedgtkKeyedEncodercpp"></a>
<div class="copfile"><h4>Copied: trunk/Source/WebKit2/Shared/glib/KeyedEncoder.cpp (from rev 187190, trunk/Source/WebKit2/Shared/gtk/KeyedEncoder.cpp) (0 => 187191)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/glib/KeyedEncoder.cpp                                (rev 0)
+++ trunk/Source/WebKit2/Shared/glib/KeyedEncoder.cpp        2015-07-22 22:51:35 UTC (rev 187191)
</span><span class="lines">@@ -0,0 +1,135 @@
</span><ins>+/*
+ * Copyright (C) 2015 Igalia S.L.
+ *
+ * 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;
+#include &quot;KeyedEncoder.h&quot;
+
+#include &lt;WebCore/SharedBuffer.h&gt;
+#include &lt;wtf/text/CString.h&gt;
+
+using namespace WebCore;
+
+namespace WebKit {
+
+KeyedEncoder::KeyedEncoder()
+{
+    g_variant_builder_init(&amp;m_variantBuilder, G_VARIANT_TYPE(&quot;a{sv}&quot;));
+    m_variantBuilderStack.append(&amp;m_variantBuilder);
+}
+
+KeyedEncoder::~KeyedEncoder()
+{
+    ASSERT(m_variantBuilderStack.size() == 1);
+    ASSERT(m_variantBuilderStack.last() == &amp;m_variantBuilder);
+    ASSERT(m_arrayStack.isEmpty());
+    ASSERT(m_objectStack.isEmpty());
+}
+
+void KeyedEncoder::encodeBytes(const String&amp; key, const uint8_t* bytes, size_t size)
+{
+    GRefPtr&lt;GBytes&gt; gBytes = adoptGRef(g_bytes_new_static(bytes, size));
+    g_variant_builder_add(m_variantBuilderStack.last(), &quot;{sv}&quot;, key.utf8().data(), g_variant_new_from_bytes(G_VARIANT_TYPE(&quot;ay&quot;), gBytes.get(), TRUE));
+}
+
+void KeyedEncoder::encodeBool(const String&amp; key, bool value)
+{
+    g_variant_builder_add(m_variantBuilderStack.last(), &quot;{sv}&quot;, key.utf8().data(), g_variant_new_boolean(value));
+}
+
+void KeyedEncoder::encodeUInt32(const String&amp; key, uint32_t value)
+{
+    g_variant_builder_add(m_variantBuilderStack.last(), &quot;{sv}&quot;, key.utf8().data(), g_variant_new_uint32(value));
+}
+
+void KeyedEncoder::encodeInt32(const String&amp; key, int32_t value)
+{
+    g_variant_builder_add(m_variantBuilderStack.last(), &quot;{sv}&quot;, key.utf8().data(), g_variant_new_int32(value));
+}
+
+void KeyedEncoder::encodeInt64(const String&amp; key, int64_t value)
+{
+    g_variant_builder_add(m_variantBuilderStack.last(), &quot;{sv}&quot;, key.utf8().data(), g_variant_new_int64(value));
+}
+
+void KeyedEncoder::encodeFloat(const String&amp; key, float value)
+{
+    encodeDouble(key, value);
+}
+
+void KeyedEncoder::encodeDouble(const String&amp; key, double value)
+{
+    g_variant_builder_add(m_variantBuilderStack.last(), &quot;{sv}&quot;, key.utf8().data(), g_variant_new_double(value));
+}
+
+void KeyedEncoder::encodeString(const String&amp; key, const String&amp; value)
+{
+    g_variant_builder_add(m_variantBuilderStack.last(), &quot;{sv}&quot;, key.utf8().data(), g_variant_new_string(value.utf8().data()));
+}
+
+void KeyedEncoder::beginObject(const String&amp; key)
+{
+    GRefPtr&lt;GVariantBuilder&gt; builder = adoptGRef(g_variant_builder_new(G_VARIANT_TYPE(&quot;aa{sv}&quot;)));
+    m_objectStack.append(std::make_pair(key, builder));
+    m_variantBuilderStack.append(builder.get());
+}
+
+void KeyedEncoder::endObject()
+{
+    GVariantBuilder* builder = m_variantBuilderStack.takeLast();
+    g_variant_builder_add(m_variantBuilderStack.last(), &quot;{sv}&quot;, m_objectStack.last().first.utf8().data(), g_variant_builder_end(builder));
+    m_objectStack.removeLast();
+}
+
+void KeyedEncoder::beginArray(const String&amp; key)
+{
+    m_arrayStack.append(std::make_pair(key, adoptGRef(g_variant_builder_new(G_VARIANT_TYPE(&quot;aa{sv}&quot;)))));
+}
+
+void KeyedEncoder::beginArrayElement()
+{
+    m_variantBuilderStack.append(g_variant_builder_new(G_VARIANT_TYPE(&quot;a{sv}&quot;)));
+}
+
+void KeyedEncoder::endArrayElement()
+{
+    GRefPtr&lt;GVariantBuilder&gt; variantBuilder = adoptGRef(m_variantBuilderStack.takeLast());
+    g_variant_builder_add_value(m_arrayStack.last().second.get(), g_variant_builder_end(variantBuilder.get()));
+}
+
+void KeyedEncoder::endArray()
+{
+    g_variant_builder_add(m_variantBuilderStack.last(), &quot;{sv}&quot;, m_arrayStack.last().first.utf8().data(), g_variant_builder_end(m_arrayStack.last().second.get()));
+    m_arrayStack.removeLast();
+}
+
+PassRefPtr&lt;SharedBuffer&gt; KeyedEncoder::finishEncoding()
+{
+    g_assert(m_variantBuilderStack.last() == &amp;m_variantBuilder);
+    GRefPtr&lt;GVariant&gt; variant = g_variant_builder_end(&amp;m_variantBuilder);
+    GRefPtr&lt;GBytes&gt; data = g_variant_get_data_as_bytes(variant.get());
+    return SharedBuffer::create(static_cast&lt;const unsigned char*&gt;(g_bytes_get_data(data.get(), nullptr)), static_cast&lt;unsigned&gt;(g_bytes_get_size(data.get())));
+}
+
+} // namespace WebKit
</ins></span></pre></div>
<a id="trunkSourceWebKit2SharedglibKeyedEncoderhfromrev187190trunkSourceWebKit2SharedgtkKeyedEncoderh"></a>
<div class="copfile"><h4>Copied: trunk/Source/WebKit2/Shared/glib/KeyedEncoder.h (from rev 187190, trunk/Source/WebKit2/Shared/gtk/KeyedEncoder.h) (0 => 187191)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/glib/KeyedEncoder.h                                (rev 0)
+++ trunk/Source/WebKit2/Shared/glib/KeyedEncoder.h        2015-07-22 22:51:35 UTC (rev 187191)
</span><span class="lines">@@ -0,0 +1,70 @@
</span><ins>+/*
+ * Copyright (C) 2015 Igalia S.L.
+ *
+ * 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 KeyedEncoder_h
+#define KeyedEncoder_h
+
+#include &lt;WebCore/KeyedCoding.h&gt;
+#include &lt;glib.h&gt;
+#include &lt;wtf/Vector.h&gt;
+#include &lt;wtf/glib/GRefPtr.h&gt;
+#include &lt;wtf/text/WTFString.h&gt;
+
+namespace WebKit {
+
+class KeyedEncoder final : public WebCore::KeyedEncoder {
+public:
+    KeyedEncoder();
+    ~KeyedEncoder();
+
+    virtual PassRefPtr&lt;WebCore::SharedBuffer&gt; finishEncoding() override;
+
+private:
+    virtual void encodeBytes(const String&amp; key, const uint8_t*, size_t) override;
+    virtual void encodeBool(const String&amp; key, bool) override;
+    virtual void encodeUInt32(const String&amp; key, uint32_t) override;
+    virtual void encodeInt32(const String&amp; key, int32_t) override;
+    virtual void encodeInt64(const String&amp; key, int64_t) override;
+    virtual void encodeFloat(const String&amp; key, float) override;
+    virtual void encodeDouble(const String&amp; key, double) override;
+    virtual void encodeString(const String&amp; key, const String&amp;) override;
+
+    virtual void beginObject(const String&amp; key) override;
+    virtual void endObject() override;
+
+    virtual void beginArray(const String&amp; key) override;
+    virtual void beginArrayElement() override;
+    virtual void endArrayElement() override;
+    virtual void endArray() override;
+
+    GVariantBuilder m_variantBuilder;
+    Vector&lt;GVariantBuilder*, 16&gt; m_variantBuilderStack;
+    Vector&lt;std::pair&lt;String, GRefPtr&lt;GVariantBuilder&gt;&gt;, 16&gt; m_arrayStack;
+    Vector&lt;std::pair&lt;String, GRefPtr&lt;GVariantBuilder&gt;&gt;, 16&gt; m_objectStack;
+};
+
+} // namespace WebKit
+
+#endif // KeyedEncoder_h
</ins></span></pre></div>
<a id="trunkSourceWebKit2SharedgtkKeyedDecodercpp"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit2/Shared/gtk/KeyedDecoder.cpp (187190 => 187191)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/gtk/KeyedDecoder.cpp        2015-07-22 22:09:35 UTC (rev 187190)
+++ trunk/Source/WebKit2/Shared/gtk/KeyedDecoder.cpp        2015-07-22 22:51:35 UTC (rev 187191)
</span><span class="lines">@@ -1,168 +0,0 @@
</span><del>-/*
- * Copyright (C) 2015 Igalia S.L.
- *
- * 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;
-#include &quot;KeyedDecoder.h&quot;
-
-#include &lt;wtf/text/CString.h&gt;
-
-namespace WebKit {
-
-KeyedDecoder::KeyedDecoder(const uint8_t* data, size_t size)
-{
-    GRefPtr&lt;GBytes&gt; bytes = adoptGRef(g_bytes_new(data, size));
-    GRefPtr&lt;GVariant&gt; variant = g_variant_new_from_bytes(G_VARIANT_TYPE(&quot;a{sv}&quot;), bytes.get(), TRUE);
-    m_dictionaryStack.append(dictionaryFromGVariant(variant.get()));
-}
-
-KeyedDecoder::~KeyedDecoder()
-{
-    ASSERT(m_dictionaryStack.size() == 1);
-    ASSERT(m_arrayStack.isEmpty());
-    ASSERT(m_arrayIndexStack.isEmpty());
-}
-
-HashMap&lt;String, GRefPtr&lt;GVariant&gt;&gt; KeyedDecoder::dictionaryFromGVariant(GVariant* variant)
-{
-    HashMap&lt;String, GRefPtr&lt;GVariant&gt;&gt; dictionary;
-    GVariantIter iter;
-    g_variant_iter_init(&amp;iter, variant);
-    const char* key;
-    GVariant* value;
-    while (g_variant_iter_loop(&amp;iter, &quot;{&amp;sv}&quot;, &amp;key, &amp;value))
-        dictionary.set(String::fromUTF8(key), value);
-    return WTF::move(dictionary);
-}
-
-bool KeyedDecoder::decodeBytes(const String&amp; key, const uint8_t*&amp; bytes, size_t&amp; size)
-{
-    GRefPtr&lt;GVariant&gt; value = m_dictionaryStack.last().get(key);
-    if (!value)
-        return false;
-
-    size = g_variant_get_size(value.get());
-    bytes = static_cast&lt;const uint8_t*&gt;(g_variant_get_data(value.get()));
-    return true;
-}
-
-template&lt;typename T, typename F&gt;
-bool KeyedDecoder::decodeSimpleValue(const String&amp; key, T&amp; result, F getFunction)
-{
-    GRefPtr&lt;GVariant&gt; value = m_dictionaryStack.last().get(key);
-    if (!value)
-        return false;
-
-    result = getFunction(value.get());
-    return true;
-}
-
-bool KeyedDecoder::decodeBool(const String&amp; key, bool&amp; result)
-{
-    return decodeSimpleValue(key, result, g_variant_get_boolean);
-}
-
-bool KeyedDecoder::decodeUInt32(const String&amp; key, uint32_t&amp; result)
-{
-    return decodeSimpleValue(key, result, g_variant_get_uint32);
-}
-
-bool KeyedDecoder::decodeInt32(const String&amp; key, int32_t&amp; result)
-{
-    return decodeSimpleValue(key, result, g_variant_get_int32);
-}
-
-bool KeyedDecoder::decodeInt64(const String&amp; key, int64_t&amp; result)
-{
-    return decodeSimpleValue(key, result, g_variant_get_int64);
-}
-
-bool KeyedDecoder::decodeFloat(const String&amp; key, float&amp; result)
-{
-    return decodeSimpleValue(key, result, g_variant_get_double);
-}
-
-bool KeyedDecoder::decodeDouble(const String&amp; key, double&amp; result)
-{
-    return decodeSimpleValue(key, result, g_variant_get_double);
-}
-
-bool KeyedDecoder::decodeString(const String&amp; key, String&amp; result)
-{
-    GRefPtr&lt;GVariant&gt; value = m_dictionaryStack.last().get(key);
-    if (!value)
-        return false;
-
-    result = String::fromUTF8(g_variant_get_string(value.get(), nullptr));
-    return true;
-}
-
-bool KeyedDecoder::beginObject(const String&amp; key)
-{
-    GRefPtr&lt;GVariant&gt; value = m_dictionaryStack.last().get(key);
-    if (!value)
-        return false;
-
-    m_dictionaryStack.append(dictionaryFromGVariant(value.get()));
-    return true;
-}
-
-void KeyedDecoder::endObject()
-{
-    m_dictionaryStack.removeLast();
-}
-
-bool KeyedDecoder::beginArray(const String&amp; key)
-{
-    GRefPtr&lt;GVariant&gt; value = m_dictionaryStack.last().get(key);
-    if (!value)
-        return false;
-
-    m_arrayStack.append(value.get());
-    m_arrayIndexStack.append(0);
-    return true;
-}
-
-bool KeyedDecoder::beginArrayElement()
-{
-    if (m_arrayIndexStack.last() &gt;= g_variant_n_children(m_arrayStack.last()))
-        return false;
-
-    GRefPtr&lt;GVariant&gt; variant = adoptGRef(g_variant_get_child_value(m_arrayStack.last(), m_arrayIndexStack.last()++));
-    m_dictionaryStack.append(dictionaryFromGVariant(variant.get()));
-    return true;
-}
-
-void KeyedDecoder::endArrayElement()
-{
-    m_dictionaryStack.removeLast();
-}
-
-void KeyedDecoder::endArray()
-{
-    m_arrayStack.removeLast();
-    m_arrayIndexStack.removeLast();
-}
-
-} // namespace WebKit
</del></span></pre></div>
<a id="trunkSourceWebKit2SharedgtkKeyedDecoderh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit2/Shared/gtk/KeyedDecoder.h (187190 => 187191)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/gtk/KeyedDecoder.h        2015-07-22 22:09:35 UTC (rev 187190)
+++ trunk/Source/WebKit2/Shared/gtk/KeyedDecoder.h        2015-07-22 22:51:35 UTC (rev 187191)
</span><span class="lines">@@ -1,71 +0,0 @@
</span><del>-/*
- * Copyright (C) 2015 Igaia S.L.
- *
- * 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 KeyedDecoder_h
-#define KeyedDecoder_h
-
-#include &lt;WebCore/KeyedCoding.h&gt;
-#include &lt;glib.h&gt;
-#include &lt;wtf/HashMap.h&gt;
-#include &lt;wtf/glib/GRefPtr.h&gt;
-#include &lt;wtf/text/StringHash.h&gt;
-#include &lt;wtf/text/WTFString.h&gt;
-
-namespace WebKit {
-
-class KeyedDecoder final : public WebCore::KeyedDecoder {
-public:
-    KeyedDecoder(const uint8_t* data, size_t);
-    virtual ~KeyedDecoder() override;
-
-private:
-    virtual bool decodeBytes(const String&amp; key, const uint8_t*&amp;, size_t&amp;) override;
-    virtual bool decodeBool(const String&amp; key, bool&amp;) override;
-    virtual bool decodeUInt32(const String&amp; key, uint32_t&amp;) override;
-    virtual bool decodeInt32(const String&amp; key, int32_t&amp;) override;
-    virtual bool decodeInt64(const String&amp; key, int64_t&amp;) override;
-    virtual bool decodeFloat(const String&amp; key, float&amp;) override;
-    virtual bool decodeDouble(const String&amp; key, double&amp;) override;
-    virtual bool decodeString(const String&amp; key, String&amp;) override;
-
-    virtual bool beginObject(const String&amp; key) override;
-    virtual void endObject() override;
-
-    virtual bool beginArray(const String&amp; key) override;
-    virtual bool beginArrayElement() override;
-    virtual void endArrayElement() override;
-    virtual void endArray() override;
-
-    template&lt;typename T, typename F&gt; bool decodeSimpleValue(const String&amp; key, T&amp; result, F getFunction);
-    HashMap&lt;String, GRefPtr&lt;GVariant&gt;&gt; dictionaryFromGVariant(GVariant*);
-
-    Vector&lt;HashMap&lt;String, GRefPtr&lt;GVariant&gt;&gt;&gt; m_dictionaryStack;
-    Vector&lt;GVariant*, 16&gt; m_arrayStack;
-    Vector&lt;unsigned&gt; m_arrayIndexStack;
-};
-
-} // namespace WebKit
-
-#endif // KeyedDecoder_h
</del></span></pre></div>
<a id="trunkSourceWebKit2SharedgtkKeyedEncodercpp"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit2/Shared/gtk/KeyedEncoder.cpp (187190 => 187191)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/gtk/KeyedEncoder.cpp        2015-07-22 22:09:35 UTC (rev 187190)
+++ trunk/Source/WebKit2/Shared/gtk/KeyedEncoder.cpp        2015-07-22 22:51:35 UTC (rev 187191)
</span><span class="lines">@@ -1,135 +0,0 @@
</span><del>-/*
- * Copyright (C) 2015 Igalia S.L.
- *
- * 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;
-#include &quot;KeyedEncoder.h&quot;
-
-#include &lt;WebCore/SharedBuffer.h&gt;
-#include &lt;wtf/text/CString.h&gt;
-
-using namespace WebCore;
-
-namespace WebKit {
-
-KeyedEncoder::KeyedEncoder()
-{
-    g_variant_builder_init(&amp;m_variantBuilder, G_VARIANT_TYPE(&quot;a{sv}&quot;));
-    m_variantBuilderStack.append(&amp;m_variantBuilder);
-}
-
-KeyedEncoder::~KeyedEncoder()
-{
-    ASSERT(m_variantBuilderStack.size() == 1);
-    ASSERT(m_variantBuilderStack.last() == &amp;m_variantBuilder);
-    ASSERT(m_arrayStack.isEmpty());
-    ASSERT(m_objectStack.isEmpty());
-}
-
-void KeyedEncoder::encodeBytes(const String&amp; key, const uint8_t* bytes, size_t size)
-{
-    GRefPtr&lt;GBytes&gt; gBytes = adoptGRef(g_bytes_new_static(bytes, size));
-    g_variant_builder_add(m_variantBuilderStack.last(), &quot;{sv}&quot;, key.utf8().data(), g_variant_new_from_bytes(G_VARIANT_TYPE(&quot;ay&quot;), gBytes.get(), TRUE));
-}
-
-void KeyedEncoder::encodeBool(const String&amp; key, bool value)
-{
-    g_variant_builder_add(m_variantBuilderStack.last(), &quot;{sv}&quot;, key.utf8().data(), g_variant_new_boolean(value));
-}
-
-void KeyedEncoder::encodeUInt32(const String&amp; key, uint32_t value)
-{
-    g_variant_builder_add(m_variantBuilderStack.last(), &quot;{sv}&quot;, key.utf8().data(), g_variant_new_uint32(value));
-}
-
-void KeyedEncoder::encodeInt32(const String&amp; key, int32_t value)
-{
-    g_variant_builder_add(m_variantBuilderStack.last(), &quot;{sv}&quot;, key.utf8().data(), g_variant_new_int32(value));
-}
-
-void KeyedEncoder::encodeInt64(const String&amp; key, int64_t value)
-{
-    g_variant_builder_add(m_variantBuilderStack.last(), &quot;{sv}&quot;, key.utf8().data(), g_variant_new_int64(value));
-}
-
-void KeyedEncoder::encodeFloat(const String&amp; key, float value)
-{
-    encodeDouble(key, value);
-}
-
-void KeyedEncoder::encodeDouble(const String&amp; key, double value)
-{
-    g_variant_builder_add(m_variantBuilderStack.last(), &quot;{sv}&quot;, key.utf8().data(), g_variant_new_double(value));
-}
-
-void KeyedEncoder::encodeString(const String&amp; key, const String&amp; value)
-{
-    g_variant_builder_add(m_variantBuilderStack.last(), &quot;{sv}&quot;, key.utf8().data(), g_variant_new_string(value.utf8().data()));
-}
-
-void KeyedEncoder::beginObject(const String&amp; key)
-{
-    GRefPtr&lt;GVariantBuilder&gt; builder = adoptGRef(g_variant_builder_new(G_VARIANT_TYPE(&quot;aa{sv}&quot;)));
-    m_objectStack.append(std::make_pair(key, builder));
-    m_variantBuilderStack.append(builder.get());
-}
-
-void KeyedEncoder::endObject()
-{
-    GVariantBuilder* builder = m_variantBuilderStack.takeLast();
-    g_variant_builder_add(m_variantBuilderStack.last(), &quot;{sv}&quot;, m_objectStack.last().first.utf8().data(), g_variant_builder_end(builder));
-    m_objectStack.removeLast();
-}
-
-void KeyedEncoder::beginArray(const String&amp; key)
-{
-    m_arrayStack.append(std::make_pair(key, adoptGRef(g_variant_builder_new(G_VARIANT_TYPE(&quot;aa{sv}&quot;)))));
-}
-
-void KeyedEncoder::beginArrayElement()
-{
-    m_variantBuilderStack.append(g_variant_builder_new(G_VARIANT_TYPE(&quot;a{sv}&quot;)));
-}
-
-void KeyedEncoder::endArrayElement()
-{
-    GRefPtr&lt;GVariantBuilder&gt; variantBuilder = adoptGRef(m_variantBuilderStack.takeLast());
-    g_variant_builder_add_value(m_arrayStack.last().second.get(), g_variant_builder_end(variantBuilder.get()));
-}
-
-void KeyedEncoder::endArray()
-{
-    g_variant_builder_add(m_variantBuilderStack.last(), &quot;{sv}&quot;, m_arrayStack.last().first.utf8().data(), g_variant_builder_end(m_arrayStack.last().second.get()));
-    m_arrayStack.removeLast();
-}
-
-PassRefPtr&lt;SharedBuffer&gt; KeyedEncoder::finishEncoding()
-{
-    g_assert(m_variantBuilderStack.last() == &amp;m_variantBuilder);
-    GRefPtr&lt;GVariant&gt; variant = g_variant_builder_end(&amp;m_variantBuilder);
-    GRefPtr&lt;GBytes&gt; data = g_variant_get_data_as_bytes(variant.get());
-    return SharedBuffer::create(static_cast&lt;const unsigned char*&gt;(g_bytes_get_data(data.get(), nullptr)), static_cast&lt;unsigned&gt;(g_bytes_get_size(data.get())));
-}
-
-} // namespace WebKit
</del></span></pre></div>
<a id="trunkSourceWebKit2SharedgtkKeyedEncoderh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit2/Shared/gtk/KeyedEncoder.h (187190 => 187191)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/gtk/KeyedEncoder.h        2015-07-22 22:09:35 UTC (rev 187190)
+++ trunk/Source/WebKit2/Shared/gtk/KeyedEncoder.h        2015-07-22 22:51:35 UTC (rev 187191)
</span><span class="lines">@@ -1,70 +0,0 @@
</span><del>-/*
- * Copyright (C) 2015 Igalia S.L.
- *
- * 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 KeyedEncoder_h
-#define KeyedEncoder_h
-
-#include &lt;WebCore/KeyedCoding.h&gt;
-#include &lt;glib.h&gt;
-#include &lt;wtf/Vector.h&gt;
-#include &lt;wtf/glib/GRefPtr.h&gt;
-#include &lt;wtf/text/WTFString.h&gt;
-
-namespace WebKit {
-
-class KeyedEncoder final : public WebCore::KeyedEncoder {
-public:
-    KeyedEncoder();
-    ~KeyedEncoder();
-
-    virtual PassRefPtr&lt;WebCore::SharedBuffer&gt; finishEncoding() override;
-
-private:
-    virtual void encodeBytes(const String&amp; key, const uint8_t*, size_t) override;
-    virtual void encodeBool(const String&amp; key, bool) override;
-    virtual void encodeUInt32(const String&amp; key, uint32_t) override;
-    virtual void encodeInt32(const String&amp; key, int32_t) override;
-    virtual void encodeInt64(const String&amp; key, int64_t) override;
-    virtual void encodeFloat(const String&amp; key, float) override;
-    virtual void encodeDouble(const String&amp; key, double) override;
-    virtual void encodeString(const String&amp; key, const String&amp;) override;
-
-    virtual void beginObject(const String&amp; key) override;
-    virtual void endObject() override;
-
-    virtual void beginArray(const String&amp; key) override;
-    virtual void beginArrayElement() override;
-    virtual void endArrayElement() override;
-    virtual void endArray() override;
-
-    GVariantBuilder m_variantBuilder;
-    Vector&lt;GVariantBuilder*, 16&gt; m_variantBuilderStack;
-    Vector&lt;std::pair&lt;String, GRefPtr&lt;GVariantBuilder&gt;&gt;, 16&gt; m_arrayStack;
-    Vector&lt;std::pair&lt;String, GRefPtr&lt;GVariantBuilder&gt;&gt;, 16&gt; m_objectStack;
-};
-
-} // namespace WebKit
-
-#endif // KeyedEncoder_h
</del></span></pre></div>
<a id="trunkSourceWebKit2UIProcessDatabaseseflDatabaseProcessProxyEflcppfromrev187190trunkSourceWebKit2DatabaseProcessEntryPointunixDatabaseProcessMaincpp"></a>
<div class="copfile"><h4>Copied: trunk/Source/WebKit2/UIProcess/Databases/efl/DatabaseProcessProxyEfl.cpp (from rev 187190, trunk/Source/WebKit2/DatabaseProcess/EntryPoint/unix/DatabaseProcessMain.cpp) (0 => 187191)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Databases/efl/DatabaseProcessProxyEfl.cpp                                (rev 0)
+++ trunk/Source/WebKit2/UIProcess/Databases/efl/DatabaseProcessProxyEfl.cpp        2015-07-22 22:51:35 UTC (rev 187191)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+/*
+ * Copyright (C) 2015 Naver Corp. 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;
+#include &quot;DatabaseProcessProxy.h&quot;
+
+#if ENABLE(DATABASE_PROCESS)
+
+namespace WebKit {
+
+void DatabaseProcessProxy::platformGetLaunchOptions(ProcessLauncher::LaunchOptions&amp;)
+{
+}
+
+} // namespace WebKit
+
+#endif // ENABLE(DATABASE_PROCESS)
</ins></span></pre>
</div>
</div>

</body>
</html>