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_FileDescriptorSetParent_h__ michael@0: #define mozilla_dom_FileDescriptorSetParent_h__ michael@0: michael@0: #include "mozilla/Assertions.h" michael@0: #include "mozilla/Attributes.h" michael@0: #include "mozilla/dom/PFileDescriptorSetParent.h" michael@0: #include "nsTArray.h" michael@0: michael@0: namespace mozilla { michael@0: michael@0: namespace ipc { michael@0: michael@0: class FileDescriptor; michael@0: michael@0: } // namespace ipc michael@0: michael@0: namespace dom { michael@0: michael@0: class ContentParent; michael@0: michael@0: class FileDescriptorSetParent MOZ_FINAL: public PFileDescriptorSetParent michael@0: { michael@0: friend class ContentParent; michael@0: michael@0: public: michael@0: typedef mozilla::ipc::FileDescriptor FileDescriptor; michael@0: michael@0: void michael@0: ForgetFileDescriptors(nsTArray& aFileDescriptors); michael@0: michael@0: private: michael@0: FileDescriptorSetParent(const FileDescriptor& aFileDescriptor); michael@0: ~FileDescriptorSetParent(); michael@0: michael@0: virtual bool michael@0: RecvAddFileDescriptor(const FileDescriptor& aFileDescriptor) MOZ_OVERRIDE; michael@0: michael@0: nsTArray mFileDescriptors; michael@0: }; michael@0: michael@0: } // namespace dom michael@0: } // namespace mozilla michael@0: michael@0: #endif // mozilla_dom_FileDescriptorSetParent_h__