gecko-dev/dom/plugins/ipc
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
..
hangui Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium. 2015-08-27 20:44:53 -07:00
interpose Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium. 2015-08-27 20:44:53 -07:00
AStream.h
BrowserStreamChild.cpp
BrowserStreamChild.h
BrowserStreamParent.cpp
BrowserStreamParent.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
ChildAsyncCall.cpp
ChildAsyncCall.h
ChildTimer.cpp
ChildTimer.h
MiniShmParent.cpp
MiniShmParent.h
moz.build Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium. 2015-08-27 20:44:53 -07:00
NestedLoopTimer.cpp
NestedLoopTimer.h
NPEventAndroid.h
NPEventOSX.h
NPEventUnix.h
NPEventWindows.h Bug 376679 part.5 nsPluginInstanceOwner::ProcessEvent() should create WM_MOUSE*WHEEL message from WidgetWheelEvent data r=smaug+jimm 2015-10-16 13:19:27 +09:00
PBrowserStream.ipdl
PluginAsyncSurrogate.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
PluginAsyncSurrogate.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
PluginBackgroundDestroyer.cpp
PluginBackgroundDestroyer.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
PluginBridge.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
PluginDataResolver.h
PluginHangUIParent.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
PluginHangUIParent.h
PluginHelperQt.cpp
PluginHelperQt.h
PluginInstanceChild.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
PluginInstanceChild.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
PluginInstanceParent.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
PluginInstanceParent.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
PluginInterposeOSX.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
PluginInterposeOSX.mm Bug 1188322 - Always hide menubar as well as dock for fullscreen on OS X whatever the screen is. r=mstange 2015-08-07 13:49:12 +10:00
PluginLibrary.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
PluginMessageUtils.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
PluginMessageUtils.h Bug 1170343 - Use release-mode asserts when plugins making NPAPI calls on the wrong thread, r=mccr8 2015-06-09 15:55:21 -04:00
PluginModuleChild.cpp Bug 1212984 - HangMonitorChild should delete its Transport. r=billm 2015-10-12 10:27:00 -07:00
PluginModuleChild.h Bug 1182411 Part 1: Make plugin quirks available to the Parent as well as the Child. r=jimm 2015-08-12 16:00:25 +01:00
PluginModuleParent.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
PluginModuleParent.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
PluginProcessChild.cpp
PluginProcessChild.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
PluginProcessParent.cpp Bug 1202988 - Don't use GetTempPath for flash's mms.cfg hack for low integrity. r=aklotz 2015-09-09 17:30:57 +09:00
PluginProcessParent.h Bug 1156861: Add a TaskFactory to PluginProcessParent to handle launch completion tasks; r=jimm 2015-05-25 11:53:39 -06:00
PluginQuirks.cpp Bug 1182411 Part 1: Make plugin quirks available to the Parent as well as the Child. r=jimm 2015-08-12 16:00:25 +01:00
PluginQuirks.h Bug 1182411 Part 1: Make plugin quirks available to the Parent as well as the Child. r=jimm 2015-08-12 16:00:25 +01:00
PluginScriptableObjectChild.cpp Bug 1179451 - Part 3: Use .get() to assign nsRefPtrs to raw pointers. r=froydnj 2015-08-13 15:22:48 +03:00
PluginScriptableObjectChild.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
PluginScriptableObjectParent.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
PluginScriptableObjectParent.h Bug 1171453: Make ParentNPObjects aware of AsyncNPObject wrappers; r=jimm 2015-06-10 12:20:56 -06:00
PluginScriptableObjectUtils-inl.h
PluginScriptableObjectUtils.h
PluginStreamChild.cpp
PluginStreamChild.h
PluginStreamParent.cpp
PluginStreamParent.h
PluginSurfaceParent.cpp Bug 1207741 - Remove gfxIntSize. r=nical. 2015-09-23 11:49:05 -07:00
PluginSurfaceParent.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
PluginTypes.ipdlh Bug 1213454: Ensure that mSupportsAsyncInit is propagated from content process; r=jimm 2015-10-12 13:31:06 -06:00
PluginUtilsOSX.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
PluginUtilsOSX.mm Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
PluginWidgetChild.cpp
PluginWidgetChild.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
PluginWidgetParent.cpp Bug 1179972 - Avoid send message hangs via WM_CHILDACTIVATE in PluginInstanceChild. r=aklotz 2015-07-06 12:39:25 -05:00
PluginWidgetParent.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
PPluginBackgroundDestroyer.ipdl
PPluginInstance.ipdl Bug 1207741 - Remove gfxIntSize. r=nical. 2015-09-23 11:49:05 -07:00
PPluginModule.ipdl bug 1158561 - [e10s] Browser hang in PluginModuleParent::NPP_ClearSiteData() r=jimm,mak 2015-06-30 18:08:19 -04:00
PPluginScriptableObject.ipdl
PPluginStream.ipdl
PPluginSurface.ipdl
PStreamNotify.ipdl
StreamNotifyChild.h
StreamNotifyParent.h
TaskFactory.h Bug 1166583 - Move chromium's MakeTuple function into namespace 'base' to avoid conflicts with mozilla::MakeTuple. r=froydnj 2015-05-09 21:09:40 -05:00