Граф коммитов

9 Коммитов

Автор SHA1 Сообщение Дата
Nathan Froyd 01583602a9 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

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Emanuel Hoogeveen 7d1e52f2ff Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Nathan Froyd 2cbd0c71c8 Bug 1153258 - directly instantiate nsStandardURL in nsChromeProtocolHandler.cpp; r=bsmedberg
Knowing how to instantiate nsStandardURL directly enables us to avoid
several extraneous reference counting and QueryInterface operations.
2015-04-02 10:12:27 -04:00
Christoph Kerschbaumer f3e352240e Bug 1119005 - No need to branch on NewChannelinternal callsites anymore - callsite updated (r=sicking) 2015-02-19 11:47:59 -08:00
Christoph Kerschbaumer 35fd1192e7 Bug 1087442 - Attach LoadInfo inside each individual ProtocolHandler - chrome/ changes (r=sicking) 2014-12-12 09:05:34 -08:00
Phil Ringnalda f7aea19aae Backed out 15 changesets (bug 1087442)
Backed out changeset 3f4166fb5e37 (bug 1087442)
Backed out changeset 0c9c9123a0a9 (bug 1087442)
Backed out changeset 1d85d298042d (bug 1087442)
Backed out changeset 51f3ce397d68 (bug 1087442)
Backed out changeset f3b81a623692 (bug 1087442)
Backed out changeset 472e8fa74596 (bug 1087442)
Backed out changeset 12f97df7b79c (bug 1087442)
Backed out changeset 253cde88d3c5 (bug 1087442)
Backed out changeset b44f9ebd56cb (bug 1087442)
Backed out changeset 48e412887726 (bug 1087442)
Backed out changeset a2c76343f7a9 (bug 1087442)
Backed out changeset 0b5b07cfef0e (bug 1087442)
Backed out changeset 2931c35342a4 (bug 1087442)
Backed out changeset 681ce9dcad64 (bug 1087442)
Backed out changeset 47c505856954 (bug 1087442)
2014-12-11 21:58:21 -08:00
Christoph Kerschbaumer 235e03cc76 Bug 1087442 - Attach LoadInfo inside each individual ProtocolHandler - chrome/ changes (r=sicking) 2014-12-11 20:45:43 -08:00
Christoph Kerschbaumer 33a07fa544 Bug 1067471 - Add newChannel2 to nsIProtocolHandler that takes a loadinfo as an argument (r=sicking) 2014-10-22 17:16:57 -07:00
Birunthan Mohanathas fbc73fc3b9 Bug 1041208 - Flatten chrome/{public,src}/ directories. r=mossop
--HG--
rename : chrome/src/Makefile.in => chrome/Makefile.in
rename : chrome/src/RegistryMessageUtils.h => chrome/RegistryMessageUtils.h
rename : chrome/src/nsChromeProtocolHandler.cpp => chrome/nsChromeProtocolHandler.cpp
rename : chrome/src/nsChromeProtocolHandler.h => chrome/nsChromeProtocolHandler.h
rename : chrome/src/nsChromeRegistry.cpp => chrome/nsChromeRegistry.cpp
rename : chrome/src/nsChromeRegistry.h => chrome/nsChromeRegistry.h
rename : chrome/src/nsChromeRegistryChrome.cpp => chrome/nsChromeRegistryChrome.cpp
rename : chrome/src/nsChromeRegistryChrome.h => chrome/nsChromeRegistryChrome.h
rename : chrome/src/nsChromeRegistryContent.cpp => chrome/nsChromeRegistryContent.cpp
rename : chrome/src/nsChromeRegistryContent.h => chrome/nsChromeRegistryContent.h
rename : chrome/public/nsIChromeRegistry.idl => chrome/nsIChromeRegistry.idl
rename : chrome/public/nsIToolkitChromeRegistry.idl => chrome/nsIToolkitChromeRegistry.idl
2014-07-19 12:43:38 -07:00