gecko-dev/netwerk
Nika Layzell a7666fd8fe Bug 1418048 - Add a callback-based Send API to async returning IPDL methods, r=billm
Currently if you write an async IPDL method which has a return value, we expose
a SendXXX method which returns a MozPromise. This MozPromise can then be
->Then-ed to run code when it is resolved or rejected.

Unfortunately, using this API loses ordering guarantees which IPDL provides.
MozPromise::Then takes an event target, which the resolve runnable is dispatched
to. This means that the resolve callback's code doesn't have any ordering
guarantees relative to the processing of other IPC messages coming over the same
protocol.

This adds a new overload to SendXXX with two additional arguments, a lambda
callback which is called if the call succeeds, and a lambda callback which is
called if the call fails. These will be called in order with other IPC messages
sent over the same protocol.

MozReview-Commit-ID: FZHJJaSDoZy
2017-11-20 17:55:32 -05:00
..
base Bug 1417448 - Better use of monitors in NS_ReadInputStreamToBuffer, r=smaug 2017-11-20 15:18:26 +01:00
build Bug 1390708 - remove BinHex support from stream converter r=mcmanus 2017-10-11 11:31:51 +08:00
cache Bug 1413622 - Add a check to avoid a division by zero. r=mayhemer 2017-11-15 15:01:11 +01:00
cache2 Bug 1416638 - Add a PrefValueKind arg to Preferences::Get*(), and remove Preferences::GetDefault*(). r=glandium 2017-11-14 19:06:01 +11:00
cookie Bug 1416985 - Fix the telemetry for using legacy cookies.txt, r=jdm 2017-11-16 19:24:00 +02:00
dns Bug 1415870 - Update psl list and related tests. r=gerv 2017-11-15 12:35:07 +00:00
ipc Bug 1414974 - Part 3: Move Get{Inner,Outer}WindowWithId onto the specific subclasses, r=smaug 2017-11-09 10:44:47 -05:00
locales
mime Bug 1390428 (part 1) - Remove many nsXPIDLCString local variables. r=erahm. 2017-08-16 13:58:35 +10:00
protocol Bug 1418048 - Add a callback-based Send API to async returning IPDL methods, r=billm 2017-11-20 17:55:32 -05:00
sctp Bug 1415081 - part 4 - Fix the use of NS_ReadInputStreamToString in DataChannel, r=smaug 2017-11-09 11:18:08 +01:00
socket Bug 1411001 - Remove the +x permissions on cpp & h files r=froydnj 2017-10-23 20:59:55 +02:00
srtp Bug 1415753 - SRTP fails to initialize on mips, switch to use CPU_CISC. r=drno 2017-11-08 18:06:00 -05:00
streamconv Bug 1390708 - remove nsBinHexDecoder r=mcmanus 2017-10-11 11:58:28 +08:00
system Bug 1411001 - Remove the +x permissions on cpp & h files r=froydnj 2017-10-23 20:59:55 +02:00
test Bug 1415870 - Update psl list and related tests. r=gerv 2017-11-15 12:35:07 +00:00
wifi Bug 1413044 - Move DBusHelper.h in uriloader/exthandler, r=smaug 2017-11-01 23:24:38 +01:00
moz.build
necko-config.h.in Bug 1391467 - Remove --enable-necko-protocols. r=gps,valentin 2017-08-17 17:30:57 -07:00