Commit Graph
68 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
Christoph Kerschbaumer e9222e6a76 Bug 1199295 - Pass right loadingPrincipal to uriloader/prefetch (r=mayhemer)
* * *
Bug 1199295 - Investigate loadingPrincipal for loadInfo in uriloader/prefetch (sicking,smaug)
2015-10-02 09:13:52 -07:00
Andrew McCreight c3ece81b35 Bug 1062479 - Use static strings for WeakReference type names. r=ehsan 2015-04-24 09:43:01 -07:00
Andrea Marchesini 18b38ad706 Bug 1156632 - Remove unused forward class declarations - patch 4 - netwerk image and dom, r=ehsan 2015-04-22 08:29:20 +02:00
Andrea Marchesini ad97ae68b8 Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Ehsan Akhgari ea41d8de48 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Masatoshi Kimura 9f53c25023 Bug 895582 - Get rid of MOZ_ENUM_TYPE. r=waldo 2015-01-21 22:35:19 +09:00
Ehsan Akhgari e7322ba26c Bug 1118606 - Mark virtual overridden functions as MOZ_OVERRIDE in uriloader; r=bzbarsky 2015-01-07 10:07:35 -05:00
Steve Workman a601ec7526 Bug 1054572 - Remove redundant references to HTTP cache v1 API r=mayhemer 2014-08-22 15:17:32 -07:00
Wes Kocher f18e1ecbef Backed out 3 changesets (bug 1054572) for being the apparent cause of ASAN m-3 leaks
Backed out changeset cbd1a7c4d0b0 (bug 1054572)
Backed out changeset 466d677dacc0 (bug 1054572)
Backed out changeset 8b49480288aa (bug 1054572)
2014-08-22 12:45:29 -07:00
Steve Workman 84a0de132d Bug 1054572 - Remove redundant references to HTTP cache v1 API r=mayhemer 2014-08-22 10:49:29 -07:00
Honza Bambas 64a83c4117 Bug 976608 - applicationCache corrupted due to concurrent updates running (should coalesce), r=jduell 2014-07-16 16:16:30 +02:00
Benoit Jacob c0549b4e2e Bug 1028588 - Fix dangerous public destructors in uriloader - r=smaug 2014-06-23 14:49:09 -04:00
Honza Bambas 5cf29ff3e7 Bug 999577 - disable addon access to cache v1 IDLs, r=michal+jduell 2014-06-05 20:14:07 +02:00
Ryan VanderMeulen fbb180c732 Backed out changeset d405928cb934 (bug 999577) and changeset 940d041073c7 (bug 938186) for xpcshell failures.
CLOSED TREE
2014-06-05 13:32:04 -04:00
Honza Bambas eb1d05b716 Bug 999577 - disable addon access to cache v1 IDLs, r=michal+jduell 2014-06-05 18:27:38 +02:00
Ehsan Akhgari f3e1351879 Bug 935778 - Part 0.2: Spray some MOZ_DECLARE_REFCOUNTED_TYPENAME across the tree 2014-02-20 21:33:49 -05:00
Olli Pettay e8497a910f Bug 964462, simplify ipc offline resource refcounting, r=mayhemer 2014-02-06 16:16:41 +02:00
Honza Bambas 5b4e260955 Bug 918880 - MaybeAllowOfflineAppByDefault must work on child processes, r=jduell 2013-11-19 23:15:59 +01:00
Masatoshi Kimura 54e315bf35 Bug 950311 - deCOM nsIDOMLoadStatus. r=mayhemer 2013-12-19 00:11:54 +09:00
Fernando Jiménez 19c1bfd913 Bug 861894 - Avoid apps to schedule new offline cache downloads while device free space is low. r=honzab 2013-05-10 16:16:56 +02:00
Fernando Jiménez 12eefbe663 Bug 819971 - Expose nsOfflineCacheUpdate::Cancel() via nsIOfflineCacheUpdate.idl; r=honzab 2012-12-18 22:41:15 +01:00
Honza Bambas a92a516527 Bug 794663 - Allow downloading appcache for a specific appid/browserflag, r=jduell 2012-10-26 13:02:47 +02:00
Honza Bambas 8d66114a8b Bug 751754 - Allow separation between the update-available and start-download states in appcache, r=jduell 2012-10-02 15:55:00 +02:00
Nick Hurley 0f1168cbdd Bug 536324 part 3 - Change consumers of nsIChannel. r=sworkman 2012-10-22 10:51:07 -07:00
Honza Bambas 005f85a9a0 Bug 756717 - Implement 'appcache jar' for apps, r=tlee+jduell 2012-07-31 02:36:00 -04:00
Aryeh Gregor 8d37239f5b Bug 782594 - Make some methods in uriloader/ infallible; r=bz 2012-08-14 12:10:42 +03:00
Ehsan Akhgari 243c878d26 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Aryeh Gregor 8b4a23fc4c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Honza Bambas 711ab5fdbb Bug 765203 - Support mode 'unknown' when parsing cache manifest, r=jduell 2012-07-14 11:52:35 +02:00
Honza Bambas 199bc3e81a Bug 767096 - Optimize nsICachingChannel interface for offline cache writing, r=sinker 2012-07-11 20:20:17 +02:00
Ryan VanderMeulen 9201df402a Backout 3bf8ff8836d1 too 2012-07-10 19:39:01 -04:00
Ryan VanderMeulen 504c628c99 Backout 2838ba825479, 991404facac2, 7f6e22f10b99, 30a4e0cf7130, ad2c42efbe57, and 1f07f04ec01d (Bug 760067, Bug 767096, Bug 765158, Bug 729182) due to xpcshell orange. 2012-07-10 19:21:54 -04:00
Honza Bambas c77bd8a8cf Bug 767096 - Optimize nsICachingChannel interface for offline cache writing, remove unused member from nsOfflineCacheUpdate, r=sinker DONTBUILD 2012-07-11 00:06:26 +02:00
Honza Bambas 1e0240b442 Bug 767096 - Optimize nsICachingChannel interface for offline cache writing, r=sinker 2012-07-10 23:49:18 +02:00
Ehsan Akhgari 1a3d5c8ef9 Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (uriloader parts); r=bzbarsky 2012-06-12 23:53:09 -04:00
Geoff Lankow 7a64448b03 Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg 2012-06-06 14:08:30 +12:00
Honza Bambas bdef95098a Bug 753990 - Allow appcache to work with a custom cache (profile) folder within a single application, r=michal.novotny 2012-06-04 16:12:24 +02:00
Honza Bambas af0210d015 Bug 744719 - Change offline cache update to load files in parallel, r=michal.novotny 2012-06-04 16:12:23 +02:00
Honza Bambas e2ec70f112 Bug 744710 - Enable getting updates on how many bytes of an appcache update have been downloaded, r=michal 2012-05-22 22:12:40 +02:00
Gervase Markham cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Ryan VanderMeulen 0fabfaa619 Backout bug 674728 part 3 due to missing reviews. 2012-03-31 18:18:08 -04:00
Sinker Li 56eea89eb3 Bug 674728 - Part 3: Evict cache asynchronized. r=honzab 2012-03-30 20:52:07 -04:00
Sinker Li b92b7eca81 Bug 674728 - Part 1: Pinned apps get higher priority for cache. r=honzab 2012-03-30 20:52:06 -04:00
Ehsan Akhgari 478ad1a412 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu 0fe7772ece Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
Honza Bambas 554d2d6a38 Bug 536295 - e10s HTTP: offline application cache, r=dwitte, sr=cbiesinger, a=fennec-2.0b2+ 2010-10-20 19:12:32 +02:00
Dan Witte 30593559ea Back out Bug 536324 part 3. 2010-08-30 13:20:39 -07:00
Dan Witte 282953ea05 Bug 536324 - e10s HTTP: refactor nsHashPropertyBag. Part 3: contentLength consumers. r=jduell, a=beta5+ 2010-08-21 00:31:35 -07:00
Dave Camp 19e3bc385f Bug 482370 - after noupdate documents are associated with the wrong application cache. r+sr=jst 2009-03-10 14:58:00 -07:00