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 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
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 Bug 1273683: Purge any evidence that dougt could write code. r=dougt 2016-06-06 06:51:16 -07:00
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 Bug 1259129 - Fix wrong CondVar::Wait() usage in netwerk/cache, r=honzab 2016-05-13 08:56:22 +02:00
nsDeleteDir.cpp Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
nsDeleteDir.h Bug 1259129 - Fix wrong CondVar::Wait() usage in netwerk/cache, r=honzab 2016-05-13 08:56:22 +02:00
nsDiskCache.h
nsDiskCacheBinding.cpp Bug 1281793 - Remove some non-used telemetry IDs - part 7 - network/cache (2), r=mayhemer 2016-06-29 15:19:13 +02:00
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 Bug 1281793 - Remove some non-used telemetry IDs - part 2 - network/cache, r=gfritzsche 2016-06-28 19:29:28 +02:00
nsDiskCacheStreams.cpp Bug 1281793 - Remove some non-used telemetry IDs - part 7 - network/cache (2), r=mayhemer 2016-06-29 15:19:13 +02:00
nsDiskCacheStreams.h
nsICache.idl
nsICacheEntryDescriptor.idl
nsICacheListener.idl
nsICacheService.idl
nsICacheSession.idl
nsICacheVisitor.idl
nsMemoryCacheDevice.cpp
nsMemoryCacheDevice.h