Skip to content

Commit 1609bd3

Browse files
committed
Bug 1880372 - Include headers for ManagedEndpoint/Endpoint if it is used in a struct or union; r=nika,media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D201878
1 parent d6908e9 commit 1609bd3

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

dom/media/gmp/PGMPService.ipdl

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
include protocol PGMPContent;
77
include GMPTypes;
88

9-
using mozilla::ipc::Endpoint from "mozilla/ipc/Endpoint.h";
109
using base::ProcessId from "base/process.h";
1110
using GMPPluginType from "GMPNativeTypes.h";
1211

dom/quota/IPCQuotaObject.ipdlh

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
include protocol PRemoteQuotaObject;
66

7-
using mozilla::ipc::Endpoint from "mozilla/ipc/Endpoint.h";
8-
97
namespace mozilla {
108
namespace dom {
119
namespace quota {

ipc/ipdl/ipdl/lower.py

+2
Original file line numberDiff line numberDiff line change
@@ -2482,13 +2482,15 @@ def visitEndpointType(self, s):
24822482
if s in self.visited:
24832483
return
24842484
self.visited.add(s)
2485+
self.includeHeaders.add("mozilla/ipc/Endpoint.h")
24852486
self.maybeTypedef("::mozilla::ipc::Endpoint", "Endpoint", ["FooSide"])
24862487
self.visitActorType(s.actor)
24872488

24882489
def visitManagedEndpointType(self, s):
24892490
if s in self.visited:
24902491
return
24912492
self.visited.add(s)
2493+
self.includeHeaders.add("mozilla/ipc/Endpoint.h")
24922494
self.maybeTypedef(
24932495
"::mozilla::ipc::ManagedEndpoint", "ManagedEndpoint", ["FooSide"]
24942496
)

0 commit comments

Comments
 (0)