Tom Tromey
a4b717ab39
Bug 1060419 - make log_print use Printf.h, r=froydnj
...
MozReview-Commit-ID: BIZ1GQEZ1vs
2016-12-15 20:16:31 -07:00
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
Kyle Huey
a9cf047227
Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj
2016-04-25 17:23:21 -07: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
Mike Hommey
338d086ead
Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd
2015-04-01 13:51:45 +09:00
Daniel Holbert
ddb04a0443
Bug 1142841: Convert all nsRefPtr<nsIRunnable> to nsCOMPtr<nsIRunnable>. r=ehsan
...
This patch was generated by a script. Here's the source of the script for
future reference:
find . \( -iname "*.cpp" -o -iname "*.h" \) | \
xargs -n 1 sed -i "s/nsRefPtr<nsIRunnable>/nsCOMPtr<nsIRunnable>/g"
2015-03-17 09:29:17 -07:00
Birunthan Mohanathas
72fa4ca849
Bug 819090 - Replace nsVoidArray with nsTArray in netwerk/cache/. r=michal
2015-01-19 19:50:16 +02:00
Birunthan Mohanathas
eeb9aaaa94
Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj
2014-04-27 03:06:00 -04:00
Ehsan Akhgari
7ce1aa5eb8
Bug 798158 - Part 1: Use a pointer-sized type to store refcounts internally; r=bsmedberg
2014-03-27 16:38:33 -04:00
Neil Rashbrook
afcb26040f
Bug 514280 Stop using nsCOMPtr for concrete types r=bsmedberg
2014-03-18 00:23:03 +00:00
Wes Kocher
5b4557e895
Backed out 2 changesets (bug 514280) for OSX build bustage on a CLOSED TREE
...
Backed out changeset 2a015b45d808 (bug 514280)
Backed out changeset a01f97c1ed02 (bug 514280)
2014-03-17 15:19:53 -07:00
Neil Rashbrook
91221f71f5
Bug 514280 Stop using nsCOMPtr for concrete types r=bsmedberg
2014-03-17 19:07:09 +00:00
Kyle Huey
ea94e7d568
Bug 967364: Rename already_AddRefed::get to take. r=bsmedberg
2014-03-15 12:00:15 -07: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
Mats Palmgren
7532b4e736
Bug 786533 - Replace NS_MIN/NS_MAX with std::min/std::max and #include <algorithm> where needed. r=ehsan
2013-01-15 13:22:03 +01:00
Michal Novotny
dda0a8585c
Bug 824484 - Fix race condition between stream wrapper destructor and nsCacheService::CloseAllStreams(), r=hurley
2013-01-03 20:24:27 +01:00
Michal Novotny
190790ce56
Bug 822036 - Fix race condition between nsCacheEntryDescriptor::Close() and nsCacheService::ClearDoomList(), r=hurley
2013-01-03 16:39:50 +01: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
Isaac Aggrey
990e90e88a
Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan
2012-09-28 01:57:33 -05:00
Michal Novotny
73105817a9
Bug 723362 - Make an asynchronous variant of nsCacheEntryDescriptor::Doom, r=hurley
2012-09-17 23:31:46 +02:00
Randell Jesup
3b4961b603
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
2012-09-01 22:35:17 -04: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
Honza Bambas
473edc0cbf
Bug 215450: Allow uploading of files greater than 2gb in size. Involves making input streams 64-bit capable. Significant work done by Makoto Kato, finished by Honza Bambas. r=hbambas,bsmedberg,jdrew,sicking
2012-08-10 22:44:11 -04:00
Ms2ger
c8ea20cf42
Bug 780387 - Part b: Stop using PRIntn; r=bsmedberg
2012-08-09 09:09:40 +02:00
Aryeh Gregor
8b4a23fc4c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Brian Smith
64374a31b0
Bug 767275 - Add more detailed cache lock telemetry, r=michal, r=nfroyd
2012-06-29 16:20:34 -07:00
Brian Smith
569631eb95
Bug 746018 - Part 4 - More cache logging, r=jduell
2012-05-31 15:20:03 -07:00
Brian Smith
c9031e1205
Bug 746018 - Part 3 - Do more logging in nsInputStreamWrapper, r=jduell
2012-05-31 15:20:02 -07:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Veeraya Pupatwibul
054cc031c2
Bug 741333 - Remove PRBool/PR_TRUE/PR_FALSE that crept in r=Ms2ger
2012-04-04 11:15:10 +02:00
Geoff Brown
784789484e
Bug 712277 - Avoid crash in zlib adler32 following compression failure; r=michal.novotny
2012-01-25 14:52:29 +01:00
Geoff Brown
abd43a6879
Bug 715198 - disable cache compression (avoid failures when new profile accessed by old software versions); r=bjarne
2012-01-17 12:51:17 +01:00
Geoff Brown
3bf6cc26f1
Bug 648429: HTTP cache: compress all compressible files; r=michal.novotny
2011-12-17 11:30:29 +01:00
Ehsan Akhgari
478ad1a412
Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
...
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu
0fe7772ece
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
2011-09-28 23:19:26 -07:00
fffef075ee
Bug 654926 - Hang in nsDiskCacheStreamIO::CloseOutputStream while downloading WebM video from YouTube r=michal.novotny, bjarne
2011-06-22 10:49:35 +02:00
Sean Dunn
5c8450dc2f
Bug 632280 - Remove NS_NOTREACHED occurrences near nsCacheEntryDescriptor.cpp:686; r=bzbarsky,khuey a=bsmedberg
2011-02-11 16:49:07 -05:00
Michal Novotny
af26b8e011
Bug 614513 - Crash in nsCacheService::DeactivateEntry during Linux Talos. r=bzbarsky@mit.edu, a=blocker
2010-12-29 03:25:14 +02:00
Byron Milligan
df1fb8a97a
Bug 588507: Skip caching if Content-Length is greater than eviction size. r=michal, a=betaN+
2010-09-07 15:39:28 -07:00
Michael Wu
8a5eb41e1f
Bug 584585 - Unused nsCOMPtr<nsIInputStream> input in nsInputStreamWrapper::LazyInit(), r=biesi a=bsmedberg
2010-08-12 12:10:40 -07:00
Mitchell Field
bc63774d7e
Bug 542222 - Reduce recursion in netwerk makefiles.
2010-06-05 21:18:12 -04:00