Sylvestre Ledru
fde06f6d21
Bug 1674637 - Use nested namespaces in dom/ r=sg,andi
...
Also add some missing namespace qualifications
Done with:
./mach static-analysis check --checks="-*,modernize-concat-nested-namespaces" --fix dom/
./mach clang-format -p $(hg status dom/|grep ^M|awk '{print $2}')
Differential Revision: https://phabricator.services.mozilla.com/D95456
2020-11-04 17:04:01 +00:00
Butkovits Atila
964cca3198
Backed out changeset c0adbf7522dc (bug 1674637) for bustage on GMPParent.cpp. CLOSED TREE
2020-11-04 10:54:36 +02:00
Sylvestre Ledru
5f29324f60
Bug 1674637 - Use nested namespaces in dom/ r=sg,andi
...
Also add some missing namespace qualifications
Done with:
./mach static-analysis check --checks="-*,modernize-concat-nested-namespaces" --fix dom/
./mach clang-format -p $(hg status dom/|grep ^M|awk '{print $2}')
Differential Revision: https://phabricator.services.mozilla.com/D95456
2020-11-04 08:29:00 +00:00
Jan Varga
976d8082ca
Bug 1671118 - Rename remaining QM_TRY_VAR occurrences to QM_TRY_ASSIGN/QM_TRY_UNWRAP/QM_TRY_INSPECT (including quota client equivalents); r=dom-workers-and-storage-reviewers,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D93477
2020-10-14 12:14:14 +00:00
Simon Giesecke
20a9b720d4
Bug 1666219 - Renamed QM_TRY_VAR etc. to QM_TRY_UNWRAP etc. r=dom-workers-and-storage-reviewers,ttung,janv
...
Also change some left-over QM_TRY_VAR uses with const target declarations to
QM_TRY_INSPECT et al.
Differential Revision: https://phabricator.services.mozilla.com/D90873
2020-10-02 13:23:49 +00:00
Sebastian Hengst
ae5e3a0d7c
Backed out 5 changesets (bug 1666219, bug 1665347) for crashing hazard task. CLOSED TREE.
...
Backed out changeset c261ec06a826 (bug 1665347)
Backed out changeset 212c9df41410 (bug 1665347)
Backed out changeset 435f02d9f1d7 (bug 1665347)
Backed out changeset 7b36a79247b7 (bug 1666219)
Backed out changeset af8025162523 (bug 1665347)
2020-10-01 23:17:19 +02:00
Simon Giesecke
8598a731fc
Bug 1666219 - Renamed QM_TRY_VAR etc. to QM_TRY_UNWRAP etc. r=dom-workers-and-storage-reviewers,ttung,janv
...
Also change some left-over QM_TRY_VAR uses with const target declarations to
QM_TRY_INSPECT et al.
Differential Revision: https://phabricator.services.mozilla.com/D90873
2020-10-01 15:37:50 +00:00
Bogdan Tara
104db9798f
Backed out 5 changesets (bug 1666219, bug 1665347) for indexedDB related bustage CLOSED TREE
...
Backed out changeset 5cd7e2d67f91 (bug 1665347)
Backed out changeset 9159fdd05097 (bug 1665347)
Backed out changeset 64a086636738 (bug 1665347)
Backed out changeset 5ef18af381ec (bug 1666219)
Backed out changeset 3b81349a5f39 (bug 1665347)
2020-10-01 17:41:23 +03:00
Simon Giesecke
4c5b983d6f
Bug 1666219 - Renamed QM_TRY_VAR etc. to QM_TRY_UNWRAP etc. r=dom-workers-and-storage-reviewers,ttung,janv
...
Also change some left-over QM_TRY_VAR uses with const target declarations to
QM_TRY_INSPECT et al.
Differential Revision: https://phabricator.services.mozilla.com/D90873
2020-10-01 12:02:26 +00:00
Tom Tung
4e7b64f602
Bug 1655067 - Use Result<V, E> for some functions and use CACHE_TRY_VAR for their callsites; r=dom-workers-and-storage-reviewers,sg
...
Depends on D86209
Differential Revision: https://phabricator.services.mozilla.com/D84837
2020-09-11 07:58:34 +00:00
Tom Tung
c142edf3a3
Bug 1655067 - Replace raw pointer input parameters by reference; r=dom-workers-and-storage-reviewers,sg
...
Depends on D85972
Differential Revision: https://phabricator.services.mozilla.com/D84836
2020-09-11 08:13:04 +00:00
Tom Tung
b6322a2f7b
Bug 1651593 - Check the return value of db::GetKnownBodyIds(); r=dom-workers-and-storage-reviewers,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D82863
2020-07-09 07:27:46 +00:00
ssengupta
2383ba6a82
Bug 1636050 - dom::cache::Action now inherits from SafeRefCounted r=dom-workers-and-storage-reviewers,sg
...
Depends on D80669
Differential Revision: https://phabricator.services.mozilla.com/D80709
2020-07-01 14:20:12 +00:00
ssengupta
9c107d41f5
Bug 1636050 - dom::cache::Action::Resolver now inherits from SafeRefCounted r=dom-workers-and-storage-reviewers,sg
...
Differential Revision: https://phabricator.services.mozilla.com/D80669
2020-07-01 14:20:08 +00:00
Simon Giesecke
cd8b8939b9
Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
Jean-Yves Avenard
87438519f0
Bug 1637500 - P2. Rename methods as they are not always dealing with "threads". r=froydnj
...
Before P1, GetCurrentThreadSerialEventTarget would have always returned the same data as NS_GetCurrentThread, making the comment incorrect Now it will properly return the running TaskQueue if any.
This change of name more clearly exposes what they are doing, as we aren't always dealing with threads directly; but a nsISerialEventTarget
Differential Revision: https://phabricator.services.mozilla.com/D80354
2020-06-23 05:05:36 +00:00
Simon Giesecke
8d168248fa
Bug 1645386 - Use nsTObserverArray::NonObservingRange where possible instead of ForwardRange. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D79507
2020-06-22 08:21:24 +00:00
Simon Giesecke
bfb7f6a78a
Bug 1645339 - Use range-based for with nsTObserverArray in dom/cache. r=dom-workers-and-storage-reviewers,edenchuang
...
Differential Revision: https://phabricator.services.mozilla.com/D79431
2020-06-17 15:04:24 +00:00
Jean-Yves Avenard
2fade796dc
Bug 1644009
- P2. Revert "Bug 1592488 - P9. Make a DOMCacheThread an AbstractThread." r=nika
...
DirectTask dispatching will now be directly handled by nsThread.
Differential Revision: https://phabricator.services.mozilla.com/D79086
2020-06-12 05:09:33 +00:00
Jean-Yves Avenard
dde81db3d7
Bug 1592488 - P9. Make a DOMCacheThread an AbstractThread. r=baku
...
This is a step towards bug 1119864. However, at this stage we only need the cache thread to support direct task dispatch so that we can have IPDL MozPromise acting in a similar fashion to JS promise.
Differential Revision: https://phabricator.services.mozilla.com/D74637
2020-05-13 00:12:19 +00:00
Simon Giesecke
4bd2bbd28a
Bug 1627892 - Make ManagerId derive from SafeRefCounted. r=dom-workers-and-storage-reviewers,perry
...
Differential Revision: https://phabricator.services.mozilla.com/D69961
2020-05-11 12:13:07 +00:00
Simon Giesecke
8118041984
Bug 1627892 - Make StreamList derive from SafeRefCounted. r=dom-workers-and-storage-reviewers,perry
...
Differential Revision: https://phabricator.services.mozilla.com/D69959
2020-05-11 12:11:33 +00:00
Simon Giesecke
c4c6f0c42c
Bug 1627892 - Make Context derive from SafeRefCounted. r=dom-workers-and-storage-reviewers,perry
...
Differential Revision: https://phabricator.services.mozilla.com/D69957
2020-05-11 12:09:55 +00:00
Simon Giesecke
33a08c2818
Bug 1627892 - Make Manager derive from SafeRefCounted. r=ttung
...
Differential Revision: https://phabricator.services.mozilla.com/D69956
2020-05-11 12:09:02 +00:00
Simon Giesecke
daf66e3fc8
Bug 1626570 - Improve handling of copying arrays in dom/cache/. r=dom-workers-and-storage-reviewers,ttung
...
Differential Revision: https://phabricator.services.mozilla.com/D73643
2020-05-07 08:49:15 +00:00
Tom Tung
09903525ea
Bug 1628076 - Ensure sFactory alive while it is calling Abort; r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D71323
2020-04-21 19:57:46 +00:00
Simon Giesecke
f776d67e10
Bug 1627918 - Make dom/cache build outside unified build environment. r=dom-workers-and-storage-reviewers,ttung,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D69978
--HG--
extra : moz-landing-system : lando
2020-04-14 23:51:44 +00:00
Simon Giesecke
a813e92dee
Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/cache. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D63139
--HG--
extra : moz-landing-system : lando
2020-02-20 15:49:27 +00:00
Tom Tung
a973874d9b
Bug 1576593 - P2 - Change the way for tunneling quota information to SQLite; r=janv
...
Differential Revision: https://phabricator.services.mozilla.com/D48183
--HG--
extra : moz-landing-system : lando
2019-10-25 12:02:10 +00:00
Tom Tung
f77e1ddedb
Bug 1581067 - P3 - Suppress the error reuslt for open stream; r=asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D47451
--HG--
extra : moz-landing-system : lando
2019-09-30 21:13:11 +00:00
Coroiu Cristina
f2d35f8cd3
Backed out 2 changesets (bug 1581067) for xpcshell failures at dom/cache/test/xpcshell/test_empty_directories.js on a CLOSED TREE
...
Backed out changeset e7a90d8f615d (bug 1581067)
Backed out changeset b7c882c1e3d3 (bug 1581067)
2019-09-30 14:35:01 +03:00
Tom Tung
476305dcb0
Bug 1581067 - P3 - Suppress the error reuslt for open stream; r=asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D47451
--HG--
extra : moz-landing-system : lando
2019-09-29 09:30:10 +00:00
Kris Maglione
c9ee4462eb
Bug 1546500: Avoid dispatching synchronous thread shutdown runnables. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D28555
--HG--
extra : rebase_source : 49c83199d51c208922bf55277a7d6052a36c199a
extra : amend_source : 6d2d246159d23723d24c0327e6adbf975545d7bd
2019-04-23 13:16:15 -07:00
Alex Gaynor
7a604b3851
Bug 1533458 - replace OrVoid cache IPDL types with native maybe syntax; r=ttung
...
Differential Revision: https://phabricator.services.mozilla.com/D22546
--HG--
extra : moz-landing-system : lando
2019-03-21 11:09:44 +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
Tom Tung
c337197339
Bug 1402581 - P1: Don't delete the body file and decrease the padding size when the transaction fails. r=bkelly
...
--HG--
extra : rebase_source : b6b9b6688973eec2058eb55218988dfea54db083
extra : amend_source : 1446cdf0fe948705bb23687902b8e0f483304622
2017-10-03 18:36:44 +08:00
Ben Kelly
9e8538fa6a
Bug 1397128 P8 Track which storage "namespace" each Cache object is associated with. r=tt
2017-09-15 12:25:41 -07:00
Ben Kelly
65f88cc067
Bug 1397128 P7 Add an OpenMode enumeration to control if individual Cache API requests eagerly or lazily opens bodies. 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
Ben Kelly
b88c4699cd
Bug 1397128 P3 Add an OpenStreamAction class to open the file stream on the io thread. r=tt
2017-09-15 12:25:40 -07:00
Ben Kelly
9bbbfca014
Bug 1397128 P2 Refactor StreamList::Add() to use move constructors and accept a nullptr stream. r=tt
2017-09-15 12:25:40 -07:00
Sebastian Hengst
150c6ab212
Backed out changeset 15edfaab92f6 (bug 1397128)
2017-09-15 18:28:54 +02:00
Sebastian Hengst
8114378053
Backed out changeset bfbcc07fcb4b (bug 1397128)
2017-09-15 18:28:48 +02:00
Sebastian Hengst
2ecdeffe66
Backed out changeset 389e9f39d6b8 (bug 1397128)
2017-09-15 18:28:43 +02:00
Sebastian Hengst
b42f970139
Backed out changeset b28740aedf34 (bug 1397128)
2017-09-15 18:28:27 +02:00
Sebastian Hengst
f14ea2acaf
Backed out changeset e37614cb41e1 (bug 1397128)
2017-09-15 18:28:21 +02:00
Ben Kelly
6847f129b1
Bug 1397128 P8 Track which storage "namespace" each Cache object is associated with. r=tt
2017-09-15 09:11:23 -07:00
Ben Kelly
66d9e5a447
Bug 1397128 P7 Add an OpenMode enumeration to control if individual Cache API requests eagerly or lazily opens bodies. 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