#include "components/guest_view/browser/guest_view_message_handler.h"
#include <memory>
#include "components/guest_view/browser/bad_message.h"
#include "components/guest_view/browser/guest_view_base.h"
#include "components/guest_view/browser/guest_view_manager.h"
#include "components/guest_view/browser/guest_view_manager_delegate.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
BrowserThread;
RenderFrameHost;
namespace guest_view {
class ViewHandle : public mojom::ViewHandle { … };
GuestViewMessageHandler::GuestViewMessageHandler(
const content::GlobalRenderFrameHostId& frame_id)
: … { … }
GuestViewMessageHandler::~GuestViewMessageHandler() = default;
GuestViewManager* GuestViewMessageHandler::GetOrCreateGuestViewManager() { … }
GuestViewManager* GuestViewMessageHandler::GetGuestViewManagerOrKill() { … }
std::unique_ptr<GuestViewManagerDelegate>
GuestViewMessageHandler::CreateGuestViewManagerDelegate() const { … }
content::BrowserContext* GuestViewMessageHandler::GetBrowserContext() const { … }
void GuestViewMessageHandler::ViewCreated(
int view_instance_id,
const std::string& view_type,
mojo::PendingReceiver<mojom::ViewHandle> receiver) { … }
void GuestViewMessageHandler::AttachToEmbedderFrame(
int element_instance_id,
int guest_instance_id,
base::Value::Dict params,
AttachToEmbedderFrameCallback callback) { … }
}