|
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/. */ |
|
4 |
|
5 #ifndef mozilla_dom_FileDescriptorSetChild_h__ |
|
6 #define mozilla_dom_FileDescriptorSetChild_h__ |
|
7 |
|
8 #include "mozilla/Assertions.h" |
|
9 #include "mozilla/Attributes.h" |
|
10 #include "mozilla/dom/PFileDescriptorSetChild.h" |
|
11 #include "nsTArray.h" |
|
12 |
|
13 namespace mozilla { |
|
14 |
|
15 namespace ipc { |
|
16 |
|
17 class FileDescriptor; |
|
18 |
|
19 } // namespace ipc |
|
20 |
|
21 namespace dom { |
|
22 |
|
23 class ContentChild; |
|
24 |
|
25 class FileDescriptorSetChild MOZ_FINAL: public PFileDescriptorSetChild |
|
26 { |
|
27 friend class ContentChild; |
|
28 |
|
29 public: |
|
30 typedef mozilla::ipc::FileDescriptor FileDescriptor; |
|
31 |
|
32 void |
|
33 ForgetFileDescriptors(nsTArray<FileDescriptor>& aFileDescriptors); |
|
34 |
|
35 private: |
|
36 FileDescriptorSetChild(const FileDescriptor& aFileDescriptor); |
|
37 ~FileDescriptorSetChild(); |
|
38 |
|
39 virtual bool |
|
40 RecvAddFileDescriptor(const FileDescriptor& aFileDescriptor) MOZ_OVERRIDE; |
|
41 |
|
42 nsTArray<FileDescriptor> mFileDescriptors; |
|
43 }; |
|
44 |
|
45 } // namespace dom |
|
46 } // namespace mozilla |
|
47 |
|
48 #endif // mozilla_dom_FileDescriptorSetChild_h__ |