#include "content/renderer/web_ui_extension.h"
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/values.h"
#include "content/public/common/bindings_policy.h"
#include "content/public/common/url_constants.h"
#include "content/public/renderer/chrome_object_extensions_utils.h"
#include "content/public/renderer/render_frame.h"
#include "content/public/renderer/render_thread.h"
#include "content/public/renderer/v8_value_converter.h"
#include "content/renderer/web_ui_extension_data.h"
#include "gin/arguments.h"
#include "gin/function_template.h"
#include "third_party/blink/public/platform/scheduler/web_agent_group_scheduler.h"
#include "third_party/blink/public/web/web_document.h"
#include "third_party/blink/public/web/web_local_frame.h"
#include "third_party/blink/public/web/web_view.h"
#include "url/gurl.h"
#include "v8/include/v8-context.h"
#include "v8/include/v8-function.h"
#include "v8/include/v8-local-handle.h"
#include "v8/include/v8-object.h"
namespace content {
namespace {
bool ShouldRespondToRequest(blink::WebLocalFrame** frame_ptr,
RenderFrame** render_frame_ptr) { … }
v8::Local<v8::Object> GetOrCreateChildObject(v8::Local<v8::Object> parent,
const std::string& child_name,
v8::Isolate* isolate,
v8::Local<v8::Context> context) { … }
}
void WebUIExtension::Install(blink::WebLocalFrame* frame) { … }
void WebUIExtension::Send(gin::Arguments* args) { … }
std::string WebUIExtension::GetVariableValue(const std::string& name) { … }
}