#include "components/webapps/renderer/web_page_metadata_agent.h"
#include <stddef.h>
#include <utility>
#include "base/functional/bind.h"
#include "components/webapps/common/constants.h"
#include "components/webapps/common/web_page_metadata.mojom.h"
#include "components/webapps/renderer/web_page_metadata_extraction.h"
#include "content/public/renderer/render_frame.h"
#include "services/service_manager/public/cpp/binder_registry.h"
#include "third_party/blink/public/common/associated_interfaces/associated_interface_registry.h"
#include "third_party/blink/public/web/web_console_message.h"
#include "third_party/blink/public/web/web_local_frame.h"
namespace webapps {
WebPageMetadataAgent::WebPageMetadataAgent(content::RenderFrame* render_frame)
: … { … }
WebPageMetadataAgent::~WebPageMetadataAgent() = default;
void WebPageMetadataAgent::OnInterfaceRequestForFrame(
const std::string& interface_name,
mojo::ScopedMessagePipeHandle* interface_pipe) { … }
void WebPageMetadataAgent::OnDestruct() { … }
void WebPageMetadataAgent::GetWebPageMetadata(
GetWebPageMetadataCallback callback) { … }
void WebPageMetadataAgent::OnRenderFrameObserverRequest(
mojo::PendingAssociatedReceiver<mojom::WebPageMetadataAgent> receiver) { … }
}