Bug 1546356 - Allow ManagedEndPoints as members of unions/structs. Part 1: Include headers for parent and child actors. r=nika
authorPeter Van der Beken <peterv@propagandism.org>
Fri, 19 Apr 2019 14:13:27 +0200
changeset 500752 c4a3bbc944a3f1d003bae9137595d5298f226a46
parent 500481 4d585c7edc7683e4b35eca6b18c9a646a1b8a78d
child 500753 9f3173e9665c8b62db04fd0c67ed0fe2a3d83fbc
push id36771
push userarchaeopteryx@coole-files.de
push dateWed, 06 Nov 2019 13:55:41 +0000
treeherdermozilla-central@06c52ca1bdfc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnika
bugs1546356
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1546356 - Allow ManagedEndPoints as members of unions/structs. Part 1: Include headers for parent and child actors. r=nika Differential Revision: https://phabricator.services.mozilla.com/D28548
ipc/ipdl/ipdl/lower.py
--- a/ipc/ipdl/ipdl/lower.py
+++ b/ipc/ipdl/ipdl/lower.py
@@ -1650,16 +1650,18 @@ class _GenerateProtocolCode(ipdl.ast.Vis
                     gen_struct(d, t)
             self.hdrfile.addthings(defn)
         while len(decls) > 0:
             _, (d, t) = decls.popitem(False)
             gen_struct(d, t)
 
     def visitProtocol(self, p):
         self.cppIncludeHeaders.append(_protocolHeaderName(self.protocol, '') + '.h')
+        self.cppIncludeHeaders.append(_protocolHeaderName(self.protocol, 'Parent') + '.h')
+        self.cppIncludeHeaders.append(_protocolHeaderName(self.protocol, 'Child') + '.h')
 
         # Forward declare our own actors.
         self.hdrfile.addthings([
             Whitespace.NL,
             _makeForwardDeclForActor(p.decl.type, 'Parent'),
             _makeForwardDeclForActor(p.decl.type, 'Child')
         ])