2011-04-07 Amruth Raj <amruthraj@motorola.com> and Martin Robinson <mrobinson...
authormrobinson@webkit.org <mrobinson@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Apr 2011 22:11:08 +0000 (22:11 +0000)
committermrobinson@webkit.org <mrobinson@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Apr 2011 22:11:08 +0000 (22:11 +0000)
commit11b92ba585f6ff97126388c48894cb1c1d866044
tree6646a4731fcd84f9e7fc6a2d8294b49859bb776e
parent25b8de8fd7bb974891b5a4aaf67fd1a36f6dabef
2011-04-07   Amruth Raj  <amruthraj@motorola.com> and Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [GTK] Implement SharedMemory for WebKit2
        https://bugs.webkit.org/show_bug.cgi?id=49791

        Share the SharedMemory, Attachment and Connection implementations with the Qt port.
        Both implementation are, in fact, general Unix implementations using standard Unix
        domain sockets and sendmsg / recvmsg. This should reduce the amount of duplicated code
        greatly and lay the groundwork for GTK+/Qt implementations for other operating systems.

        * GNUmakefile.am: Replaced GTK+ versions of files with the Unix ones.
        * Platform/CoreIPC/ArgumentDecoder.cpp: Extended Qt #ifdefs to include GTK.
        (CoreIPC::ArgumentDecoder::~ArgumentDecoder):
        * Platform/CoreIPC/ArgumentEncoder.cpp: Ditto.
        (CoreIPC::ArgumentEncoder::~ArgumentEncoder):
        * Platform/CoreIPC/Attachment.h: Ditto.
        * Platform/CoreIPC/Connection.h: Combined the GTK+ and Qt sections.
        * Platform/CoreIPC/unix/AttachmentUnix.cpp: Renamed from Source/WebKit2/Platform/CoreIPC/qt/AttachmentQt.cpp.
        * Platform/CoreIPC/unix/ConnectionUnix.cpp: Renamed from Source/WebKit2/Platform/CoreIPC/qt/ConnectionQt.cpp.
        * Platform/unix/SharedMemoryUnix.cpp: Renamed from Source/WebKit2/Platform/qt/SharedMemoryQt.cpp.
        * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
        (WebKit::ProcessLauncher::launchProcess): Use SOCK_DGRAM instead of SOCK_STREAM to match Qt.
        * WebKit2.pro: Updated source list to reflect file renaming.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83215 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
Source/WebKit2/ChangeLog
Source/WebKit2/GNUmakefile.am
Source/WebKit2/Platform/CoreIPC/ArgumentDecoder.cpp
Source/WebKit2/Platform/CoreIPC/ArgumentEncoder.cpp
Source/WebKit2/Platform/CoreIPC/Attachment.h
Source/WebKit2/Platform/CoreIPC/Connection.h
Source/WebKit2/Platform/CoreIPC/gtk/ConnectionGtk.cpp [deleted file]
Source/WebKit2/Platform/CoreIPC/unix/AttachmentUnix.cpp [moved from Source/WebKit2/Platform/CoreIPC/qt/AttachmentQt.cpp with 98% similarity]
Source/WebKit2/Platform/CoreIPC/unix/ConnectionUnix.cpp [moved from Source/WebKit2/Platform/CoreIPC/qt/ConnectionQt.cpp with 87% similarity]
Source/WebKit2/Platform/SharedMemory.h
Source/WebKit2/Platform/unix/SharedMemoryUnix.cpp [moved from Source/WebKit2/Platform/qt/SharedMemoryQt.cpp with 96% similarity]
Source/WebKit2/UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp
Source/WebKit2/WebKit2.pro