refactor: allocate gin_helper::internal::Event on cpp heap (#48161)

This commit is contained in:
Robo
2025-08-27 09:30:50 +09:00
committed by GitHub
parent 3b9130d815
commit e0db4046b2
15 changed files with 156 additions and 116 deletions

View File

@@ -13,7 +13,6 @@
#include "electron/shell/common/api/api.mojom.h"
#include "mojo/public/cpp/bindings/associated_receiver.h"
#include "shell/common/gin_helper/event.h"
#include "shell/common/gin_helper/handle.h"
namespace content {
class RenderProcessHost;
@@ -75,7 +74,7 @@ class ElectronApiSWIPCHandlerImpl : public mojom::ElectronApiIPC,
ElectronBrowserContext* GetBrowserContext();
gin::WeakCell<api::Session>* GetSession();
gin_helper::Handle<gin_helper::internal::Event> MakeIPCEvent(
gin_helper::internal::Event* MakeIPCEvent(
v8::Isolate* isolate,
api::Session* session,
bool internal,