summaryrefslogtreecommitdiffstats
path: root/dom/fetch/FetchController.h
diff options
context:
space:
mode:
Diffstat (limited to 'dom/fetch/FetchController.h')
-rw-r--r--dom/fetch/FetchController.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/dom/fetch/FetchController.h b/dom/fetch/FetchController.h
index 854c6f974..7a0132dca 100644
--- a/dom/fetch/FetchController.h
+++ b/dom/fetch/FetchController.h
@@ -8,6 +8,7 @@
#define mozilla_dom_FetchController_h
#include "mozilla/dom/BindingDeclarations.h"
+#include "mozilla/dom/FetchSignal.h"
#include "nsCycleCollectionParticipant.h"
#include "nsWrapperCache.h"
#include "mozilla/ErrorResult.h"
@@ -16,10 +17,9 @@
namespace mozilla {
namespace dom {
-class FetchSignal;
-
class FetchController final : public nsISupports
, public nsWrapperCache
+ , public FetchSignal::Follower
{
public:
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
@@ -51,6 +51,13 @@ public:
void
Unfollow(FetchSignal& aSignal);
+ FetchSignal*
+ Following() const;
+
+ // FetchSignal::Follower
+
+ void Aborted() override;
+
private:
~FetchController() = default;