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_ipc_PendingIPCBlobParent_h
8 #define mozilla_dom_ipc_PendingIPCBlobParent_h
9 
10 #include "mozilla/ipc/PPendingIPCBlobParent.h"
11 
12 namespace mozilla {
13 
14 namespace ipc {
15 class PBackgroundParent;
16 }
17 
18 namespace dom {
19 
20 class BlobImpl;
21 
22 class PendingIPCBlobParent final : public mozilla::ipc::PPendingIPCBlobParent {
23  public:
24   static PendingIPCBlobParent* Create(PBackgroundParent* aManager,
25                                       BlobImpl* aBlobImpl);
26 
ActorDestroy(ActorDestroyReason aWhy)27   void ActorDestroy(ActorDestroyReason aWhy) override {}
28 
29   mozilla::ipc::IPCResult Recv__delete__(
30       const PendingIPCBlobData& aData) override;
31 
32  private:
33   explicit PendingIPCBlobParent(BlobImpl* aBlobImpl);
34 
35   RefPtr<BlobImpl> mBlobImpl;
36 };
37 
38 }  // namespace dom
39 }  // namespace mozilla
40 
41 #endif  // mozilla_dom_ipc_PendingIPCBlobParent_h
42