refactor: allocate api::Session on cpp heap (#48141)
This commit is contained in:
parent
0917ed5f6f
commit
3ccb1bc0a8
32 changed files with 632 additions and 293 deletions
|
@ -19,6 +19,11 @@ namespace content {
|
|||
class RenderProcessHost;
|
||||
}
|
||||
|
||||
namespace gin {
|
||||
template <typename T>
|
||||
class WeakCell;
|
||||
} // namespace gin
|
||||
|
||||
namespace electron {
|
||||
class ElectronBrowserContext;
|
||||
|
||||
|
@ -68,7 +73,7 @@ class ElectronApiSWIPCHandlerImpl : public mojom::ElectronApiIPC,
|
|||
|
||||
private:
|
||||
ElectronBrowserContext* GetBrowserContext();
|
||||
api::Session* GetSession();
|
||||
gin::WeakCell<api::Session>* GetSession();
|
||||
|
||||
gin_helper::Handle<gin_helper::internal::Event> MakeIPCEvent(
|
||||
v8::Isolate* isolate,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue