HeapSnapshotTempFileHelperParent.h (1244B)
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set sw=2 ts=8 et 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_devtools_HeapSnapshotTempFileHelperParent_h 8 #define mozilla_devtools_HeapSnapshotTempFileHelperParent_h 9 10 #include "mozilla/devtools/PHeapSnapshotTempFileHelperParent.h" 11 12 namespace mozilla { 13 namespace devtools { 14 15 class HeapSnapshotTempFileHelperParent 16 : public PHeapSnapshotTempFileHelperParent { 17 friend class PHeapSnapshotTempFileHelperParent; 18 19 explicit HeapSnapshotTempFileHelperParent() {} 20 void ActorDestroy(ActorDestroyReason why) override {} 21 mozilla::ipc::IPCResult RecvOpenHeapSnapshotTempFile( 22 OpenHeapSnapshotTempFileResponse* outResponse); 23 24 public: 25 static inline PHeapSnapshotTempFileHelperParent* Create(); 26 }; 27 28 /* static */ inline PHeapSnapshotTempFileHelperParent* 29 HeapSnapshotTempFileHelperParent::Create() { 30 return new HeapSnapshotTempFileHelperParent(); 31 } 32 33 } // namespace devtools 34 } // namespace mozilla 35 36 #endif // mozilla_devtools_HeapSnapshotTempFileHelperParent_h