diff options
author | Moonchild <moonchild@palemoon.org> | 2020-07-24 11:09:54 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-07-24 11:09:54 +0000 |
commit | 84cb854842cb4aecc2a3bee93c7a2698715643c8 (patch) | |
tree | f28ffddfafdd5da6139e8a33151c8358e35d6b86 /dom/fetch/Response.h | |
parent | 1e0bb1d355ffd55311f9544b35cff2a58b0340a8 (diff) | |
download | UXP-84cb854842cb4aecc2a3bee93c7a2698715643c8.tar UXP-84cb854842cb4aecc2a3bee93c7a2698715643c8.tar.gz UXP-84cb854842cb4aecc2a3bee93c7a2698715643c8.tar.lz UXP-84cb854842cb4aecc2a3bee93c7a2698715643c8.tar.xz UXP-84cb854842cb4aecc2a3bee93c7a2698715643c8.zip |
Issue #1587 Part 11 (followup 1): Implement multithreaded signals for workers.
Diffstat (limited to 'dom/fetch/Response.h')
-rw-r--r-- | dom/fetch/Response.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/dom/fetch/Response.h b/dom/fetch/Response.h index de367bef6..ca86c3458 100644 --- a/dom/fetch/Response.h +++ b/dom/fetch/Response.h @@ -33,7 +33,7 @@ class Response final : public nsISupports NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(Response) public: - Response(nsIGlobalObject* aGlobal, InternalResponse* aInternalResponse); + Response(nsIGlobalObject* aGlobal, InternalResponse* aInternalResponse, AbortSignal* aSignal); Response(const Response& aOther) = delete; @@ -134,13 +134,21 @@ public: already_AddRefed<InternalResponse> GetInternalResponse() const; + AbortSignal* + GetSignal() const override + { + return mSignal; + } + private: ~Response(); nsCOMPtr<nsIGlobalObject> mOwner; RefPtr<InternalResponse> mInternalResponse; + // Lazily created RefPtr<Headers> mHeaders; + RefPtr<AbortSignal> mSignal; }; } // namespace dom |