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_fetcheventopproxyparent_h__
8
#define mozilla_dom_fetcheventopproxyparent_h__
9
10
#include "mozilla/RefPtr.h"
11
#include "mozilla/dom/PFetchEventOpProxyParent.h"
12
13
namespace mozilla {
14
namespace dom {
15
16
class FetchEventOpParent;
17
class PRemoteWorkerParent;
18
class ServiceWorkerFetchEventOpArgs;
19
20
/**
21
* FetchEventOpProxyParent owns a FetchEventOpParent and is responsible for
22
* calling PFetchEventOpParent::Send__delete__.
23
*/
24
class FetchEventOpProxyParent final : public PFetchEventOpProxyParent {
25
friend class PFetchEventOpProxyParent;
26
27
public:
28
static void Create(PRemoteWorkerParent* aManager,
29
const ServiceWorkerFetchEventOpArgs& aArgs,
30
RefPtr<FetchEventOpParent> aReal);
31
32
~FetchEventOpProxyParent();
33
34
private:
35
explicit FetchEventOpProxyParent(RefPtr<FetchEventOpParent>&& aReal);
36
37
mozilla::ipc::IPCResult RecvAsyncLog(const nsCString& aScriptSpec,
38
const uint32_t& aLineNumber,
39
const uint32_t& aColumnNumber,
40
const nsCString& aMessageName,
41
nsTArray<nsString>&& aParams);
42
43
mozilla::ipc::IPCResult RecvRespondWith(
44
const IPCFetchEventRespondWithResult& aResult);
45
46
mozilla::ipc::IPCResult Recv__delete__(
47
const ServiceWorkerFetchEventOpResult& aResult) override;
48
49
void ActorDestroy(ActorDestroyReason) override;
50
51
RefPtr<FetchEventOpParent> mReal;
52
};
53
54
} // namespace dom
55
} // namespace mozilla
56
57
#endif // mozilla_dom_fetcheventopproxyparent_h__