#include "extensions/renderer/gc_callback.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
#include "extensions/renderer/script_context.h"
#include "third_party/blink/public/platform/task_type.h"
#include "third_party/blink/public/web/web_local_frame.h"
namespace extensions {
GCCallback::GCCallback(ScriptContext* context,
const v8::Local<v8::Object>& object,
const v8::Local<v8::Function>& callback,
base::OnceClosure fallback)
: … { … }
GCCallback::GCCallback(ScriptContext* context,
const v8::Local<v8::Object>& object,
base::OnceClosure callback,
base::OnceClosure fallback)
: … { … }
GCCallback::GCCallback(ScriptContext* context,
const v8::Local<v8::Object>& object,
const v8::Local<v8::Function> v8_callback,
base::OnceClosure closure_callback,
base::OnceClosure fallback)
: … { … }
GCCallback::~GCCallback() = default;
void GCCallback::OnObjectGC(const v8::WeakCallbackInfo<GCCallback>& data) { … }
void GCCallback::RunCallback() { … }
void GCCallback::OnContextInvalidated() { … }
}