Emilio Cobos Álvarez
4b8b5e1717
Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
...
This was done automatically replacing:
s/mozilla::Move/std::move/
s/ Move(/ std::move(/
s/(Move(/(std::move(/
Removing the 'using mozilla::Move;' lines.
And then with a few manual fixups, see the bug for the split series..
MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Nathan Froyd
80d1329e71
Bug 1444971 - fix diagnostic assert condition in ReadStream; r=baku
...
Using MOZ_DIAGNOSTIC_ASSERT_ENABLED here is a little clearer than
RELEASE_OR_BETA and makes disabling diagnostic assertions globally
easier.
2018-03-13 09:47:07 -04:00
Ben Kelly
da3394c3f8
Bug 1397128 P6 Allow ReadStream to be created with an initially nullptr base stream. r=tt
2017-09-15 12:25:41 -07:00
Ben Kelly
ffbfd8a7e4
Bug 1397128 P5 Add ReadStream::Inner::EnsureStream() to synchronously open stream when Availabe/Read/ReadSegments is called. r=tt
2017-09-15 12:25:41 -07:00
Ben Kelly
850edb23de
Bug 1397128 P1 Make CacheReadStream ipdl struct contain an OptionalIPCStream. r=tt
2017-09-15 12:25:40 -07:00
Sebastian Hengst
12f8a5cd83
Backed out changeset 3f1e68da9634 (bug 1397128) for bustage at mozilla/dom/cache/CacheStorage.h:108. r=backout on a CLOSED TREE
2017-09-15 18:29:41 +02:00
Sebastian Hengst
750a146e0c
Backed out changeset 5988716b66bb (bug 1397128)
2017-09-15 18:28:37 +02:00
Sebastian Hengst
b0b9459efa
Backed out changeset bb52082d2d3c (bug 1397128)
2017-09-15 18:28:32 +02:00
Ben Kelly
1f6cbc7aa5
Bug 1397128 P6 Allow ReadStream to be created with an initially nullptr base stream. r=tt
2017-09-15 09:11:23 -07:00
Ben Kelly
10b7fd58bf
Bug 1397128 P5 Add ReadStream::Inner::EnsureStream() to synchronously open stream when Availabe/Read/ReadSegments is called. r=tt
2017-09-15 09:11:23 -07:00
Ben Kelly
39349b978a
Bug 1397128 P1 Make CacheReadStream ipdl struct contain an OptionalIPCStream. r=tt
2017-09-15 09:11:22 -07:00
Bill McCloskey
ce42826bdf
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book
238bf154d5
Backed out changeset 4f6302a98ae4 (bug 1372405)
2017-06-21 13:59:26 +02:00
Bill McCloskey
67e8af4720
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book
bbe9441993
Backed out changeset 9846de3bd954 (bug 1372405)
2017-06-20 08:27:02 +02:00
Bill McCloskey
f69608368b
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Bill McCloskey
284c3f3132
Bug 1365097 - Convert NS_GetCurrentThread uses in dom (except for dom/media) (r=smaug)
...
For the Quatum DOM project, it's better to work in terms of event targets than
threads. This patch converts DOM code to operate on event targets rather than
threads, when possible.
MozReview-Commit-ID: 5FgvpKadUA2
2017-06-12 20:20:08 -07:00
Ben Kelly
4fb565cd29
Bug 1328642 Protect multi-thread stream access with a mutex. r=asuth
2017-01-18 06:30:24 -08:00
Ben Kelly
077c137d4a
Bug 1328686 Add diagnostic assertions to dom/cache. r=asuth
2017-01-06 12:41:15 -08:00
Kan-Ru Chen
a9b19d0584
Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
...
The patch is generated from following command:
rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,
MozReview-Commit-ID: AtLcWApZfES
2016-08-24 14:47:04 +08:00
Nicholas Nethercote
ef94c24639
Bug 1295053 (part 9) - Don't use NS_METHOD for dom/ functions. r=froydnj.
...
These don't need __stdcall on Win32.
2016-08-16 12:12:30 +10:00
Nicholas Nethercote
1f65390cc9
Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
...
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.
As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.
2016-08-08 12:18:10 +10:00
Ben Kelly
2f4f1442e4
Bug 1093357 P3 Convert Cache to use IPCStream and AutoIPCStream. r=asuth
...
* * *
Bug 1093357 P3 interdiff 001 Use AutoIPCStream in dom/cache
2016-05-15 10:32:09 -07:00
Ben Kelly
6d8c6d7c8c
Bug 1271905 P1 Don't crash if a closed cache::ReadableStream is serialized. r=asuth
2016-05-12 07:29:20 -07:00
Kyle Huey
1f6993705a
Bug 1263311: Part 3 - s/nsCancelableRunnable/CancelableRunnable/g. r=froydnj
2016-04-11 11:40:06 -07:00
Kyle Huey
a256ae1a91
Bug 1263311: Part 1 - Change the nsICancelableRunnable interface. r=froydnj
2016-04-11 11:40:06 -07:00
Wes Kocher
dd9b334d33
Backed out 3 changesets (bug 1263311) for Windows build failures in ServiceWorkerPrivate.cpp CLOSED TREE
...
Backed out changeset 0434a548e1fe (bug 1263311)
Backed out changeset 60b1be29446c (bug 1263311)
Backed out changeset 18132498bc40 (bug 1263311)
MozReview-Commit-ID: LPEa05QobdQ
2016-04-11 12:50:56 -07:00
Kyle Huey
7a575c886c
Bug 1263311: Part 3 - s/nsCancelableRunnable/CancelableRunnable/g. r=froydnj
2016-04-11 11:40:06 -07:00
Kyle Huey
41c353f8e9
Bug 1263311: Part 1 - Change the nsICancelableRunnable interface. r=froydnj
2016-04-11 11:40:06 -07:00
Kyle Huey
20d0dc7286
Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj
2016-03-28 10:28:15 -07:00
Birunthan Mohanathas
bfee0fb40c
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-02-02 17:36:30 +02:00
Phil Ringnalda
d871b9515f
Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
...
CLOSED TREE
Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
245cd6a02f
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-01-31 17:12:12 +02:00
Birunthan Mohanathas
ac37dec517
Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj
2015-11-02 07:53:26 +02: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
Ben Kelly
ccf34d901e
Bug 1110485 P4 Keep Cache Actors alive during async operations. r=baku
2015-04-16 12:00:15 -07:00
Ben Kelly
3eda7b0ad0
Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku
2015-04-16 12:00:15 -07:00
Carsten "Tomcat" Book
4fe7ad9602
Backed out changeset a74f0b2545ab (bug 1110485)
2015-04-15 09:54:48 +02:00
Carsten "Tomcat" Book
d689ffbffc
Backed out changeset f37dc22f4c4f (bug 1110485)
2015-04-15 09:54:39 +02:00
Ben Kelly
c6497b4262
Bug 1110485 P4 Keep Cache Actors alive during async operations. r=baku
2015-04-14 17:11:19 -07:00
Ben Kelly
276f4fe9b5
Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku
2015-04-14 17:11:19 -07:00
Wes Kocher
0b492b45ca
Backed out changeset 114377b11793 (bug 1110485)
2015-04-14 15:27:46 -07:00
Wes Kocher
cc552e69c3
Backed out changeset 31c018015bd2 (bug 1110485)
2015-04-14 15:27:42 -07:00
Ben Kelly
97aa984493
Bug 1110485 P4 Keep Cache Actors alive during async operations. r=baku
2015-04-14 12:21:14 -07:00
Ben Kelly
87c4610793
Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku
2015-04-14 12:21:14 -07:00
Wes Kocher
9681a7a9f0
Backed out 3 changesets (bug 1110485) for wpt-3 bustage
...
Backed out changeset e8bd3bf404ff (bug 1110485)
Backed out changeset fa29dbb49a66 (bug 1110485)
Backed out changeset 12deb121d126 (bug 1110485)
2015-04-13 15:18:19 -07:00
Ben Kelly
8272fa9b9b
Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku
2015-04-13 14:05:57 -07:00
Ben Kelly
e6c9669cdf
Bug 1110814 P1 Implement Cache IPC actor for streaming data from child to parent. r=khuey
2015-03-22 02:52:12 -04: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
Daniel Holbert
85b9930bba
Bug 1143223 followup: Add MOZ_OVERRIDE annotation to ReadStream::Inner's refcounting macro. rs=ehsan
2015-03-21 00:17:49 -07:00