Bug 1910848 - Make it possible to use ResolvableNormalOriginOp with move-only types; r=dom-storage-reviewers,jari

Differential Revision: https://phabricator.services.mozilla.com/D194070
This commit is contained in:
Jan Varga 2024-08-07 07:53:14 +00:00
Родитель 43721610fa
Коммит 34e65f9481
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -36,7 +36,7 @@ class QuotaManager;
class QuotaRequestBase;
class QuotaUsageRequestBase;
class RequestParams;
template <typename T>
template <typename ResolveValueT, bool IsExclusive = false>
class ResolvableNormalOriginOp;
class UniversalDirectoryLock;
class UsageRequestParams;

Просмотреть файл

@ -13,12 +13,12 @@
namespace mozilla::dom::quota {
template <typename T>
template <typename ResolveValueT, bool IsExclusive>
class ResolvableNormalOriginOp : public NormalOriginOperationBase {
public:
NS_INLINE_DECL_REFCOUNTING(ResolvableNormalOriginOp, override)
using PromiseType = MozPromise<T, nsresult, false>;
using PromiseType = MozPromise<ResolveValueT, nsresult, IsExclusive>;
RefPtr<PromiseType> OnResults() {
AssertIsOnOwningThread();
@ -35,7 +35,7 @@ class ResolvableNormalOriginOp : public NormalOriginOperationBase {
virtual ~ResolvableNormalOriginOp() = default;
virtual T GetResolveValue() = 0;
virtual ResolveValueT GetResolveValue() = 0;
private:
void SendResults() override {