Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 3 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #ifndef mozilla_dom_ipc_nsICachedFileDescriptorListener_h |
michael@0 | 6 | #define mozilla_dom_ipc_nsICachedFileDescriptorListener_h |
michael@0 | 7 | |
michael@0 | 8 | #include "nsISupports.h" |
michael@0 | 9 | |
michael@0 | 10 | #ifndef NS_NO_VTABLE |
michael@0 | 11 | #define NS_NO_VTABLE |
michael@0 | 12 | #endif |
michael@0 | 13 | |
michael@0 | 14 | #define NS_ICACHEDFILEDESCRIPTORLISTENER_IID \ |
michael@0 | 15 | {0x2cedaee0, 0x6ef2, 0x4f60, {0x9a, 0x6c, 0xdf, 0x4e, 0x4d, 0x65, 0x6a, 0xf7}} |
michael@0 | 16 | |
michael@0 | 17 | class nsAString; |
michael@0 | 18 | |
michael@0 | 19 | namespace mozilla { |
michael@0 | 20 | namespace ipc { |
michael@0 | 21 | class FileDescriptor; |
michael@0 | 22 | } |
michael@0 | 23 | } |
michael@0 | 24 | |
michael@0 | 25 | class NS_NO_VTABLE nsICachedFileDescriptorListener : public nsISupports |
michael@0 | 26 | { |
michael@0 | 27 | public: |
michael@0 | 28 | NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICACHEDFILEDESCRIPTORLISTENER_IID) |
michael@0 | 29 | |
michael@0 | 30 | virtual void |
michael@0 | 31 | OnCachedFileDescriptor(const nsAString& aPath, |
michael@0 | 32 | const mozilla::ipc::FileDescriptor& aFD) = 0; |
michael@0 | 33 | }; |
michael@0 | 34 | |
michael@0 | 35 | NS_DEFINE_STATIC_IID_ACCESSOR(nsICachedFileDescriptorListener, |
michael@0 | 36 | NS_ICACHEDFILEDESCRIPTORLISTENER_IID) |
michael@0 | 37 | |
michael@0 | 38 | #endif // mozilla_dom_ipc_nsICachedFileDescriptorListener_h |