HeapSnapshotTempFileHelperParent.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef mozilla_devtools_HeapSnapshotTempFileHelperParent_h
  6. #define mozilla_devtools_HeapSnapshotTempFileHelperParent_h
  7. #include "mozilla/devtools/PHeapSnapshotTempFileHelperParent.h"
  8. namespace mozilla {
  9. namespace devtools {
  10. class HeapSnapshotTempFileHelperParent : public PHeapSnapshotTempFileHelperParent
  11. {
  12. explicit HeapSnapshotTempFileHelperParent() { }
  13. void ActorDestroy(ActorDestroyReason why) override { }
  14. bool RecvOpenHeapSnapshotTempFile(OpenHeapSnapshotTempFileResponse* outResponse)
  15. override;
  16. public:
  17. static inline PHeapSnapshotTempFileHelperParent* Create();
  18. };
  19. /* static */ inline PHeapSnapshotTempFileHelperParent*
  20. HeapSnapshotTempFileHelperParent::Create()
  21. {
  22. return new HeapSnapshotTempFileHelperParent();
  23. }
  24. } // namespace devtools
  25. } // namespace mozilla
  26. #endif // mozilla_devtools_HeapSnapshotTempFileHelperParent_h