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 file,
5  * You can obtain one at http://mozilla.org/MPL/2.0/. */
6 
7 #ifndef mozilla_dom_ipc_nsIRemoteBlob_h
8 #define mozilla_dom_ipc_nsIRemoteBlob_h
9 
10 #include "nsISupports.h"
11 
12 #ifndef NS_NO_VTABLE
13 #define NS_NO_VTABLE
14 #endif
15 
16 #define NS_IREMOTEBLOB_IID \
17   {0x0b8b0091, 0xb315, 0x48a2, {0x90, 0xf1, 0x60, 0x0e, 0x78, 0x35, 0xf7, 0x2d}}
18 
19 namespace mozilla {
20 namespace dom {
21 
22 class BlobChild;
23 class BlobParent;
24 
25 } // namespace dom
26 } // namespace mozilla
27 
28 class NS_NO_VTABLE nsIRemoteBlob : public nsISupports
29 {
30 public:
31   typedef mozilla::dom::BlobChild BlobChild;
32   typedef mozilla::dom::BlobParent BlobParent;
33 
34   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IREMOTEBLOB_IID)
35 
36   virtual BlobChild*
37   GetBlobChild() = 0;
38 
39   virtual BlobParent*
40   GetBlobParent() = 0;
41 };
42 
43 NS_DEFINE_STATIC_IID_ACCESSOR(nsIRemoteBlob, NS_IREMOTEBLOB_IID)
44 
45 #endif // mozilla_dom_ipc_nsIRemoteBlob_h
46