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
Andrew Osmond
fd0c9abee8
Bug 1166320 - Make volume service safer to use off main thread. r=dhylands
2015-08-20 12:47:23 -04:00
Juan Gomez
89035d527e
Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
2015-07-03 18:29:00 -07:00
Ryan VanderMeulen
7aba9d7002
Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage.
2015-06-25 19:48:42 -04:00
Juan Gomez
7323e89a40
Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
2015-06-24 14:11:00 -04:00
Andrew Osmond
97dba14662
Bug 1171768 - Backed out changeset 371c3a42b25c (bug 1166320) for breaking USB mass storage.
2015-06-05 16:02:05 -04:00
Andrew Osmond
4b5fa2ab88
Bug 1166320 - Make volume service safer to use off main thread. r=dhylands
2015-06-03 13:44:53 -04:00
Kershaw Chang
25fd04bce0
Bug 1162422 - Fix test cases, r=dhylands
2015-05-13 00:44:00 +08:00
Kershaw Chang
af0952357e
Bug 1126694 - Impl of DeviceStorageAreaListener. r=bz, dhylands
2015-05-04 08:11:00 +02:00
Dave Hylands
bec5cc6ff0
Bug 1140597 - Don't try and process device storage notifications if the process isn't using device storage. r=alchen
2015-03-27 14:22:20 -07:00
Nathan Froyd
023e3d5c3f
Bug 1153267 - part 1 - use smart-pointer .forget() instead of NS_ADDREF+assign; r=ehsan
2015-03-31 10:03:49 -04:00
Kan-Ru Chen (陳侃如)
d64f4d8900
Bug 1112989 - Part 3. Remove sync PContent::GetVolumes() r=dhylands
2015-01-30 11:43:32 +08:00
Kan-Ru Chen (陳侃如)
42345c5de3
Bug 1112989 - Part 2. Forward device-storage volumes info to ContentChild before app startup. r=dhylands
2015-01-30 11:43:31 +08:00
Dave Hylands
c3c4d6b413
Bug 1119907 - Cleanup some errors when USE_DEBUG is enabled in the AutoMounter.
2015-01-09 15:29:15 -08:00
CHUANG CHENYU
6056969a81
Bug 1033952 - Implement "Removable" and "HotSwappable" APIs for device storage. r=dhylands, r=bzbarsky
2014-12-22 10:33:33 +08:00
Botond Ballo
f6098cd421
Bug 1073081 - Fix warnings about macro redefinitions by #undef'ing macros. r=ehsan
2014-12-10 18:26:55 -05:00
Alphan Chen
ff283ae562
Bug 1060196 - Mark the volume as if we've started unmounting. r=dhylands
2014-09-22 11:42:33 +08:00
Dave Hylands
5a1e67e88c
Bug 1063877 - Change nsVolumeService to use sync IPC for initial request. r=khuey
2014-09-15 11:51:25 -07:00
Dave Hylands
df173ec150
Back out 01fe5d23d233 (Bug 1063877) due to broken emulator mochitests
2014-09-15 14:08:35 -07:00
Dave Hylands
9af9964fe7
Bug 1063877 - Change nsVolumeService to use sync IPC for initial request. r=khuey
2014-09-15 11:51:25 -07:00
Fabrice Desré
e5ca9d0899
Bug 1037212 - [Flame] Phone is not completely erased when a ringtone is set from the Music App r=dougt,dhylands,khuey
2014-07-17 18:30:47 -07:00
Birunthan Mohanathas
1ebdb921a5
Bug 869836 - Part 2: Use AppendLiteral instead of Append(NS_LITERAL_STRING(...)). r=ehsan
2014-05-22 06:48:50 +03:00
Dave Hylands
425c87beb5
Bug 1007053 - Pt1 - Fix shadowing of IsFake attribute in the Child Volume cache. r=qDot
2014-05-13 15:48:04 -07:00
Birunthan Mohanathas
eeb9aaaa94
Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj
2014-04-27 03:06:00 -04:00
Alan Huang
eef0eade58
Bug 841660 - Part 2: Implement format interface for volume-based device storage, r=dhylands
2013-12-03 17:32:56 +08:00
Alan Huang
2380c93740
Bug 841660 - Implement format interface for volume-based device storage, r=dhylands
2013-09-06 14:11:58 +08:00
Dave Hylands
d643127360
Bug 928558 - AutoMounter mark volumes as shared a bit early when open files are detected. r=qDot
2013-10-18 20:21:52 -07:00
Dave Hylands
afda864736
Bug 878310 - Improve DeviceStorage volume status reporting. r=qDot
...
This changeset causes tranistory states when changing from mounted to shared,
and back to mounted to be reported as shared instead of unavailable.
We also don't send the same status twice in a row.
2013-08-22 16:12:25 -07:00
Dave Hylands
eeaaa0482f
Bug 898634 - Add some logging for volumes created via volume.cfg. r=jwwang
2013-07-29 16:41:07 -07:00
Joshua Cranmer
46b6048262
Bug 884061 - Part 3f: Use NS_DECL_THREADSAFE_ISUPPORTS in dom/, r=smaug,dhylands.
2013-07-18 21:21:20 -05:00
JW Wang
0b76d21ab7
Bug 865347 - Add functions to manipulate fake volumes to test SD card insert/remove. r=dhylands
2013-07-09 14:37:47 +08:00
Ryan VanderMeulen
07fc6ac94c
Backed out changesets d76274933db8 and dd3cedcdbe2b (bug 865347) to see if it fixes the Marionette timeouts.
2013-07-09 14:21:02 -04:00
JW Wang
a273bce178
Bug 865347 - Add functions to manipulate fake volumes to test SD card insert/remove. r=dhylands
2013-07-09 14:37:47 +08:00
Makoto Kato
e4c672670c
Bug 871462 - Clean up string API usages on Gonk. r=dbaron
2013-06-03 17:41:27 +09:00
Dave Hylands
29d8bdd80f
Bug 873391 - Volume state changes may get processed out of order in child processes. r=qDot
2013-05-17 12:55:14 -07:00
Dave Hylands
bd99240e6a
Bug 858416 - Create a composite device storage interface. r=dougt
...
* * *
Bug 858416 - Fix try test failures
2013-05-11 02:10:18 -07:00
Ryan VanderMeulen
4c1b436fcc
Backed out changeset dbf0c9f4a4b9 (bug 858416) for B2G mochitest-3 failures.
2013-05-11 09:47:37 -04:00
Dave Hylands
fa47a69c18
Bug 858416 - Create a composite device storage interface. r=dougt
2013-05-11 02:10:18 -07:00
Dave Hylands
45dc2e3a1e
Bug 860934 - Use relative paths when handling device storage r=dougt
2013-04-18 16:13:23 +02:00
Dave Hylands
5c3978bf3a
Bug 838038 - Pt 1 - Make volumes available to child processes. r=dougt
2013-04-02 12:52:17 -07:00
Andrea Marchesini
2c2a8ed31b
Bug 835612 - Fix nsVolumeService to use strings better, r=jlebar
2013-01-29 14:27:46 +01:00
Dave Hylands
e8631e74ea
Bug 835408 - nsVolume NameStr and MountPointStr noe return nsCString rather than ptr to freed memory. r=jlebar
2013-01-28 14:34:30 -08:00
Doug Turner
d81dca8bcb
Bug 829410 - Use threadsafe isupports in nsVolumeService. r=mikeh a=omg-everything-is-busted
2013-01-10 20:29:51 -08:00
Dave Hylands
4c68e4054e
Bug 785124 - Pt 4 - Whitespace only change. Change "type &var" to "type& var" and ptrs. r=dougt
2013-01-07 17:43:02 +01:00
Dave Hylands
e122c2c0cd
Bug 785124 - Pt 1 - Add VolumeMountLock which allows SDCard to be locked. r=dougt
...
From 8e39b8e5f3ab7e6344b0a8a5eeabdcf672de8fb4 Mon Sep 17 00:00:00 2001
---
dom/ipc/ContentChild.cpp | 18 +++-
dom/ipc/ContentChild.h | 5 +-
dom/ipc/ContentParent.cpp | 22 +++-
dom/ipc/ContentParent.h | 2 +
dom/ipc/PContent.ipdl | 6 +-
dom/system/gonk/AutoMounter.cpp | 19 +++-
dom/system/gonk/Makefile.in | 4 +-
dom/system/gonk/Volume.cpp | 62 ++++++++++-
dom/system/gonk/Volume.h | 11 +-
dom/system/gonk/VolumeServiceIOThread.cpp | 11 +-
dom/system/gonk/VolumeServiceIOThread.h | 7 +-
dom/system/gonk/nsIVolume.idl | 21 +++-
dom/system/gonk/nsIVolumeMountLock.idl | 12 +++
dom/system/gonk/nsIVolumeService.idl | 9 +-
dom/system/gonk/nsVolume.cpp | 96 ++++++++++++++++-
dom/system/gonk/nsVolume.h | 43 ++++++--
dom/system/gonk/nsVolumeMountLock.cpp | 157 +++++++++++++++++++++++++++
dom/system/gonk/nsVolumeMountLock.h | 55 ++++++++++
dom/system/gonk/nsVolumeService.cpp | 168 +++++++++++++++++++++++------
dom/system/gonk/nsVolumeService.h | 20 +++-
layout/build/nsLayoutModule.cpp | 5 +-
layout/build/nsLayoutStatics.cpp | 9 ++
22 files changed, 684 insertions(+), 78 deletions(-)
create mode 100644 dom/system/gonk/nsIVolumeMountLock.idl
create mode 100644 dom/system/gonk/nsVolumeMountLock.cpp
create mode 100644 dom/system/gonk/nsVolumeMountLock.h
2012-12-14 16:01:34 -08:00
Phil Ringnalda
d137321fea
Back out 6737ce4d3ce6:599c37ed628c (bug 785124) for b2g Arm xpcshell orange in update tests
2013-01-07 22:59:32 -08:00
Dave Hylands
d2c7d9fdc4
Bug 785124 - Pt 4 - Whitespace only change. Change "type &var" to "type& var" and ptrs. r=dougt
2013-01-07 17:43:02 +01:00
Dave Hylands
80270c8d7f
Bug 785124 - Pt 1 - Add VolumeMountLock which allows SDCard to be locked. r=dougt
...
From 8e39b8e5f3ab7e6344b0a8a5eeabdcf672de8fb4 Mon Sep 17 00:00:00 2001
---
dom/ipc/ContentChild.cpp | 18 +++-
dom/ipc/ContentChild.h | 5 +-
dom/ipc/ContentParent.cpp | 22 +++-
dom/ipc/ContentParent.h | 2 +
dom/ipc/PContent.ipdl | 6 +-
dom/system/gonk/AutoMounter.cpp | 19 +++-
dom/system/gonk/Makefile.in | 4 +-
dom/system/gonk/Volume.cpp | 62 ++++++++++-
dom/system/gonk/Volume.h | 11 +-
dom/system/gonk/VolumeServiceIOThread.cpp | 11 +-
dom/system/gonk/VolumeServiceIOThread.h | 7 +-
dom/system/gonk/nsIVolume.idl | 21 +++-
dom/system/gonk/nsIVolumeMountLock.idl | 12 +++
dom/system/gonk/nsIVolumeService.idl | 9 +-
dom/system/gonk/nsVolume.cpp | 96 ++++++++++++++++-
dom/system/gonk/nsVolume.h | 43 ++++++--
dom/system/gonk/nsVolumeMountLock.cpp | 157 +++++++++++++++++++++++++++
dom/system/gonk/nsVolumeMountLock.h | 55 ++++++++++
dom/system/gonk/nsVolumeService.cpp | 168 +++++++++++++++++++++++------
dom/system/gonk/nsVolumeService.h | 20 +++-
layout/build/nsLayoutModule.cpp | 5 +-
layout/build/nsLayoutStatics.cpp | 9 ++
22 files changed, 684 insertions(+), 78 deletions(-)
create mode 100644 dom/system/gonk/nsIVolumeMountLock.idl
create mode 100644 dom/system/gonk/nsVolumeMountLock.cpp
create mode 100644 dom/system/gonk/nsVolumeMountLock.h
2012-12-14 16:01:34 -08:00
Dave Hylands
1530b85bd7
Bug 818131 - Volume Manager should create fake volumes. r=dougt
...
This allows Updater and Device storage to query free space on a partition
even if a real volume doesn't exist.
2012-12-06 09:31:57 -08:00
Randell Jesup
3b4961b603
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
2012-09-01 22:35:17 -04:00