Commit Graph

22 Commits

Author SHA1 Message Date
Nathan Froyd
9c5965b035 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
e6fe9e919f 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
89c46615b5 Bug 1211306 - Replace a use of deprecated GetVersionEx() with its MFBT equivalent. r=jduell. 2015-10-04 19:11:29 -07:00
Dragana Damjanovic
c7fc0a288e Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
Emanuel Hoogeveen
31c0c961cd Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Dragana Damjanovic
97d03ac9e8 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
314718f75b Backed out changeset a1d51e3fea63 (bug 935838) for B2G test_udpsocket.html timeouts.
CLOSED TREE
2015-03-09 16:35:06 -04:00
Dragana Damjanovic
beab056b04 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
eef3ad620b Bug 745283 - Part 1: Expose nsINetAddr for the local address of nsUDPSocket and support send with InputStream. r=jduell, r=mayhemer
--HG--
rename : netwerk/test/unit/test_bug952927.js => netwerk/test/unit/test_udpsocket.js
2014-04-21 09:33:00 +08:00
Benoit Jacob
4180218bc7 Bug 1028588 - Fix dangerous public destructors in netwerk/ - r=mcmanus 2014-06-24 12:36:44 -04:00
Neil Rashbrook
f9520ae677 Bug 514280 Only use nsCOMPtr for interfaces r=bsmedberg 2014-05-08 20:08:38 +01:00
Brian Smith
b1819d113f Bug 1004642: Fix compiler warning in TestUDPSocket.cpp, r=jduell
--HG--
extra : rebase_source : 6f1a68f6e009924e5661d084da1543503a5a4ee7
2014-05-01 14:35:17 -07:00
J. Ryan Stinnett
9e8afb8adf Bug 960397 - Part 2: Multicast option support for UDPSocket. r=mayhemer 2014-04-29 21:35:00 +02:00
Birunthan Mohanathas
ff8ce9bd42 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
c3118c11cf Bug 952927 : Part 2 - Extended TestUDPSocket for raw data functionality, r=mcmanus 2014-03-13 13:43:42 +08:00
Neil Rashbrook
c3b2f90f39 Bug 514280 Stop using nsCOMPtr for concrete types r=bsmedberg
--HG--
extra : rebase_source : f8fb50de9292320eb7589dd28dc566d0f5044da6
2014-03-18 00:23:03 +00:00
Wes Kocher
c0dba87922 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
b07eaa1644 Bug 514280 Stop using nsCOMPtr for concrete types r=bsmedberg
--HG--
extra : rebase_source : eaca8b2925eaffb49e29a617cd72c0d6686e6d9e
2014-03-17 19:07:09 +00:00
Ed Morley
0c73be3c99 Backed out changeset f74bf7d090ee (bug 952927) 2014-03-07 15:17:55 +00:00
Pranav Kant
8facb58c65 Bug 952927 - Part 2: Extended TestUDPSocket for raw data functionality. r=mcmanus 2014-03-07 08:55:16 -05:00
Shih-Chiang Chien
d8011a95f0 Bug 948725 - Invoke |QuitPumpingEvent| after response packet is received. r=jduell 2014-01-30 10:59:15 -05:00
Shih-Chiang Chien
5419f45b4e Bug 869869 - Part 1, change nsUDPServerSocket to nsUDPSocket, r=mcmanus.
--HG--
rename : netwerk/base/public/nsIUDPServerSocket.idl => netwerk/base/public/nsIUDPSocket.idl
rename : netwerk/base/src/nsUDPServerSocket.cpp => netwerk/base/src/nsUDPSocket.cpp
rename : netwerk/base/src/nsUDPServerSocket.h => netwerk/base/src/nsUDPSocket.h
2013-05-10 20:00:22 +08:00