fix: early GC of WebFrameMain instances (#27648)
This commit is contained in:
parent
bc7c290601
commit
1bbfa934f0
2 changed files with 13 additions and 2 deletions
|
@ -13,6 +13,7 @@
|
|||
#include "gin/handle.h"
|
||||
#include "gin/wrappable.h"
|
||||
#include "shell/common/gin_helper/constructible.h"
|
||||
#include "shell/common/gin_helper/pinnable.h"
|
||||
|
||||
class GURL;
|
||||
|
||||
|
@ -34,6 +35,7 @@ namespace api {
|
|||
|
||||
// Bindings for accessing frames from the main process.
|
||||
class WebFrameMain : public gin::Wrappable<WebFrameMain>,
|
||||
public gin_helper::Pinnable<WebFrameMain>,
|
||||
public gin_helper::Constructible<WebFrameMain> {
|
||||
public:
|
||||
// Create a new WebFrameMain and return the V8 wrapper of it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue