fix: disable contextBridge object identity caching (#21803)
* fix: disable contextBridge object identity caching * cleanup * chore: make non-const references raw pointers * fix: zero-param constructors are not explicit * refactor: use base::LinkedList Co-authored-by: Jeremy Apthorp <nornagon@nornagon.net>
This commit is contained in:
parent
a53a2aaa45
commit
2563681583
10 changed files with 266 additions and 453 deletions
|
@ -5,6 +5,7 @@
|
|||
#ifndef SHELL_RENDERER_API_ELECTRON_API_CONTEXT_BRIDGE_H_
|
||||
#define SHELL_RENDERER_API_ELECTRON_API_CONTEXT_BRIDGE_H_
|
||||
|
||||
#include "shell/renderer/api/context_bridge/object_cache.h"
|
||||
#include "v8/include/v8.h"
|
||||
|
||||
namespace gin_helper {
|
||||
|
@ -16,11 +17,11 @@ namespace electron {
|
|||
namespace api {
|
||||
|
||||
namespace context_bridge {
|
||||
class RenderFramePersistenceStore;
|
||||
class RenderFrameFunctionStore;
|
||||
}
|
||||
|
||||
v8::Local<v8::Value> ProxyFunctionWrapper(
|
||||
context_bridge::RenderFramePersistenceStore* store,
|
||||
context_bridge::RenderFrameFunctionStore* store,
|
||||
size_t func_id,
|
||||
gin_helper::Arguments* args);
|
||||
|
||||
|
@ -28,7 +29,8 @@ v8::MaybeLocal<v8::Object> CreateProxyForAPI(
|
|||
const v8::Local<v8::Object>& api_object,
|
||||
const v8::Local<v8::Context>& source_context,
|
||||
const v8::Local<v8::Context>& target_context,
|
||||
context_bridge::RenderFramePersistenceStore* store,
|
||||
context_bridge::RenderFrameFunctionStore* store,
|
||||
context_bridge::ObjectCache* object_cache,
|
||||
int recursion_depth);
|
||||
|
||||
} // namespace api
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue