Commit Graph
22 Commits
Author SHA1 Message Date
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
Nicholas Nethercote ef09ed9c84 Bug 1211306 (follow-up) - Fix non-Windows compile bustage on a CLOSED TREE. r=bustage. 2015-10-05 15:44:19 -07:00
Nicholas Nethercote 4623a2538c Bug 1211306 - Replace a use of deprecated GetVersionEx() with its MFBT equivalent. r=jduell. 2015-10-04 19:11:29 -07:00
Dragana Damjanovic f5e3e71a6d Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
Emanuel Hoogeveen b30abdc582 Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Dragana Damjanovic 800c13ed99 Bug 935838 - Add per app network traffic statistics to the UDP socket. r=sicking, r=mayhemer 2015-04-08 15:35:00 -04:00
Ryan VanderMeulen 57644fabd7 Backed out changeset a1d51e3fea63 (bug 935838) for B2G test_udpsocket.html timeouts.
CLOSED TREE
2015-03-09 16:35:06 -04:00
Dragana Damjanovic 59d2752c41 Bug 935838 - Add per app network traffic statistics to the UDP socket. r=sicking, r=mayhemer 2015-03-06 06:38:00 -05:00
Shih-Chiang Chien e5297bdcc9 Bug 745283 - Part 1: Expose nsINetAddr for the local address of nsUDPSocket and support send with InputStream. r=jduell, r=mayhemer 2014-04-21 09:33:00 +08:00
Benoit Jacob d66ff6a02f Bug 1028588 - Fix dangerous public destructors in netwerk/ - r=mcmanus 2014-06-24 12:36:44 -04:00
Neil Rashbrook 940010eacd Bug 514280 Only use nsCOMPtr for interfaces r=bsmedberg 2014-05-08 20:08:38 +01:00
Brian Smith b718a02d96 Bug 1004642: Fix compiler warning in TestUDPSocket.cpp, r=jduell 2014-05-01 14:35:17 -07:00
J. Ryan Stinnett a14f9bcb63 Bug 960397 - Part 2: Multicast option support for UDPSocket. r=mayhemer 2014-04-29 21:35:00 +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
Pranav Kant 7b6ca651d8 Bug 952927 : Part 2 - Extended TestUDPSocket for raw data functionality, r=mcmanus 2014-03-13 13:43:42 +08: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
Ed Morley fe17ef02ac Backed out changeset f74bf7d090ee (bug 952927) 2014-03-07 15:17:55 +00:00
Pranav Kant f536c0b2d4 Bug 952927 - Part 2: Extended TestUDPSocket for raw data functionality. r=mcmanus 2014-03-07 08:55:16 -05:00
Shih-Chiang Chien ff2b6fa78f Bug 948725 - Invoke |QuitPumpingEvent| after response packet is received. r=jduell 2014-01-30 10:59:15 -05:00
Shih-Chiang Chien daa68fe852 Bug 869869 - Part 1, change nsUDPServerSocket to nsUDPSocket, r=mcmanus. 2013-05-10 20:00:22 +08:00