#include "extensions/browser/guest_view/extensions_guest_view_manager_delegate.h"
#include <memory>
#include <utility>
#include "components/guest_view/browser/guest_view_base.h"
#include "components/guest_view/browser/guest_view_manager.h"
#include "components/guest_view/common/guest_view_constants.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/child_process_host.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
#include "extensions/browser/api/extensions_api_client.h"
#include "extensions/browser/browser_frame_context_data.h"
#include "extensions/browser/event_router.h"
#include "extensions/browser/extension_util.h"
#include "extensions/browser/guest_view/app_view/app_view_guest.h"
#include "extensions/browser/guest_view/extension_options/extension_options_guest.h"
#include "extensions/browser/guest_view/guest_view_events.h"
#include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.h"
#include "extensions/browser/guest_view/web_view/web_view_guest.h"
#include "extensions/browser/process_manager.h"
#include "extensions/browser/process_map.h"
#include "extensions/browser/view_type_utils.h"
#include "extensions/common/constants.h"
#include "extensions/common/features/feature.h"
#include "extensions/common/features/feature_provider.h"
#include "extensions/common/mojom/event_dispatcher.mojom.h"
#include "extensions/common/mojom/view_type.mojom.h"
#include "extensions/common/utils/extension_utils.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_object.mojom-forward.h"
GuestViewBase;
GuestViewManager;
namespace extensions {
mojom::HostID GenerateHostIdFromGuestView(
const guest_view::GuestViewBase& guest) { … }
bool ExtensionsGuestViewManagerDelegate::IsGuestAvailableToContextWithFeature(
const GuestViewBase* guest,
const std::string& feature_name) { … }
ExtensionsGuestViewManagerDelegate::ExtensionsGuestViewManagerDelegate() =
default;
ExtensionsGuestViewManagerDelegate::~ExtensionsGuestViewManagerDelegate() =
default;
void ExtensionsGuestViewManagerDelegate::OnGuestAdded(
content::WebContents* guest_web_contents) const { … }
void ExtensionsGuestViewManagerDelegate::DispatchEvent(
const std::string& event_name,
base::Value::Dict args,
GuestViewBase* guest,
int instance_id) { … }
bool ExtensionsGuestViewManagerDelegate::IsGuestAvailableToContext(
const GuestViewBase* guest) const { … }
bool ExtensionsGuestViewManagerDelegate::IsOwnedByExtension(
const GuestViewBase* guest) { … }
bool ExtensionsGuestViewManagerDelegate::IsOwnedByControlledFrameEmbedder(
const GuestViewBase* guest) { … }
void ExtensionsGuestViewManagerDelegate::RegisterAdditionalGuestViewTypes(
GuestViewManager* manager) { … }
}