refactor: dispatch IPC messages from Session (#45452)

* refactor: dispatch IPC messages from Session

* refactor: move MessageHost to Session
This commit is contained in:
Sam Maddock 2025-02-17 16:36:28 -05:00 committed by GitHub
parent e9ba5876d1
commit c0422d7cc9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 250 additions and 341 deletions

View file

@ -65,6 +65,14 @@ class ElectronApiIPCHandlerImpl : public mojom::ElectronApiIPC,
void OnConnectionError();
content::RenderFrameHost* GetRenderFrameHost();
api::Session* GetSession();
gin::Handle<gin_helper::internal::Event> MakeIPCEvent(
v8::Isolate* isolate,
api::Session* session,
bool internal,
electron::mojom::ElectronApiIPC::InvokeCallback callback =
electron::mojom::ElectronApiIPC::InvokeCallback());
content::GlobalRenderFrameHostId render_frame_host_id_;