gecko-dev/ipc/ipdl
Kan-Ru Chen 625b54086e Bug 1313200 - Allow IPC messages to async return MozPromises. r=billm,jwwang
This patch implements async returns for IPDL using MozPromises. There
are following changes:

* Initialize AbstractThreads for MessageLoops
* Record promises and their reject functions
  * When async message returns, call their resolve functions
  * When send error or channel close, call their reject functions
* Implement "unresolved-ipc-promises" count for about:memory
* Test cases

See bug attachment for generated code from test cases

MozReview-Commit-ID: 7xmg8gwDGaW

--HG--
rename : ipc/ipdl/test/ipdl/error/AsyncReturn.ipdl => ipc/ipdl/test/ipdl/ok/AsyncReturn.ipdl
extra : rebase_source : 55c4f68a3f8b7d0df5ca9f9c45b9a205b337282d
2017-03-16 17:36:15 +08:00
..
ipdl Bug 1313200 - Allow IPC messages to async return MozPromises. r=billm,jwwang 2017-03-16 17:36:15 +08:00
test Bug 1313200 - Allow IPC messages to async return MozPromises. r=billm,jwwang 2017-03-16 17:36:15 +08:00
Makefile.in Bug 1336919 - Add a sync message whitelist and check it in IPDL compile phase. r=billm 2017-02-20 10:40:54 +08:00
ipdl.py Bug 1349350 - Make IPDL checker sync IPC message errors fatal. r=ehsan 2017-03-22 15:01:50 -07:00
moz.build Bug 1309799 - Generate StringFromIPCMessageType and use it in MessageChannel::MaybeHandleError. r=billm 2016-10-13 14:18:45 +08:00
msgtype-components
sync-messages.ini Bug 1322532: Add sync text event to PDocAccessible; r=tbsaunde, r=billm 2017-04-13 17:08:42 -06:00