chromium/content/public/test/context_menu_interceptor.h

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_PUBLIC_TEST_CONTEXT_MENU_INTERCEPTOR_H_
#define CONTENT_PUBLIC_TEST_CONTEXT_MENU_INTERCEPTOR_H_

#include <memory>

#include "base/functional/callback_forward.h"
#include "base/run_loop.h"
#include "mojo/public/cpp/bindings/associated_receiver.h"
#include "mojo/public/cpp/test_support/test_utils.h"
#include "third_party/blink/public/common/context_menu_data/untrustworthy_context_menu_params.h"
#include "third_party/blink/public/mojom/frame/frame.mojom-test-utils.h"

namespace content {

class RenderFrameHost;

// This class intercepts for ShowContextMenu Mojo method called from a
// renderer process, and allows observing the UntrustworthyContextMenuParams as
// sent by the renderer.
class ContextMenuInterceptor
    : public blink::mojom::LocalFrameHostInterceptorForTesting {};

}  // namespace content

#endif  // CONTENT_PUBLIC_TEST_CONTEXT_MENU_INTERCEPTOR_H_