Name Description Size Coverage
Action.cpp 718 100 %
Action.h 3616 80 %
ActorChild.cpp 1443 100 %
ActorChild.h no-op 1592 67 %
ActorUtils.h 2832 -
AutoUtils.cpp 17168 90 %
AutoUtils.h 2917 -
BoundStorageKey.cpp 9429 0 %
BoundStorageKey.h BoundStorageKey ipdl would be used to work with all storage APIs between child and parent process. BoundStorageKey is a generic base class and represents all respective derived storage classes. BoundStorageKeyCacheStorage below is one such class which deals with cachestorage and like this, there could be more in the future like BoundStorageKeyIDB for IndexedDB, etc. TODO: it might be worth moving BoundStorageKey protocol definition, implementation into separate directory while more derived implementations could be under their respective storage directories like dom/cache for BoundStorageKeyCacheStorage. 7613 0 %
BoundStorageKeyCache.cpp 12165 0 %
BoundStorageKeyCache.h This is similar to Cache class as BoundStorageKeyCacheStorage is to CacheStorage i.e. 1. Exposes and implements Cache APIs but uses MozPromise as it's return value rather than JS Promise 2. IPC communication can be retargetted to any event target as it's protocol gets created on a top-level actor 6093 0 %
BoundStorageKeyChild.cpp 2629 0 %
BoundStorageKeyChild.h 2401 0 %
BoundStorageKeyParent.cpp 1273 0 %
BoundStorageKeyParent.h 1186 0 %
Cache.cpp 19070 89 %
Cache.h 4529 50 %
CacheChild.cpp 3762 88 %
CacheChild.h 2654 83 %
CacheCipherKeyManager.h 706 -
CacheCommon.cpp 231 -
CacheCommon.h 374 -
CacheOpChild.cpp implicitly converts to false for boolean types 12552 76 %
CacheOpChild.h Generic method to handle all response types, formats responses before resolving for the underlying promises 3830 50 %
CacheOpParent.cpp 10748 92 %
CacheOpParent.h 2391 50 %
CacheParent.cpp 2063 91 %
CacheParent.h 1303 50 %
CacheStorage.cpp 19818 83 %
CacheStorage.h 3928 50 %
CacheStorageChild.cpp 3231 80 %
CacheStorageChild.h 2739 89 %
CacheStorageParent.cpp 4286 77 %
CacheStorageParent.h 1892 50 %
CacheStreamControlChild.cpp aAllowLazy 5040 82 %
CacheStreamControlChild.h 1910 50 %
CacheStreamControlParent.cpp aAllowLazy 5388 89 %
CacheStreamControlParent.h 2470 50 %
CacheTypes.ipdlh 4576 -
CacheWorkerRef.cpp 3952 93 %
CacheWorkerRef.h 1529 -
Connection.cpp 8307 26 %
Connection.h 753 -
Context.cpp aMaybeCipherKey 39301 81 %
Context.h 8296 -
DBAction.cpp 8718 81 %
DBAction.h 2411 0 %
DBSchema.cpp 126675 98 %
DBSchema.h 3749 -
FileUtils.cpp 29138 95 %
FileUtils.h This function is used to check if the directory padding file is existed. 5756 50 %
FileUtilsImpl.h aTrackQuota 3562 100 %
IPCUtils.h 971 -
Manager.cpp Note: The aCommitHook argument will be invoked while a lock is held. Callers should be careful not to pass a hook that might lock on something else and trigger a deadlock. 78187 87 %
Manager.h 10387 75 %
ManagerId.cpp 1843 95 %
ManagerId.h 1396 67 %
moz.build 2483 -
NotifyUtils.cpp 566 100 %
NotifyUtils.h 414 -
PBoundStorageKey.ipdl 833 -
PCache.ipdl 1005 -
PCacheOp.ipdl 674 -
PCacheStorage.ipdl 1037 -
PCacheStreamControl.ipdl 1026 -
PrincipalVerifier.cpp 5619 91 %
PrincipalVerifier.h 2245 100 %
QuotaClient.cpp aMustRestore 19533 81 %
QuotaClient.h The following functions are used to access the directory padding file. The directory padding file lives in DOM Cache base directory (e.g. foo.com/cache/.padding). It is used to keep the current overall padding size for an origin, so that the QuotaManager doesn't need to access the database when getting quota clients' usage. For the directory padding file, it's only accessed on Quota IO thread (for getting current usage) and Cache IO threads (for tracking padding size change). Besides, the padding file is protected by a mutex lock held by CacheQuotaClient. Each padding file should only take 8 bytes (int64_t) to record the overall padding size. Besides, we use the temporary padding file to indicate if the previous action is completed successfully. If the temporary file exists, it represents that the previous action is failed and the content of padding file cannot be trusted, and we need to restore the padding file from the database. 1820 -
QuotaClientImpl.h 5254 94 %
ReadStream.cpp 17766 81 %
ReadStream.h 3252 100 %
SavedTypes.h 1228 100 %
StreamControl.cpp 2175 100 %
StreamControl.h 2424 100 %
StreamList.cpp 6135 80 %
StreamList.h 1930 100 %
test -
Types.h 2302 100 %
TypeUtils.cpp 16076 91 %
TypeUtils.h 5421 100 %