Source code

Revision control

Other Tools

1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
3
/* This Source Code Form is subject to the terms of the Mozilla Public
4
* License, v. 2.0. If a copy of the MPL was not distributed with this
5
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7
#ifndef mozilla_dom_fetcheventopparent_h__
8
#define mozilla_dom_fetcheventopparent_h__
9
10
#include "nsISupports.h"
11
12
#include "mozilla/dom/PFetchEventOpParent.h"
13
14
namespace mozilla {
15
namespace dom {
16
17
class ServiceWorkerFetchEventOpArgs;
18
19
class FetchEventOpParent final : public PFetchEventOpParent {
20
friend class PFetchEventOpParent;
21
22
public:
23
NS_INLINE_DECL_REFCOUNTING(FetchEventOpParent)
24
25
FetchEventOpParent() = default;
26
27
void Initialize(const ServiceWorkerFetchEventOpArgs& aArgs);
28
29
private:
30
~FetchEventOpParent() = default;
31
32
void ActorDestroy(ActorDestroyReason) override;
33
};
34
35
} // namespace dom
36
} // namespace mozilla
37
38
#endif // mozilla_dom_fetcheventopparent_h__