michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_dom_ipc_nsICachedFileDescriptorListener_h michael@0: #define mozilla_dom_ipc_nsICachedFileDescriptorListener_h michael@0: michael@0: #include "nsISupports.h" michael@0: michael@0: #ifndef NS_NO_VTABLE michael@0: #define NS_NO_VTABLE michael@0: #endif michael@0: michael@0: #define NS_ICACHEDFILEDESCRIPTORLISTENER_IID \ michael@0: {0x2cedaee0, 0x6ef2, 0x4f60, {0x9a, 0x6c, 0xdf, 0x4e, 0x4d, 0x65, 0x6a, 0xf7}} michael@0: michael@0: class nsAString; michael@0: michael@0: namespace mozilla { michael@0: namespace ipc { michael@0: class FileDescriptor; michael@0: } michael@0: } michael@0: michael@0: class NS_NO_VTABLE nsICachedFileDescriptorListener : public nsISupports michael@0: { michael@0: public: michael@0: NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICACHEDFILEDESCRIPTORLISTENER_IID) michael@0: michael@0: virtual void michael@0: OnCachedFileDescriptor(const nsAString& aPath, michael@0: const mozilla::ipc::FileDescriptor& aFD) = 0; michael@0: }; michael@0: michael@0: NS_DEFINE_STATIC_IID_ACCESSOR(nsICachedFileDescriptorListener, michael@0: NS_ICACHEDFILEDESCRIPTORLISTENER_IID) michael@0: michael@0: #endif // mozilla_dom_ipc_nsICachedFileDescriptorListener_h