/src/mozilla-central/dom/file/ipc/PendingIPCBlobParent.h
Line | Count | Source (jump to first uncovered line) |
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 | | { |
24 | | public: |
25 | | static PendingIPCBlobParent* |
26 | | Create(PBackgroundParent* aManager, BlobImpl* aBlobImpl); |
27 | | |
28 | | void |
29 | | ActorDestroy(ActorDestroyReason aWhy) override |
30 | 0 | {} |
31 | | |
32 | | mozilla::ipc::IPCResult |
33 | | Recv__delete__(const PendingIPCBlobData& aData) override; |
34 | | |
35 | | private: |
36 | | explicit PendingIPCBlobParent(BlobImpl* aBlobImpl); |
37 | | |
38 | | RefPtr<BlobImpl> mBlobImpl; |
39 | | }; |
40 | | |
41 | | } // namespace dom |
42 | | } // namespace mozilla |
43 | | |
44 | | #endif // mozilla_dom_ipc_PendingIPCBlobParent_h |