#include "extensions/renderer/render_frame_observer_natives.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
#include "content/public/renderer/render_frame.h"
#include "content/public/renderer/render_frame_observer.h"
#include "extensions/renderer/extension_frame_helper.h"
#include "extensions/renderer/script_context.h"
#include "v8/include/v8-function-callback.h"
#include "v8/include/v8-function.h"
#include "v8/include/v8-primitive.h"
namespace extensions {
namespace {
class LoadWatcher : public content::RenderFrameObserver { … };
}
RenderFrameObserverNatives::RenderFrameObserverNatives(ScriptContext* context)
: … { … }
RenderFrameObserverNatives::~RenderFrameObserverNatives() = default;
void RenderFrameObserverNatives::AddRoutes() { … }
void RenderFrameObserverNatives::Invalidate() { … }
void RenderFrameObserverNatives::OnDocumentElementCreated(
const v8::FunctionCallbackInfo<v8::Value>& args) { … }
void RenderFrameObserverNatives::InvokeCallback(
v8::Global<v8::Function> callback,
bool succeeded) { … }
}