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

38 Коммитов

Автор SHA1 Сообщение Дата
Kyle Huey c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Xidorn Quan 56801dffe0 Bug 1186750 part 3 - Abstract CancelableFileEvent in DeviceStorageReqeustParent and use already_AddRefed&& for passing DeviceStorageFile parameter. r=dhylands
--HG--
extra : source : f7dbec479cb43d7e7518c9811ad9bc80c96c9969
2015-11-19 16:10:42 +11:00
Xidorn Quan 63d66c7fcc Bug 1186750 part 2 - Remove some unused member fields in events in DeviceStorageRequestParent. r=dhylands
--HG--
extra : source : 0141a42290a3856e9871da275903caf1a3314b93
2015-11-19 16:10:42 +11:00
Xidorn Quan 2fa57fa881 Bug 1186750 part 1 - Inlinize trivial constructors and destructors of events in DeviceStorageRequestParent. r=dhylands
--HG--
extra : source : 40f903b21130e23de78c869ebd99878131438517
2015-11-19 16:10:42 +11:00
Andrew Osmond fada7b3870 Bug 1215644 - Use child process volume service cache for available and storage status requests. r=dhylands 2015-10-21 01:55:24 -04:00
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
Andrew McCreight 9e8f4b219e Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Ethan Wu 3b7b4b99f5 Bug 1148268 - fixed misspelling attribute mActorDestoryed. r=dhyland.
--HG--
extra : rebase_source : 975fce289542f6582d1573c04e01715e0f76fac3
2015-03-31 09:43:17 +08:00
Ehsan Akhgari 883849ee32 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
Ehsan Akhgari 0653303071 Bug 1060987 - Fix more bad implicit constructors in DOM; r=baku
--HG--
extra : rebase_source : 01709017e97fdc96d1d53eb881efc1792118edc4
2014-09-01 20:49:25 -04:00
Phil Ringnalda 117bb1a341 Backed out 6 changesets (bug 1060982, bug 1061058, bug 1060987, bug 1061060, bug 1060930) for build bustage
CLOSED TREE

Backed out changeset c23b8418e6be (bug 1060987)
Backed out changeset a8cddc6bdffc (bug 1061060)
Backed out changeset b5af5cbdac3f (bug 1060982)
Backed out changeset 4912d451011a (bug 1060930)
Backed out changeset bdacbf453238 (bug 1061058)
Backed out changeset da6c71a8f5ae (bug 1060987)
2014-09-01 16:48:51 -07:00
Ehsan Akhgari 6c932dea6c Bug 1060987 - Fix more bad implicit constructors in DOM; r=baku 2014-09-01 18:00:53 -04:00
Alphan Chen 4fca899eff Bug 855952 - [DeviceStorage] support append file operation. r=dhylands 2014-06-10 16:51:28 +08:00
Ehsan Akhgari 186680d83a Bug 798158 - Part 1: Use a pointer-sized type to store refcounts internally; r=bsmedberg 2014-03-27 16:38:33 -04:00
Alan Huang 4ec2e0e0ce Bug 971612 - Implement "mount" and "unmount" API for device storage. r=dhylands 2014-03-04 19:24:19 +08:00
Alan Huang 94fb5bb896 Bug 971615 - Implement "storageStatus" API for device storage. r=dhylands 2014-02-19 10:48:05 +08:00
Dave Hylands a3b6c65628 Bug 910498 - Changes to device storage to support CreateFd. r=bent
* * *
Bug 910498 - Camera changes to use CreateFd. r=mikeh
* * *
Fixes for windows build
2014-01-16 17:01:27 -08:00
Alan Huang 85ad595995 Bug 841660 - Implement format interface for volume-based device storage, r=dhylands 2013-09-06 14:11:58 +08:00
Joshua Cranmer 36673bcae2 Bug 884061 - Part 3f: Use NS_DECL_THREADSAFE_ISUPPORTS in dom/, r=smaug,dhylands.
--HG--
extra : rebase_source : b8eaae07c54c94c8c46c7ed4c0e226eb74584652
2013-07-18 21:21:20 -05:00
Arnaud Sourioux 8ebb1ca3e6 Bug 877746 - Annotate ~230 methods with MOZ_OVERRIDE in /dom. r=Ms2ger 2013-06-05 12:15:48 -04:00
Doug Turner 324e7d7fad Bug 853732 - Improve Device Storage enumeration to avoid bad performance with some SD card. r=dylands r=dougt a=tef+ 2013-05-02 16:26:31 -07:00
Dave Hylands 16908eb6b9 Bug 860934 - Use relative paths when handling device storage r=dougt 2013-04-18 16:13:23 +02:00
Dave Hylands 1c497c8b8c Bug 838038 - Pt 2 - Add support for multiple device storage objects. r=dougt 2013-04-02 12:52:21 -07:00
Doug Turner 3e86f60063 Bug 834595 - Factor stat() such that there are 3 independent methods. r=sicking
--HG--
rename : dom/devicestorage/test/test_stat.html => dom/devicestorage/test/test_freeSpace.html
rename : dom/devicestorage/test/test_stat.html => dom/devicestorage/test/test_usedSpace.html
2013-01-25 11:05:24 -08:00
Doug Turner b8cbbff7b0 Bug 813995 - Check device storage permissions in parent process. r=bent a=blocking-basecamp 2012-11-29 21:41:40 -08:00
Doug Turner 4fd0f3eb19 Bug 793955, 802867 - DeviceStorage files returned by DeviceStorage.get() don't always have lastModifiedDate. r=bent. a=blocking-basecamp 2012-10-18 11:29:32 -07:00
Doug Turner 6ce49fd03d Bug 784404 - Intermittent assertion in dom/devicestorage/test/test_basic.html. v.2 r=bent 2012-08-28 08:39:22 -07:00
Doug Turner 68fb119245 Bug 784404 - backout inital patch. r=bent 2012-08-28 08:38:31 -07:00
Doug Turner 55c812ed2f Bug 784404 - Intermittent assertion in dom/devicestorage/test/test_basic.html. r=bent 2012-08-26 21:28:10 -07:00
Ehsan Akhgari e368dc9c85 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
Doug Turner 9e8de0ccbc Bug 783086 - DeviceStorage - in OOP apps, the enumerate() method ignores the since argument. r=dhylands
--HG--
extra : rebase_source : d74df06f0641f662f0b258ed832e1698894d7e4e
2012-08-16 16:14:37 -07:00
Doug Turner 6866ddaadb Bug 783398 - DeviceStorage makes calls to nsVolumeService from the IOThread. r=dhylands
--HG--
extra : rebase_source : 8f3fef5b349f5810e256f8f5f4b6217854a03518
2012-08-16 16:03:06 -07:00
Doug Turner dbca26a09f Bug 782351 - add volume state to stat() API. r=sicking 2012-08-14 08:53:20 -07:00
Doug Turner b0523754d9 Bug 777088 - device Storage - file stat API. r=bent 2012-07-31 12:28:23 -07:00
Doug Turner 260f8bcba2 Bug 773798 - Multi-process support for MediaStorage - Use PBlob. r=bent 2012-08-09 15:41:18 -07:00
Doug Turner f2adcdd386 Bug 761930 - Multi-process support for Device Storage. r=sicking 2012-06-19 16:14:39 -07:00
Ryan VanderMeulen 6e7f656ffd Backout b3f14a850269, f9d877d78294, and c7335ca109a4 due to build bustage. 2012-07-14 00:01:52 -04:00
Doug Turner 2eff5553d0 Bug 761930 - Multi-process support for Device Storage. r=sicking 2012-06-19 16:14:39 -07:00