Vedant Sareen
a85a2ad339
Bug 1330907 - Rename Telemetry::ID to Telemetry::HistogramID. r=dexter
...
Changed |print("enum ID : uint32_t {", file=output)| to |print("enum HistogramID : uint32_t {", file=output)| at line 53 of the file |toolkit/components/telemetry/gen-histogram-enum.py|, and then replaced all the textual occurrences of |Telemetry::ID| to |Telemetry::HistogramID| and |ID| to |HistogramID| in 43 other files.
2017-02-16 00:45:15 +05:30
Nicholas Nethercote
1f65390cc9
Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
...
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.
As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.
2016-08-08 12:18:10 +10:00
Michal Novotny
62c6e34ab5
Bug 1259129 - Fix wrong CondVar::Wait() usage in netwerk/cache, r=honzab
2016-05-13 08:56:22 +02:00
Kyle Huey
a9cf047227
Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj
2016-04-25 17:23:21 -07:00
Nicholas Nethercote
281fe66b3a
Bug 1187134 (part 1) - Replace nsBaseHashtable::Enumerate() calls in netwerk/cache{,2}/ with iterators. r=valentin.
2015-11-29 14:01:44 -08:00
Nathan Froyd
4e6d8f6705
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Ehsan Akhgari
5109b1f78f
Bug 1191144 - Remove CACHE_SERVICE_LOCK_WAIT_MAINTHREAD_NSCACHESERVICE_LEAVEPRIVATEBROWSING; r=michal
2015-08-05 11:42:21 -04:00
Nicholas Nethercote
ba21612ddc
Bug 1175771 (part 3) - Replace nsCacheEntryHashable::VisitEntries() with iterators. r=michal.
...
Note that FreeCacheEntries was unused, and so could be removed as well.
2015-06-17 22:31:08 -07:00
Eric Rahm
b676a83446
Bug 1162336 - Part 1: Remove instances of #ifdef PR_LOGGING in netwerk. r=froydnj
...
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-07 12:52:44 -07:00
Wes Kocher
ce92b3fcd9
Backed out 2 changesets (bug 1162336) for breaking at least windows builds
...
Backed out changeset 8952a7fa4050 (bug 1162336)
Backed out changeset 0170a6c2a5be (bug 1162336)
2015-05-07 11:13:24 -07:00
Eric Rahm
bd957615ed
Bug 1162336 - Part 1: Remove instances of #ifdef PR_LOGGING in netwerk. r=froydnj
...
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-07 10:35:28 -07:00
Andrea Marchesini
ad97ae68b8
Bug 1148527 - Indentation fix after bug 1145631, r=ehsan
2015-03-27 18:52:19 +00:00
Ehsan Akhgari
ea41d8de48
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Ehsan Akhgari
5239addd08
Bug 1116545 - Remove the code to handle shutdown-cleanse from the cache service; r=novotny
...
shutdown-cleanse has not been a thing for quite a while.
2015-01-15 18:21:42 -05:00
Trevor Saunders
84413bda51
bug 1105074 - make more stuff final r=froydnj
2014-11-25 13:56:07 -05:00
Ehsan Akhgari
cae4fa66a8
Bug 1048271 - Fix more bad implicit constructors in netwerk; r=mcmanus
2014-08-05 09:20:24 -04:00
Benoit Jacob
d66ff6a02f
Bug 1028588 - Fix dangerous public destructors in netwerk/ - r=mcmanus
2014-06-24 12:36:44 -04:00
Honza Bambas
5cf29ff3e7
Bug 999577 - disable addon access to cache v1 IDLs, r=michal+jduell
2014-06-05 20:14:07 +02:00
Ryan VanderMeulen
fbb180c732
Backed out changeset d405928cb934 (bug 999577) and changeset 940d041073c7 (bug 938186) for xpcshell failures.
...
CLOSED TREE
2014-06-05 13:32:04 -04:00
Honza Bambas
eb1d05b716
Bug 999577 - disable addon access to cache v1 IDLs, r=michal+jduell
2014-06-05 18:27:38 +02:00
Honza Bambas
0f3ef1dd3c
Bug 1001361 - HTTP Cache directory created inside Cache directory, r=michal
2014-04-25 13:02:36 +02:00
Honza Bambas
8fc5b5b7e7
Bug 964898 - Auto delete unused cache version data on demand, r=jduell
2014-02-05 20:29:54 +01:00
Nicholas Nethercote
fb860b68d3
Bug 947798 (part 2) - Remove MemoryMultiReporter, because it's no longer helpful. r=mccr8.
2013-12-07 21:39:47 -08:00
Nicholas Nethercote
39500cad27
Bug 936964 (part 8, attempt 2) - Make nsCacheService report the disk and memory cache devices. r=hurley.
2013-11-25 17:04:01 -08:00
Ehsan Akhgari
65aaebab72
Backed out 9 changesets (bug 943660, bug 936964) because of ASAN use-after-free crashes on browser-chrome and mochitest-other
...
Backed out changeset 85486c4aa3d8 (bug 936964)
Backed out changeset 25312eb71998 (bug 936964)
Backed out changeset 6dbb8333960c (bug 936964)
Backed out changeset da6465ad476f (bug 936964)
Backed out changeset a87ffc992f38 (bug 936964)
Backed out changeset 4ae3a61182db (bug 936964)
Backed out changeset 34e9c3137804 (bug 936964)
Backed out changeset fd1459e71585 (bug 936964)
Backed out changeset 3e8a701d8bdc (bug 943660)
Landed on a CLOSED TREE
2013-11-27 20:05:00 -05:00
Nicholas Nethercote
8181a952f8
Bug 936964 (part 8) - Make nsCacheService report the disk and memory cache devices. r=hurley.
2013-11-25 17:04:01 -08:00
Joshua Cranmer
2bde801f36
Bug 884061 - Part 3q: Use NS_DECL_THREADSAFE_ISUPPORTS in netwerk/, r=macmanus
2013-07-18 21:24:13 -05:00
Srinath N
ff631d0b27
Bug 848344 - Clear media cache along with network cache when storage policy is set to STORE_ANYWHERE. r=michal
2013-06-18 01:44:00 -04:00
Patrick McManus
b5fc4c86f3
bug 868441 Bypass Cache when lock held too long r=novotny
2013-05-12 10:01:13 -04:00
Honza Bambas
263e432049
Bug 842611 - Don't let nsOfflineCacheDevice::Init() create mozStorageService on non-main thread, r=michal
2013-04-10 02:21:07 +02:00
Martin Stransky
b404991264
Bug 239254 - [Linux] Support disk cache on a local path, r=michal.novotny
2013-02-11 15:47:21 +01:00
Ryan VanderMeulen
170dafeee8
Backed out changeset eb2f0c1fffc2 (bug 820613) for xpcshell failures.
2013-01-26 14:05:31 -05:00
Shriram Kunchanapalli
fe0e257728
Bug 820613 - Remove all references to shutdown-cleanse. r=bsmedberg
2013-01-17 00:40:56 +05:30
Nicholas Nethercote
57ff986dd8
Bug 829439 (part 1) - Add MemoryReporterBase class that promotes better encapsulation within nsIMemoryReporter sub-classes. r=jlebar.
2013-01-14 16:26:47 -08:00
Michal Novotny
0a00d28092
Bug 808997 - Explicitly close all output and input streams of all active cache entries during shutdown, r=hurley
2012-12-14 18:03:01 +01:00
Brian R. Bondy
c932995801
Bug 795887 - Close cache on suspend_process_notification observer notifiations. r=michal
2012-11-09 10:34:03 -05:00
Nick Hurley
604807457f
Bug 699951 - add a memory reporter for heap usage by the disk cache. r=michal
2012-11-05 10:22:33 -08:00
Michal Novotny
73105817a9
Bug 723362 - Make an asynchronous variant of nsCacheEntryDescriptor::Doom, r=hurley
2012-09-17 23:31:46 +02:00
Ehsan Akhgari
243c878d26
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Phil Ringnalda
f2ce4c6fab
Back out cbb72643bbae (bug 723362) for leaking
2012-08-20 20:28:19 -07:00
Michal Novotny
2c06b304b1
Bug 723362 - Make an asynchronous variant of nsCacheEntryDescriptor::Doom, r=hurley
2012-08-21 03:30:40 +02:00
Brian R. Bondy
7433eddebf
Bug 777328 - Gather telemetry data for how much cache corruption reduction plan would help. r=michal
2012-08-20 08:08:46 -04:00
Nick Hurley
c077c18941
bug 709297 - reduce max cache size to 350MiB the next time we have to trash the cache. r=jduell
2012-08-07 15:46:33 -07:00
Aryeh Gregor
8b4a23fc4c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Honza Bambas
ccbac4dff5
Bug 760067 - Release all OfflineCache custom profile files ASAP after custom profile cache update has finished, r=michal
2012-07-11 20:20:17 +02:00
Ryan VanderMeulen
504c628c99
Backout 2838ba825479, 991404facac2, 7f6e22f10b99, 30a4e0cf7130, ad2c42efbe57, and 1f07f04ec01d (Bug 760067, Bug 767096, Bug 765158, Bug 729182) due to xpcshell orange.
2012-07-10 19:21:54 -04:00
Honza Bambas
3ac135b59e
Bug 760067 - Release all OfflineCache custom profile files ASAP after custom profile cache update has finished, r=michal
2012-07-10 23:49:17 +02:00
Brian Smith
64374a31b0
Bug 767275 - Add more detailed cache lock telemetry, r=michal, r=nfroyd
2012-06-29 16:20:34 -07:00
Geoff Lankow
7a64448b03
Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg
2012-06-06 14:08:30 +12:00
Honza Bambas
bdef95098a
Bug 753990 - Allow appcache to work with a custom cache (profile) folder within a single application, r=michal.novotny
2012-06-04 16:12:24 +02:00