#include "chrome/renderer/extensions/api/tabs_hooks_delegate.h"
#include <string_view>
#include "content/public/renderer/v8_value_converter.h"
#include "extensions/common/api/messaging/message.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest.h"
#include "extensions/common/mojom/message_port.mojom-shared.h"
#include "extensions/renderer/api/messaging/message_target.h"
#include "extensions/renderer/api/messaging/messaging_util.h"
#include "extensions/renderer/api/messaging/native_renderer_messaging_service.h"
#include "extensions/renderer/bindings/api_binding_types.h"
#include "extensions/renderer/get_script_context.h"
#include "extensions/renderer/script_context.h"
#include "gin/converter.h"
namespace extensions {
namespace {
RequestResult;
constexpr char kConnect[] = …;
constexpr char kSendMessage[] = …;
constexpr char kSendTabsRequest[] = …;
}
TabsHooksDelegate::TabsHooksDelegate(
NativeRendererMessagingService* messaging_service)
: … { … }
TabsHooksDelegate::~TabsHooksDelegate() { … }
RequestResult TabsHooksDelegate::HandleRequest(
const std::string& method_name,
const APISignature* signature,
v8::Local<v8::Context> context,
v8::LocalVector<v8::Value>* arguments,
const APITypeReferenceMap& refs) { … }
RequestResult TabsHooksDelegate::HandleSendRequest(
ScriptContext* script_context,
const APISignature::V8ParseResult& parse_result) { … }
RequestResult TabsHooksDelegate::HandleSendMessage(
ScriptContext* script_context,
const APISignature::V8ParseResult& parse_result) { … }
RequestResult TabsHooksDelegate::HandleConnect(
ScriptContext* script_context,
const APISignature::V8ParseResult& parse_result) { … }
}