refactor: use WeakRef on renderer side of remote (#24037)

This commit is contained in:
Jeremy Rose 2020-06-12 15:50:03 -07:00 committed by GitHub
parent 178e46cd23
commit 379bb174e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 26 additions and 117 deletions

View file

@ -18,7 +18,6 @@
#if BUILDFLAG(ENABLE_REMOTE_MODULE)
#include "shell/common/api/remote/remote_callback_freer.h"
#include "shell/common/api/remote/remote_object_freer.h"
#endif
namespace std {
@ -148,7 +147,6 @@ void Initialize(v8::Local<v8::Object> exports,
#if BUILDFLAG(ENABLE_REMOTE_MODULE)
dict.SetMethod("setRemoteCallbackFreer",
&electron::RemoteCallbackFreer::BindTo);
dict.SetMethod("setRemoteObjectFreer", &electron::RemoteObjectFreer::BindTo);
dict.SetMethod(
"createDoubleIDWeakMap",
&electron::api::KeyWeakMap<std::pair<std::string, int32_t>>::Create);