1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/ipc/nsICachedFileDescriptorListener.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,38 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#ifndef mozilla_dom_ipc_nsICachedFileDescriptorListener_h 1.9 +#define mozilla_dom_ipc_nsICachedFileDescriptorListener_h 1.10 + 1.11 +#include "nsISupports.h" 1.12 + 1.13 +#ifndef NS_NO_VTABLE 1.14 +#define NS_NO_VTABLE 1.15 +#endif 1.16 + 1.17 +#define NS_ICACHEDFILEDESCRIPTORLISTENER_IID \ 1.18 + {0x2cedaee0, 0x6ef2, 0x4f60, {0x9a, 0x6c, 0xdf, 0x4e, 0x4d, 0x65, 0x6a, 0xf7}} 1.19 + 1.20 +class nsAString; 1.21 + 1.22 +namespace mozilla { 1.23 +namespace ipc { 1.24 +class FileDescriptor; 1.25 +} 1.26 +} 1.27 + 1.28 +class NS_NO_VTABLE nsICachedFileDescriptorListener : public nsISupports 1.29 +{ 1.30 +public: 1.31 + NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICACHEDFILEDESCRIPTORLISTENER_IID) 1.32 + 1.33 + virtual void 1.34 + OnCachedFileDescriptor(const nsAString& aPath, 1.35 + const mozilla::ipc::FileDescriptor& aFD) = 0; 1.36 +}; 1.37 + 1.38 +NS_DEFINE_STATIC_IID_ACCESSOR(nsICachedFileDescriptorListener, 1.39 + NS_ICACHEDFILEDESCRIPTORLISTENER_IID) 1.40 + 1.41 +#endif // mozilla_dom_ipc_nsICachedFileDescriptorListener_h