#include "content/test/frame_host_interceptor.h"
#include <utility>
#include "base/memory/raw_ptr.h"
#include "content/browser/renderer_host/render_frame_host_impl.h"
#include "content/common/frame.mojom-test-utils.h"
#include "content/common/frame.mojom.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "mojo/public/cpp/bindings/associated_receiver.h"
#include "third_party/blink/public/mojom/navigation/navigation_params.mojom.h"
namespace content {
class FrameHostInterceptor::FrameAgent
: public mojom::FrameHostInterceptorForTesting { … };
FrameHostInterceptor::FrameHostInterceptor(WebContents* web_contents)
: … { … }
FrameHostInterceptor::~FrameHostInterceptor() = default;
bool FrameHostInterceptor::WillDispatchBeginNavigation(
RenderFrameHost* render_frame_host,
blink::mojom::CommonNavigationParamsPtr* common_params,
blink::mojom::BeginNavigationParamsPtr* begin_params,
mojo::PendingRemote<blink::mojom::BlobURLToken>* blob_url_token,
mojo::PendingAssociatedRemote<mojom::NavigationClient>* navigation_client) { … }
void FrameHostInterceptor::RenderFrameCreated(
RenderFrameHost* render_frame_host) { … }
void FrameHostInterceptor::RenderFrameDeleted(
RenderFrameHost* render_frame_host) { … }
}