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_serviceworkerregistrationparent_h__
8
#define mozilla_dom_serviceworkerregistrationparent_h__
9
10
#include "mozilla/dom/PServiceWorkerRegistrationParent.h"
11
12
namespace mozilla {
13
namespace dom {
14
15
class IPCServiceWorkerRegistrationDescriptor;
16
class ServiceWorkerRegistrationProxy;
17
18
class ServiceWorkerRegistrationParent final
19
: public PServiceWorkerRegistrationParent {
20
RefPtr<ServiceWorkerRegistrationProxy> mProxy;
21
bool mDeleteSent;
22
23
// PServiceWorkerRegistrationParent
24
void ActorDestroy(ActorDestroyReason aReason) override;
25
26
mozilla::ipc::IPCResult RecvTeardown() override;
27
28
mozilla::ipc::IPCResult RecvUnregister(
29
UnregisterResolver&& aResolver) override;
30
31
mozilla::ipc::IPCResult RecvUpdate(UpdateResolver&& aResolver) override;
32
33
public:
34
ServiceWorkerRegistrationParent();
35
~ServiceWorkerRegistrationParent();
36
37
void Init(const IPCServiceWorkerRegistrationDescriptor& aDescriptor);
38
39
void MaybeSendDelete();
40
};
41
42
} // namespace dom
43
} // namespace mozilla
44
45
#endif // mozilla_dom_serviceworkerregistrationparent_h__