gecko-dev/tools/profiler/public
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
..
ChildProfilerController.h Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj 2017-08-16 16:48:52 -07:00
GeckoProfiler.h Bug 1405541 (attempt 2) - Split AUTO_PROFILER_LABEL_DYNAMIC into three macros. r=mstange. 2017-10-13 16:12:57 +11:00
GeckoProfilerReporter.h Bug 1362814 - Part 2: Move GeckoProfilerReporter to its own header; r=mstange 2017-05-12 02:35:09 -04:00
ProfilerChild.h Bug 1382910 - Update the profiler state in the child process once PProfiler is connected. r=njn 2017-07-24 16:33:50 -04:00
ProfilerMarkerPayload.h Bug 1406296 (part 3) - Remove the profiler's "gpu" feature. r=mstange,jrmuizel. 2017-10-06 17:35:44 +11:00
ProfilerParent.h Bug 1418048 - Add a callback-based Send API to async returning IPDL methods, r=billm 2017-11-20 17:55:32 -05:00
shared-libraries.h Bug 1412648 - Initialize some uninitialized fields in tools/profiler/. r=mstange 2017-10-31 11:20:12 +01:00