fix: pass frameId to v8Util.setRemoteCallbackFreer() (#20732)
This commit is contained in:
parent
375e612ac5
commit
0f7ebff81e
4 changed files with 17 additions and 7 deletions
|
@ -17,6 +17,7 @@ class RemoteCallbackFreer : public ObjectLifeMonitor,
|
|||
public:
|
||||
static void BindTo(v8::Isolate* isolate,
|
||||
v8::Local<v8::Object> target,
|
||||
int frame_id,
|
||||
const std::string& context_id,
|
||||
int object_id,
|
||||
content::WebContents* web_conents);
|
||||
|
@ -24,6 +25,7 @@ class RemoteCallbackFreer : public ObjectLifeMonitor,
|
|||
protected:
|
||||
RemoteCallbackFreer(v8::Isolate* isolate,
|
||||
v8::Local<v8::Object> target,
|
||||
int frame_id,
|
||||
const std::string& context_id,
|
||||
int object_id,
|
||||
content::WebContents* web_conents);
|
||||
|
@ -35,6 +37,7 @@ class RemoteCallbackFreer : public ObjectLifeMonitor,
|
|||
void RenderViewDeleted(content::RenderViewHost*) override;
|
||||
|
||||
private:
|
||||
int frame_id_;
|
||||
std::string context_id_;
|
||||
int object_id_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue