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

39 Коммитов

Автор SHA1 Сообщение Дата
Jean-Yves Avenard 48517afae6 Bug 1512298 - Make IPDL MozPromise exclusive. r=gerald,froydnj
MozPromise most common use is to have an single or exclusive listener. By making the MozPromise generated by IPDL exclusive we can also use move semantics.

While at it, we also use move semantics for the ResponseRejectReason and via the callback's reject method so that the lambda used with the MozPromise::Then can be identical to the one used by the IPDL callback.
As it currently is, it provides no advantage over a copy as it's just an enum; however, this will facilitate future changes where it may not be.

Differential Revision: https://phabricator.services.mozilla.com/D13906

--HG--
extra : moz-landing-system : lando
2018-12-11 19:22:26 +00:00
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Emilio Cobos Álvarez fffb25b74f 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 952f6a915a 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 1ef4ae5a2f 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 a7666fd8fe 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 5ea9cced68 Bug 1417365 - Unified build issues in dom/cache. r=baku 2017-10-26 12:35:08 +01:00
Ben Kelly 211be553a3 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 acf4cdb7d2 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 9ef03c8751 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 2ecdeffe66 Backed out changeset 389e9f39d6b8 (bug 1397128) 2017-09-15 18:28:43 +02:00
Sebastian Hengst ea5ea33329 Backed out changeset bb52082d2d3c (bug 1397128) 2017-09-15 18:28:32 +02:00
Ben Kelly 60cc17beb8 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 cd504ea7b0 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 180d53d0e9 Bug 1328686 Add diagnostic assertions to dom/cache. r=asuth 2017-01-06 12:41:15 -08:00
Kan-Ru Chen f8100451db 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 b6d880aca1 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


--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Aaron Klotz 6470186455 Bug 1268151: Clean up some dependencies in IPDL headers; r=billm
MozReview-Commit-ID: n0FkC1zcay

--HG--
extra : rebase_source : a56c34e5ab1fe9354be7b586a917b6eecff4cb31
2016-05-17 16:01:25 -06:00
Andrea Marchesini aac2306f2c Bug 1269154 - Get rid of WorkerFeature: WorkerHolder, r=khuey
--HG--
rename : dom/cache/Feature.cpp => dom/cache/CacheWorkerHolder.cpp
rename : dom/cache/Feature.h => dom/cache/CacheWorkerHolder.h
rename : dom/workers/WorkerFeature.h => dom/workers/WorkerHolder.h
2016-06-23 10:53:14 +02:00
Carsten "Tomcat" Book 47aeb86e2c Backed out changeset 1c5d78c7ba43 (bug 1269154) for bustage on a CLOSED TREE
--HG--
rename : dom/cache/CacheWorkerHolder.cpp => dom/cache/Feature.cpp
rename : dom/cache/CacheWorkerHolder.h => dom/cache/Feature.h
rename : dom/workers/WorkerHolder.h => dom/workers/WorkerFeature.h
extra : rebase_source : 49f9e9ce0500ac441fe97878cf9308804926544f
2016-06-23 10:13:54 +02:00
Andrea Marchesini 45087a7970 Bug 1269154 - Get rid of WorkerFeature: WorkerHolder, r=khuey
--HG--
rename : dom/cache/Feature.cpp => dom/cache/CacheWorkerHolder.cpp
rename : dom/cache/Feature.h => dom/cache/CacheWorkerHolder.h
rename : dom/workers/WorkerFeature.h => dom/workers/WorkerHolder.h
2016-06-22 17:24:35 +02:00
Ben Kelly 62ecdfc256 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 9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Ben Kelly 5f92c3937b Bug 1110485 P4 Keep Cache Actors alive during async operations. r=baku 2015-04-16 12:00:15 -07:00
Ben Kelly ec154acf25 Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku
--HG--
rename : dom/cache/PCacheTypes.ipdlh => dom/cache/CacheTypes.ipdlh
2015-04-16 12:00:15 -07:00
Carsten "Tomcat" Book cdb80ccd52 Backed out changeset a74f0b2545ab (bug 1110485)
--HG--
rename : dom/cache/CacheTypes.ipdlh => dom/cache/PCacheTypes.ipdlh
2015-04-15 09:54:48 +02:00
Carsten "Tomcat" Book 55d03ff1d7 Backed out changeset f37dc22f4c4f (bug 1110485) 2015-04-15 09:54:39 +02:00
Ben Kelly cc8a74d4e3 Bug 1110485 P4 Keep Cache Actors alive during async operations. r=baku 2015-04-14 17:11:19 -07:00
Ben Kelly d2326c284c Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku
--HG--
rename : dom/cache/PCacheTypes.ipdlh => dom/cache/CacheTypes.ipdlh
2015-04-14 17:11:19 -07:00
Wes Kocher 82cca8b7cc Backed out changeset 114377b11793 (bug 1110485)
--HG--
rename : dom/cache/CacheTypes.ipdlh => dom/cache/PCacheTypes.ipdlh
2015-04-14 15:27:46 -07:00
Wes Kocher 09b055e57b Backed out changeset 31c018015bd2 (bug 1110485) 2015-04-14 15:27:42 -07:00
Ben Kelly e264e3d81f Bug 1110485 P4 Keep Cache Actors alive during async operations. r=baku 2015-04-14 12:21:14 -07:00
Ben Kelly 8711b65af3 Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku
--HG--
rename : dom/cache/PCacheTypes.ipdlh => dom/cache/CacheTypes.ipdlh
2015-04-14 12:21:14 -07:00
Wes Kocher 164426c724 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)

--HG--
rename : dom/cache/CacheTypes.ipdlh => dom/cache/PCacheTypes.ipdlh
2015-04-13 15:18:19 -07:00
Ben Kelly a3a390d7d6 Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku
--HG--
rename : dom/cache/PCacheTypes.ipdlh => dom/cache/CacheTypes.ipdlh
2015-04-13 14:05:57 -07:00
Ben Kelly 84463ac14b Bug 1143223 - Teach Cache ReadStream not to AddRef() itself in its destructor. r=ehsan 2015-03-20 11:01:57 -07:00
Ryan VanderMeulen befdfa6794 Backed out changeset fd0834bbfd3c (bug 1143223) for making test_mediaElementAudioSourceNodePassThrough.html almost perma-timeout on Android 4.0.
--HG--
extra : rebase_source : b315a864686e99bd22bd3ef0e842c5236a92cfa6
2015-03-20 17:03:27 -04:00
Ben Kelly 63da054263 Bug 1143223 Teach Cache ReadStream not to AddRef() itself in its destructor. r=ehsan 2015-03-20 11:01:57 -07:00
Ben Kelly f9064fc636 Bug 940273 - Part 4 - Initial implementation of Service Worker Cache. r=ehsan,baku,janv 2015-03-02 14:20:00 +01:00