crosswalk-project/crosswalk — pull request #1881 by jondong (2014-04-30 02:37:08+00:00)
Title: [Extension] Implemented bulk data transmission enhancement feature.

Enhanced the feature of postMessage and postSyncMessage by
introduced shared memory when transmitting big bulk of data, also
used a threshold kLargeThreashouldBytes to control if we need to
use shared memory or IPC message.

The feature was implemented based on some new IPC message for
requesting shared memory, appending shared memory between renderer
process and extension process, with some message handler functions
both in XWalkExtensionServer and XWalkExtensionClient. Also added
a buffer map both in XWalkExtensionInstance and
XWalkExtensionModule to hold the transmitting data temporarily,
and provided interface functions to handle the buffer for each
transmission.

Also implemented a test case in extensions/test.

BUG: https://crosswalk-project.org/jira/browse/XWALK-1377