Andrea Marchesini
52c81a5683
Bug 1318165 - nsStringStream should report correctly the size of the internal buffer, r=njn
2016-11-25 08:24:51 +01:00
Andrea Marchesini
66b84c12f1
Bug 1315173 - Make nsIStringInputStream a builtinclass, r=valentin, r=njn
2016-11-07 08:45:42 +01:00
Josh Matthews
7709e1fa44
Bug 1294450 - Make AutoIPCStream favour PSendStream for large input streams. r=nfroydj
2016-09-29 06:20:00 +02:00
Wes Kocher
de82ae2a15
Backed out changeset 57e78c503c4e (bug 1294450) for build bustage a=backout
2016-09-28 17:38:00 -07:00
Josh Matthews
d8d9b9aaf6
Bug 1294450 - Make AutoIPCStream favour PSendStream for large input streams. r=froydnj
2016-09-28 18:38:51 -04:00
Stone Shih
c56bac22c5
Bug 1240436 - Part3: Remove NS_NewStringInputStream to prevent misuse. r=froydnj
2016-04-14 18:55:50 +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
Nathan Froyd
b4d7119949
Bug 1192230 - clean up reference-counting in xpcom/; r=erahm
2015-07-01 12:27:43 -04: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
Thomas Baquet
8428ccac3e
Bug 1132078 - Remove useless null checks after allocating memory with |new| from xpcom/io. r=nfroyd
2015-03-02 11:59:36 +01:00
Ben Kelly
53ec1ff2b1
Bug 1100398 P2 Make nsStringInputStream cloneable. r=froydnj
2015-02-10 23:55:43 -05:00
Birunthan Mohanathas
6e9ec233ed
Bug 1046841 - Fix more style violations in previously touched .cpp files in xpcom/. r=froydnj
2014-08-25 12:17:15 -07:00
Birunthan Mohanathas
10838f95c7
Bug 995730 - Fix style violations in xpcom/io/. r=froydnj
2014-05-14 23:15:46 +03:00
Birunthan Mohanathas
b7e2587f32
Bug 995730 - Change xpcom/io/ to use 2 space indentation
...
This also removes trailing whitespace in reindented files.
2014-05-05 20:30:43 +03: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
Andrea Marchesini
95913f6157
Bug 910010 - Implementation of PFileDescriptorSet - part 1, r=khuey
2014-03-25 18:37:13 +00:00
Benjamin Smedberg
29d63f056d
Bug 672843 part C - convert most of XPCOM except for xpcom/tests, r=vdjeric
2013-11-19 16:27:37 -05:00
Birunthan Mohanathas
d655a19190
Bug 784739 - Switch from NULL to nullptr in xpcom/ (2/3); r=ehsan
2013-10-10 16:41:39 -04:00
Joshua Cranmer
1c073a2540
Bug 884061 - Part 3y: Use NS_DECL_THREADSAFE_ISUPPORTS in xpcom/, r=bsmedberg
2013-07-18 21:31:26 -05:00
Rafael Ávila de Espíndola
6434a32521
Bug 786148 - s/IPC/ipc/. r=ted.
...
This makes our builds a bit more reproducible. Without it when processing
#include "IPC/IPCMessageUtils.h
we end up in
#include "ShadowLayers.h"
which in the final XUL translates into the symbol (run nm -a to see it):
- 00 0000 SOL ../../../../gfx/layers/IPC/ShadowLayers.h
now when some file in gfx/layers/ipc does
#include "ShadowLayres.h"
the file found is the local one with the lowercase directory name and we end up
with
- 00 0000 SOL ../../../../gfx/layers/ipc/ShadowLayers.h
2012-08-28 08:41:04 -04:00
Ben Turner
e28e39b6c7
Bug 784726 - 'Remove old IPC::URI'. r=cjones+khuey.
2012-08-23 12:33:46 -07: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
Ben Turner
c8df603ac2
Bug 781256 - 'Share FileDescriptors across processes in preparation for OS-level sandbox'. r=khuey+cjones.
2012-08-16 00:02:32 -04: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
Aryeh Gregor
8b4a23fc4c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Ehsan Akhgari
6c1914b71f
Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (XPCOM parts); r=bsmedberg
2012-06-05 19:51:58 -04:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Neil Rashbrook
bb13075a92
Bug 698256 Add and use Substring(data, length) convenience method r=dbaron
2011-12-09 08:35:41 +00:00
Neil Rashbrook
54c067ed69
Bug 638031 Allow string streams to share their string buffer r=bsmedberg f=bz
2011-11-01 08:28:31 +00: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
Matheus Kerschbaum
44209e0bdf
Bug 678155 - Remove NS_COM. r=bsmedberg
2011-08-18 15:46:39 +02:00
Matheus Kerschbaum
9014e25ac7
Bug 639754 - Remove MOZ_IPC checks since IPC is always built now; r=bsmedberg
2011-04-02 19:14:00 -07:00
Ehsan Akhgari
0933c99f1c
Bug 646071 - Part 3: Remove nsInt64.h, and convert all uses of nsInt64 and nsUint64 in the tree to PRInt64 and PRUint64, respectively; r=bsmedberg
2011-03-31 20:15:27 -04:00
Ehsan Akhgari
a37a42a15a
Backout the latest cedar merge wholesale until I test the correctness of the merge locally. This commit takes the tree state back to changeset 8d3f6093c425 (the last known good changeset before the merge)
2011-04-01 12:23:48 -04:00
Ehsan Akhgari
8b4d62ebd0
Bug 646071 - Part 3: Remove nsInt64.h, and convert all uses of nsInt64 and nsUint64 in the tree to PRInt64 and PRUint64, respectively; r=bsmedberg
2011-03-31 20:15:27 -04:00
Jae-Seong Lee-Russo
9dad18d1d4
Bug 564553 - e10s HTTP: Serialize nsInputStreams to support large file uploads. r=dwitte, a=blocking-fennec2.0b2+
2010-10-21 11:36:13 -07:00
Dan Witte
e1f73a5147
Bounce input stream and FTP patches for Windows test failure. a=bustage
2010-10-19 19:46:54 -07:00
Jae-Seong Lee-Russo
5952b72f45
Bug 564553 - e10s HTTP: Serialize nsInputStreams to support large file uploads. Part 1: serialize them. r=dwitte, a=blocking-fennec2.0b2+
2010-10-19 17:24:52 -07:00
Benjamin Smedberg
1c7ea743d8
Bug 568691 - Add CID data back to classinfo because it's required for fastload to work correctly.
2010-06-22 12:59:57 -04:00
Benjamin Smedberg
0e824d90bb
Bug 568691 part A - register static and binary components using data tables rather than programmatic nsIComponentRegistrar methods. This part contains the important needs-review bits of the change: part B contains the mechanical changes to each module in order to actually get a working build. Part C will contain changes necessary to register JS components from .manifest files
2010-06-10 14:11:11 -04:00
98de634631
Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
2007-07-08 00:08:04 -07:00
[email protected]
f8fa5941a8
Bug 283487 nsStringInputStream is still broken
...
use LengthRemaining consistently
r=darin
2006-12-06 18:46:29 +00:00
[email protected]
1aeb69f877
Remove dependency on nsIClassInfo.h from nsISupports.h (bug 330420). This adds a new nsIClassInfoImpl.h file which can be included to get the CI implementation macros. Also, removes unneeded inclusion of nsIProgrammingLanguage.h from nsIClassInfo.h. r=darin.
2006-03-15 04:59:42 +00:00
[email protected]
a55bea4f28
fixes bug 324058 "Fix nsStringStream compilation warning about multiple SetData versions" r=biesi sr=bzbarsky
2006-01-20 19:17:58 +00:00
[email protected]
db7c19eee3
fixes bug 322314 "[trunk] Firefox crashes on login Gmail Notifier extension [@ nsStringInputStream::SetData] [@ xpcom_core.dll + 0x3cd2c (0x6034cd2c) cd66f780]" r=biesi sr=bz
2006-01-10 01:56:00 +00:00
[email protected]
116d14e5af
fixes bug 318193 "Input streams are not implemented consistently" r=biesi sr=bz
2006-01-02 02:30:32 +00:00
[email protected]
e8d9588bae
Initial patch for bug 312760 "Provide base channel for use by protocol implementations" r=biesi sr=bzbarsky
2005-11-12 18:17:19 +00:00
[email protected]
dd23bc1c48
Removing nsIRandomAccessStore from tree (still lives in obsolete). b=283487 r=darin, sr=mscott, a=asa
2005-06-17 03:47:11 +00:00
[email protected]
d1e6163da8
Bug 281977 nsStringInputStream botches -1 lengths
...
r=biesi sr=darin
2005-02-23 02:31:58 +00:00