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 Bug 1400282 - Add a test to verify cache's operations won't run out of fd. r=bkelly 2017-09-13 17:24:13 +08:00
Action.cpp
Action.h
ActorChild.cpp
ActorChild.h
ActorUtils.h
AutoUtils.cpp Bug 1397128 P6 Allow ReadStream to be created with an initially nullptr base stream. r=tt 2017-09-15 12:25:41 -07:00
AutoUtils.h Bug 1128959 - Implement the WHATWG Streams spec - part 12 - starting body consuming and passing the JSContext down from the binding entrypoints to where the ReadableStream could be read, r=bz 2017-08-10 18:04:55 -07:00
Cache.cpp Bug 1397128 P9 Make content script usage of Cache API use lazy body loading. r=tt 2017-09-15 12:25:41 -07:00
Cache.h Bug 1397128 P9 Make content script usage of Cache API use lazy body loading. r=tt 2017-09-15 12:25:41 -07:00
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 Bug 1397128 P4 Add a PCacheStreamControl message to open a stream based on its body ID. r=tt 2017-09-15 12:25:41 -07:00
CacheStreamControlParent.cpp Bug 1417365 - Unified build issues in dom/cache. r=baku 2017-10-26 12:35:08 +01:00
CacheStreamControlParent.h Bug 1397128 P4 Add a PCacheStreamControl message to open a stream based on its body ID. r=tt 2017-09-15 12:25:41 -07:00
CacheTypes.ipdlh Bug 1397128 P8 Track which storage "namespace" each Cache object is associated with. r=tt 2017-09-15 12:25:41 -07:00
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 Bug 1320301 - Add partial support to sqlite3_interrupt. r=asuth 2017-07-31 22:27:23 +02:00
Connection.h
Context.cpp Bug 1372405 - Provide names for all runnables in the tree (r=froydnj) 2017-06-26 14:19:58 -07:00
Context.h Bug 1365097 - Convert NS_GetCurrentThread uses in dom (except for dom/media) (r=smaug) 2017-06-12 20:20:08 -07:00
DBAction.cpp Bug 1290481 - P13: Get padding from DB when there is no directroy padding file. r=bkelly 2017-07-18 19:08:41 +08:00
DBAction.h Bug 1290481 - P13: Get padding from DB when there is no directroy padding file. r=bkelly 2017-07-18 19:08:41 +08:00
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 Bug 1290481 - P9: Implement a function to get overall padding size for an origin from cache.sqlite. r=bkelly 2017-07-18 18:58:56 +08:00
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 Bug 1397128 P7 Add an OpenMode enumeration to control if individual Cache API requests eagerly or lazily opens bodies. r=tt 2017-09-15 12:25:41 -07:00
Manager.cpp Bug 1402581 - P1: Don't delete the body file and decrease the padding size when the transaction fails. r=bkelly 2017-10-03 18:36:44 +08:00
Manager.h Bug 1397128 P4 Add a PCacheStreamControl message to open a stream based on its body ID. r=tt 2017-09-15 12:25:41 -07:00
ManagerId.cpp Bug 1350958 - Finish labeling ProxyReleaseEvent, r=billm 2017-07-14 08:49:22 +02:00
ManagerId.h
moz.build
PCache.ipdl
PCacheOp.ipdl
PCacheStorage.ipdl
PCacheStreamControl.ipdl Bug 1397128 P4 Add a PCacheStreamControl message to open a stream based on its body ID. r=tt 2017-09-15 12:25:41 -07:00
PrincipalVerifier.cpp Bug 1372405 - Provide names for all runnables in the tree (r=froydnj) 2017-06-26 14:19:58 -07:00
PrincipalVerifier.h Bug 1365097 - Convert NS_GetCurrentThread uses in dom (except for dom/media) (r=smaug) 2017-06-12 20:20:08 -07:00
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 Bug 1397128 P6 Allow ReadStream to be created with an initially nullptr base stream. r=tt 2017-09-15 12:25:41 -07:00
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 Bug 1397128 P4 Add a PCacheStreamControl message to open a stream based on its body ID. r=tt 2017-09-15 12:25:41 -07:00
StreamList.cpp Bug 1397128 P4 Add a PCacheStreamControl message to open a stream based on its body ID. r=tt 2017-09-15 12:25:41 -07:00
StreamList.h Bug 1397128 P4 Add a PCacheStreamControl message to open a stream based on its body ID. r=tt 2017-09-15 12:25:41 -07:00
Types.h Bug 1397128 P7 Add an OpenMode enumeration to control if individual Cache API requests eagerly or lazily opens bodies. r=tt 2017-09-15 12:25:41 -07:00
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 Bug 1128959 - Implement the WHATWG Streams spec - part 12 - starting body consuming and passing the JSContext down from the binding entrypoints to where the ReadableStream could be read, r=bz 2017-08-10 18:04:55 -07:00