refactor: use private inheritance from mojo::MessageReceiver (#45973)

* refactor: make UtilityProcessWrapper inherit privately from mojo::MessageReceiver

* refactor: make ParentPort inherit privately from mojo::MessageReceiver

* refactor: make MessagePort inherit privately from mojo::MessageReceiver
This commit is contained in:
Charles Kerr 2025-03-12 13:06:41 -05:00 committed by GitHub
parent 5ce41bac8d
commit c813bc2a92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -31,7 +31,7 @@ namespace electron {
// for the lifetime of a Utility Process which
// also means that GC lifecycle is ignored by this class.
class ParentPort final : public gin::Wrappable<ParentPort>,
public mojo::MessageReceiver {
private mojo::MessageReceiver {
public:
static ParentPort* GetInstance();
static gin::Handle<ParentPort> Create(v8::Isolate* isolate);