-
commit-queue@webkit.org authored
Reviewed by Laszlo Gombos. [Qt][WK2][Symbian] Shared memory implementation for Symbian https://bugs.webkit.org/show_bug.cgi?id=55875 * wtf/Platform.h: Exclude Symbian OS from USE(UNIX_DOMAIN_SOCKETS) users 2011-05-16 Siddharth Mathur <siddharth.mathur@nokia.com> Reviewed by Laszlo Gombos. [Qt][WK2][Symbian] Shared memory implementation for Symbian https://bugs.webkit.org/show_bug.cgi?id=55875 Use global chunks for sharing data between processes. This is an initial implementation. An outstanding issue is the correct way to close() the chunk in the SharedMemory d'tor without triggering a delete by the kernel when the ref-count temporarily goes to zero. * Platform/SharedMemory.h: platform specific handle and chunk name * Platform/qt/SharedMemorySymbian.cpp: Added. Native Symbian OS implementation using RChunk.CreateGlobal() for named chunks. The chunk name is serialized and sent over the IPC channel and opened by the remote process using RChunk.OpenGlobal(). (WebKit::SharedMemory::Handle::Handle): (WebKit::SharedMemory::Handle::~Handle): (WebKit::SharedMemory::Handle::isNull): (WebKit::SharedMemory::Handle::encode): (WebKit::SharedMemory::Handle::decode): (WebKit::SharedMemory::create): (WebKit::SharedMemory::~SharedMemory): (WebKit::SharedMemory::createHandle): (WebKit::SharedMemory::systemPageSize): * Platform/unix/SharedMemoryUnix.cpp: Exclude Qt-Symbian using HAVE(UNIX_DOMAIN_SOCKETS) * WebKit2.pro: Add SharedMemorySymbian.cpp git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86560 268f45cc-cd09-0410-ab3c-d52691b4dbfc
8c7e768e