gecko-dev/dom/cache
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
..
test
Action.cpp
Action.h
ActorChild.cpp
ActorChild.h
ActorUtils.h
AutoUtils.cpp
AutoUtils.h
Cache.cpp
Cache.h
CacheChild.cpp
CacheChild.h
CacheOpChild.cpp Bug 1417365 - Unified build issues in dom/cache. r=baku 2017-10-26 12:35:08 +01:00
CacheOpChild.h
CacheOpParent.cpp Bug 1417365 - Unified build issues in dom/cache. r=baku 2017-10-26 12:35:08 +01:00
CacheOpParent.h
CacheParent.cpp
CacheParent.h
CacheStorage.cpp Bug 1417365 - Unified build issues in dom/cache. r=baku 2017-10-26 12:35:08 +01:00
CacheStorage.h Bug 1408333 Get rid of nsIIPCBackgroundChildCreateCallback - part 12 - Cache API, r=asuth 2017-10-24 12:02:40 +02:00
CacheStorageChild.cpp
CacheStorageChild.h
CacheStorageParent.cpp
CacheStorageParent.h
CacheStreamControlChild.cpp Bug 1418048 - Add a callback-based Send API to async returning IPDL methods, r=billm 2017-11-20 17:55:32 -05:00
CacheStreamControlChild.h
CacheStreamControlParent.cpp Bug 1417365 - Unified build issues in dom/cache. r=baku 2017-10-26 12:35:08 +01:00
CacheStreamControlParent.h
CacheTypes.ipdlh
CacheWorkerHolder.cpp Bug 1405290 - Improve logging of workers when shutting down - part 3 - WorkerHolder with names, r=asuth 2017-11-15 07:58:38 +01:00
CacheWorkerHolder.h
Connection.cpp
Connection.h
Context.cpp
Context.h
DBAction.cpp
DBAction.h
DBSchema.cpp Bug 1398229 - Save-link-as feature should use the loading principal - part 3 - implementation of nsIContentPolicy.TYPE_SAVE_AS_DOWNLOAD, r=ckerschb, r=tanvi 2017-11-16 12:27:01 +01:00
DBSchema.h
FileUtils.cpp Bug 1417365 - Unified build issues in dom/cache. r=baku 2017-10-26 12:35:08 +01:00
FileUtils.h Bug 1417365 - Unified build issues in dom/cache. r=baku 2017-10-26 12:35:08 +01:00
IPCUtils.h
Manager.cpp
Manager.h
ManagerId.cpp
ManagerId.h
PCache.ipdl
PCacheOp.ipdl
PCacheStorage.ipdl
PCacheStreamControl.ipdl
PrincipalVerifier.cpp
PrincipalVerifier.h
QuotaClient.cpp Bug 1417365 - Unified build issues in dom/cache. r=baku 2017-10-26 12:35:08 +01:00
QuotaClient.h Bug 1417365 - Unified build issues in dom/cache. r=baku 2017-10-26 12:35:08 +01:00
ReadStream.cpp
ReadStream.h Bug 1417365 - Unified build issues in dom/cache. r=baku 2017-10-26 12:35:08 +01:00
SavedTypes.h
StreamControl.cpp
StreamControl.h
StreamList.cpp
StreamList.h
TypeUtils.cpp Bug 1416842 - Allow fetch to reject with nsresult in chrome code. r=bkelly 2017-11-15 14:53:42 -05:00
TypeUtils.h
Types.h
moz.build