Commit Graph

37 Commits

Author SHA1 Message Date
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
Nika Layzell
32fa76c4fe Bug 1443954 - Part 3: Add support for RefCounted types to IPDL, r=bz,froydnj,baku
This patch was reviewed in parts, however the intermediate states would not build:

Bug 1443954 - Part 3A: Strip pointers from the argument to WriteParam and WriteIPDLParam before selecting the ParamTraits impl, r=froydnj

Bug 1443954 - Part 3B: Move nsIAlertNotification serialization to the refcounted system, r=bz

Bug 1443954 - Part 3C: Move geolocation serialization to the refcounted system, r=bz

Bug 1443954 - Part 3D: Move nsIInputStream serialization to the refcounted system, r=baku

Bug 1443954 - Part 3E: Move BlobImpl serialization to the refcounted system, r=baku

Bug 1443954 - Part 3F: Correctly implement ParamTraits for actors after the ParamTraits changes, r=froydnj
2018-04-10 17:49:48 -04:00
Nika Layzell
2299f89dbf Bug 1440771 - Part 2: Use nsCOMPtr<nsIInputStream> directly in PCacheStreamControl, r=baku
MozReview-Commit-ID: 1Ab49lZtxTI
2018-03-05 16:00:05 -05:00
Nika Layzell
5a9f61464e Bug 1418048 - Add a callback-based Send API to async returning IPDL methods, r=billm
Currently if you write an async IPDL method which has a return value, we expose
a SendXXX method which returns a MozPromise. This MozPromise can then be
->Then-ed to run code when it is resolved or rejected.

Unfortunately, using this API loses ordering guarantees which IPDL provides.
MozPromise::Then takes an event target, which the resolve runnable is dispatched
to. This means that the resolve callback's code doesn't have any ordering
guarantees relative to the processing of other IPC messages coming over the same
protocol.

This adds a new overload to SendXXX with two additional arguments, a lambda
callback which is called if the call succeeds, and a lambda callback which is
called if the call fails. These will be called in order with other IPC messages
sent over the same protocol.

MozReview-Commit-ID: FZHJJaSDoZy
2017-11-20 17:55:32 -05:00
Jonathan Watt
4e2e2f0954 Bug 1417365 - Unified build issues in dom/cache. r=baku 2017-10-26 12:35:08 +01:00
Ben Kelly
63935868ba Bug 1402586 Hold the worker alive while Cache API completes a lazy body open IPC operation. r=asuth 2017-09-25 10:45:58 -07: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
0433bb3c73 Bug 1397128 P4 Add a PCacheStreamControl message to open a stream based on its body ID. r=tt 2017-09-15 12:25:41 -07:00
Sebastian Hengst
3a6107fab2 Backed out changeset 389e9f39d6b8 (bug 1397128) 2017-09-15 18:28:43 +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
23ca0c66ef Bug 1397128 P4 Add a PCacheStreamControl message to open a stream based on its body ID. r=tt 2017-09-15 09:11:22 -07: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
1b9dd22e2d Bug 1314254 - Add mozilla::ipc::IPCResult type and convert IPDL handlers to use new return type. r=billm
We will use the new type for the generated IPDL message handler
prototype to make sure correct error handling method is called.

MozReview-Commit-ID: AzVbApxFGZ0
2016-11-15 04:26:00 +01: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
Aaron Klotz
b2f62d3ae3 Bug 1268151: Clean up some dependencies in IPDL headers; r=billm
MozReview-Commit-ID: n0FkC1zcay
2016-05-17 16:01:25 -06:00
Andrea Marchesini
796bda032a Bug 1269154 - Get rid of WorkerFeature: WorkerHolder, r=khuey 2016-06-23 10:53:14 +02:00
Carsten "Tomcat" Book
ef49710e52 Backed out changeset 1c5d78c7ba43 (bug 1269154) for bustage on a CLOSED TREE 2016-06-23 10:13:54 +02:00
Andrea Marchesini
274f4e927f Bug 1269154 - Get rid of WorkerFeature: WorkerHolder, r=khuey 2016-06-22 17:24:35 +02: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
Birunthan Mohanathas
ac37dec517 Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02: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
43dd5c4dd4 Bug 1143223 - Teach Cache ReadStream not to AddRef() itself in its destructor. r=ehsan 2015-03-20 11:01:57 -07:00
Ryan VanderMeulen
b5856b6719 Backed out changeset fd0834bbfd3c (bug 1143223) for making test_mediaElementAudioSourceNodePassThrough.html almost perma-timeout on Android 4.0. 2015-03-20 17:03:27 -04:00
Ben Kelly
383a10cc52 Bug 1143223 Teach Cache ReadStream not to AddRef() itself in its destructor. r=ehsan 2015-03-20 11:01:57 -07:00
Ben Kelly
0c2e7a4f3c Bug 940273 - Part 4 - Initial implementation of Service Worker Cache. r=ehsan,baku,janv 2015-03-02 14:20:00 +01:00