gecko-dev/netwerk/cache
Nicholas Nethercote c2306345d5 Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm.
This patch removes checking of all the callback calls in memory reporter
CollectReport() functions, because it's not useful.

The patch also does some associated clean-up.

- Replaces some uses of nsIMemoryReporterCallback with the preferred
  nsIHandleReportCallback typedef.

- Replaces aCallback/aCb/aClosure with aHandleRepor/aData for CollectReports()
  parameter names, for consistency.

- Adds MOZ_MUST_USE/[must_use] in a few places in nsIMemoryReporter.idl.

- Uses the MOZ_COLLECT_REPORT macro in all suitable places.

Overall the patch reduces code size by ~300 lines and reduces the size of
libxul by about 37 KiB on my Linux64 builds.

--HG--
extra : rebase_source : e94323614bd10463a0c5134a7276238a7ca1cf23
2016-08-24 15:23:45 +10:00
..
moz.build
nsApplicationCache.h
nsApplicationCacheService.cpp Bug 1293117 (part 4) - Change many NS_IMETHODIMP occurrences to NS_IMETHOD. r=froydnj. 2016-08-08 10:54:47 +10:00
nsApplicationCacheService.h
nsCache.cpp
nsCache.h
nsCacheDevice.h
nsCacheEntry.cpp
nsCacheEntry.h
nsCacheEntryDescriptor.cpp Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
nsCacheEntryDescriptor.h
nsCacheMetaData.cpp
nsCacheMetaData.h
nsCacheRequest.h
nsCacheService.cpp Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm. 2016-08-24 15:23:45 +10:00
nsCacheService.h Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
nsCacheSession.cpp
nsCacheSession.h
nsCacheUtils.cpp Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
nsCacheUtils.h
nsDeleteDir.cpp Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
nsDeleteDir.h
nsDiskCache.h
nsDiskCacheBinding.cpp
nsDiskCacheBinding.h
nsDiskCacheBlockFile.cpp
nsDiskCacheBlockFile.h
nsDiskCacheDevice.cpp Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
nsDiskCacheDevice.h
nsDiskCacheDeviceSQL.cpp Bug 1296164 (part 1) - Use [must_use] on nsIFile.{create,createUnique}. r=froydnj. 2016-08-18 13:30:12 +10:00
nsDiskCacheDeviceSQL.h
nsDiskCacheEntry.cpp
nsDiskCacheEntry.h
nsDiskCacheMap.cpp Bug 1293384 - Part 1: Rename snprintf_literal to SprintfLiteral. r=froydnj 2016-08-14 23:44:00 -07:00
nsDiskCacheMap.h
nsDiskCacheStreams.cpp
nsDiskCacheStreams.h
nsICache.idl
nsICacheEntryDescriptor.idl
nsICacheListener.idl
nsICacheService.idl
nsICacheSession.idl
nsICacheVisitor.idl
nsMemoryCacheDevice.cpp
nsMemoryCacheDevice.h