Commit Graph
22 Commits
Author SHA1 Message Date
Boris Zbarsky fa684bf612 Bug 1224596 part 17. Remove the old WorkerMainThreadRunnable::Dispatch signature. r=khuey 2015-11-24 00:04:21 -05:00
Boris Zbarsky 692bcc1fd6 Bug 1224596 part 1. Add a version of WorkerMainThreadRunnable::Dispatch that takes an ErrorResult to report failure to dispatch on. r=khuey 2015-11-24 00:04:20 -05: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
Birunthan Mohanathas a29151dc87 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Randell Jesup 9212636903 Bug 1155059: Patch 1&2 - Convert Dispatch() and friends to already_AddRefed<> r=froydnj
Modify Dispatch IDL and code to deal with MSVC issues with overloaded templates r=froydnj
2015-07-09 23:21:46 -04:00
Andrew McCreight 92010d3e4c Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Andrea Marchesini 0566e93cfe Bug 1155546 - Implement WorkerControlRunnable::Cancel(), r=bent 2015-04-22 09:03:52 +02:00
Jim Blandy f94dd3b1df Bug 1152577: Add 'aReason' argument to AutoEntryScript constructor, and provide plausible names for its instantiations. r=bholley 2015-04-08 21:23:48 -04:00
Eddy Bruël 4b2a1287f3 Bug 1092102 - Implement worker debugger runnables;r=khuey 2015-03-04 15:11:32 +01:00
Seth Fowler ea2c64d748 Bug 913586 (Part 4) - Update Maybe users in dom. r=bz 2014-08-13 15:39:41 -07:00
Bobby Holley f922340690 Bug 1052090 - Don't try to compute main-thread-ness until after we're done with cancel shenanigans. r=bkelly 2014-08-12 12:29:50 -07:00
Bob Owen e03fd178c8 Bug 1050795 Part 1: Replace nsCxPusher in WorkerRunnable::Run. r=bholley 2014-08-08 16:06:33 +01:00
Chris Peterson 80ee21aac6 Bug 990764 - Replace MOZ_ASSUME_UNREACHABLE in dom. r=smaug 2014-04-20 00:36:40 -07:00
Ben Turner 94be77258d Bug 1003766, StopSyncLoopRunnable::Cancel should call base class Cancel. r=mrbkap. 2014-04-30 13:44:03 -07:00
Ryan VanderMeulen 88dbb8d176 Backed out changeset cf35c8eac882 (bug 1003766) for Werror bustage.
CLOSED TREE
2014-05-01 14:09:54 -04:00
Ben Turner fe753920b4 Bug 1003766, StopSyncLoopRunnable::Cancel should call base class Cancel. r=mrbkap. 2014-04-30 13:44:03 -07:00
Gene Lian 27238865c6 Bug 949325 - C++ wrapper to support DataStore API on the worker (part 2-2, refactor out the common SyncWorkerRunnable from workers/URL.cpp). r=baku,khuey 2014-02-24 21:57:03 +08:00
Kyle Huey 18bbe187f5 Bug 967364: Pass already_AddRefed by reference instead of by value. r=bsmedberg 2014-03-15 12:00:17 -07:00
Nikhil Marathe e95bca13ec Bug 966384 - Promises on workers use correct busy count. r=khuey 2014-02-17 12:24:36 +05:30
Nikhil Marathe d5f5c4811c Backout 3011b2b7f82f (bug 966384) for unused variable failures. r=backout
CLOSED TREE
2014-02-17 11:06:03 +05:30
Nikhil Marathe 4e184abd52 Bug 966384 - Promises on workers use correct busy count. r=khuey 2014-02-17 10:19:15 +05:30
Ben Turner 081c6e49da Bug 914762 - Switch Workers to use a normal nsThread event loop, r=mrbkap. 2013-10-23 06:16:49 -07:00