#include "extensions/renderer/extension_injection_host.h"
#include "content/public/renderer/render_frame.h"
#include "extensions/common/constants.h"
#include "extensions/common/extension_id.h"
#include "extensions/common/manifest_handlers/csp_info.h"
#include "extensions/common/mojom/host_id.mojom.h"
#include "extensions/renderer/extension_web_view_helper.h"
#include "extensions/renderer/renderer_extension_registry.h"
#include "pdf/buildflags.h"
#include "third_party/blink/public/web/web_local_frame.h"
#if BUILDFLAG(ENABLE_PDF)
#include "components/pdf/common/pdf_util.h"
#endif
namespace extensions {
ExtensionInjectionHost::ExtensionInjectionHost(const Extension* extension)
: … { … }
ExtensionInjectionHost::~ExtensionInjectionHost() { … }
std::unique_ptr<const InjectionHost> ExtensionInjectionHost::Create(
const ExtensionId& extension_id) { … }
const std::string* ExtensionInjectionHost::GetContentSecurityPolicy() const { … }
const GURL& ExtensionInjectionHost::url() const { … }
const std::string& ExtensionInjectionHost::name() const { … }
PermissionsData::PageAccess ExtensionInjectionHost::CanExecuteOnFrame(
const GURL& document_url,
content::RenderFrame* render_frame,
int tab_id,
bool is_declarative) const { … }
}