#include "extensions/browser/guest_view/extensions_guest_view.h"
#include <utility>
#include "base/containers/contains.h"
#include "base/memory/ptr_util.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_frame_host.h"
#include "extensions/browser/api/extensions_api_client.h"
#include "extensions/browser/guest_view/extensions_guest_view_manager_delegate.h"
#include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_embedder.h"
#include "extensions/browser/guest_view/web_view/web_view_content_script_manager.h"
#include "extensions/browser/guest_view/web_view/web_view_renderer_state.h"
#include "mojo/public/cpp/bindings/self_owned_associated_receiver.h"
namespace extensions {
ExtensionsGuestView::ExtensionsGuestView(
const content::GlobalRenderFrameHostId& frame_id)
: … { … }
ExtensionsGuestView::~ExtensionsGuestView() = default;
void ExtensionsGuestView::CreateForComponents(
const content::GlobalRenderFrameHostId& frame_id,
mojo::PendingAssociatedReceiver<guest_view::mojom::GuestViewHost>
receiver) { … }
void ExtensionsGuestView::CreateForExtensions(
const content::GlobalRenderFrameHostId& frame_id,
mojo::PendingAssociatedReceiver<extensions::mojom::GuestView> receiver) { … }
std::unique_ptr<guest_view::GuestViewManagerDelegate>
ExtensionsGuestView::CreateGuestViewManagerDelegate() const { … }
void ExtensionsGuestView::ReadyToCreateMimeHandlerView(bool success) { … }
void ExtensionsGuestView::CanExecuteContentScript(
const std::string& script_id,
CanExecuteContentScriptCallback callback) { … }
}