nsIRemoteBlob.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  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 file,
  4. * You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef mozilla_dom_ipc_nsIRemoteBlob_h
  6. #define mozilla_dom_ipc_nsIRemoteBlob_h
  7. #include "nsISupports.h"
  8. #ifndef NS_NO_VTABLE
  9. #define NS_NO_VTABLE
  10. #endif
  11. #define NS_IREMOTEBLOB_IID \
  12. {0x0b8b0091, 0xb315, 0x48a2, {0x90, 0xf1, 0x60, 0x0e, 0x78, 0x35, 0xf7, 0x2d}}
  13. namespace mozilla {
  14. namespace dom {
  15. class BlobChild;
  16. class BlobParent;
  17. } // namespace dom
  18. } // namespace mozilla
  19. class NS_NO_VTABLE nsIRemoteBlob : public nsISupports
  20. {
  21. public:
  22. typedef mozilla::dom::BlobChild BlobChild;
  23. typedef mozilla::dom::BlobParent BlobParent;
  24. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IREMOTEBLOB_IID)
  25. virtual BlobChild*
  26. GetBlobChild() = 0;
  27. virtual BlobParent*
  28. GetBlobParent() = 0;
  29. };
  30. NS_DEFINE_STATIC_IID_ACCESSOR(nsIRemoteBlob, NS_IREMOTEBLOB_IID)
  31. #endif // mozilla_dom_ipc_nsIRemoteBlob_h