Bumping manifests a=b2g-bump
[gecko.git] / dom / ipc / FileDescriptorSetParent.h
blobf81043e65bc03aae3a4fc4989a718861d0334efd
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef mozilla_dom_FileDescriptorSetParent_h__
6 #define mozilla_dom_FileDescriptorSetParent_h__
8 #include "mozilla/Assertions.h"
9 #include "mozilla/Attributes.h"
10 #include "mozilla/dom/PFileDescriptorSetParent.h"
11 #include "nsTArray.h"
13 namespace mozilla {
15 namespace ipc {
17 class FileDescriptor;
19 } // namespace ipc
21 namespace dom {
23 class ContentParent;
25 class FileDescriptorSetParent MOZ_FINAL: public PFileDescriptorSetParent
27 friend class ContentParent;
29 public:
30 typedef mozilla::ipc::FileDescriptor FileDescriptor;
32 void
33 ForgetFileDescriptors(nsTArray<FileDescriptor>& aFileDescriptors);
35 private:
36 explicit FileDescriptorSetParent(const FileDescriptor& aFileDescriptor);
37 ~FileDescriptorSetParent();
39 virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
41 virtual bool
42 RecvAddFileDescriptor(const FileDescriptor& aFileDescriptor) MOZ_OVERRIDE;
44 nsTArray<FileDescriptor> mFileDescriptors;
47 } // namespace dom
48 } // namespace mozilla
50 #endif // mozilla_dom_FileDescriptorSetParent_h__