diff options
author | Moonchild <moonchild@palemoon.org> | 2020-07-24 11:09:54 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-07-28 10:38:04 +0000 |
commit | 71848c23a4d09bbb7eff1b27d2cb28904e35240d (patch) | |
tree | 3ee22a605fd936c5e97ce1c4baf18c33d1f17407 /dom/fetch/Response.h | |
parent | 1d321e689e7dcad9cf9519c19e0710c6bf1333a7 (diff) | |
download | UXP-71848c23a4d09bbb7eff1b27d2cb28904e35240d.tar UXP-71848c23a4d09bbb7eff1b27d2cb28904e35240d.tar.gz UXP-71848c23a4d09bbb7eff1b27d2cb28904e35240d.tar.lz UXP-71848c23a4d09bbb7eff1b27d2cb28904e35240d.tar.xz UXP-71848c23a4d09bbb7eff1b27d2cb28904e35240d.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 |