зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
43721610fa
Коммит
34e65f9481
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче