#include "third_party/blink/renderer/core/loader/empty_clients.h"
#include <memory>
#include "base/task/single_thread_task_runner.h"
#include "cc/layers/layer.h"
#include "cc/trees/layer_tree_host.h"
#include "components/viz/common/surfaces/local_surface_id.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "third_party/blink/public/common/associated_interfaces/associated_interface_provider.h"
#include "third_party/blink/public/platform/modules/service_worker/web_service_worker_provider.h"
#include "third_party/blink/public/platform/modules/service_worker/web_service_worker_provider_client.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/platform/web_media_player.h"
#include "third_party/blink/renderer/core/frame/visual_viewport.h"
#include "third_party/blink/renderer/core/html/forms/color_chooser.h"
#include "third_party/blink/renderer/core/html/forms/date_time_chooser.h"
#include "third_party/blink/renderer/core/html/forms/file_chooser.h"
#include "third_party/blink/renderer/core/html/forms/html_form_element.h"
namespace blink {
ChromeClient& GetStaticEmptyChromeClientInstance() { … }
class EmptyPopupMenu : public PopupMenu { … };
PopupMenu* EmptyChromeClient::OpenPopupMenu(LocalFrame&, HTMLSelectElement&) { … }
ColorChooser* EmptyChromeClient::OpenColorChooser(LocalFrame*,
ColorChooserClient*,
const Color&) { … }
DateTimeChooser* EmptyChromeClient::OpenDateTimeChooser(
LocalFrame* frame,
DateTimeChooserClient*,
const DateTimeChooserParameters&) { … }
std::unique_ptr<cc::ScopedPauseRendering> EmptyChromeClient::PauseRendering(
LocalFrame&) { … }
std::optional<int> EmptyChromeClient::GetMaxRenderBufferBounds(
LocalFrame& frame) const { … }
void EmptyChromeClient::OpenTextDataListChooser(HTMLInputElement&) { … }
void EmptyChromeClient::OpenFileChooser(LocalFrame*,
scoped_refptr<FileChooser>) { … }
void EmptyChromeClient::AttachRootLayer(scoped_refptr<cc::Layer>, LocalFrame*) { … }
String EmptyChromeClient::AcceptLanguages() { … }
bool EmptyChromeClient::StartDeferringCommits(LocalFrame& main_frame,
base::TimeDelta timeout,
cc::PaintHoldingReason reason) { … }
void EmptyLocalFrameClient::BeginNavigation(
const ResourceRequest&,
const KURL& requestor_base_url,
mojom::RequestContextFrameType,
LocalDOMWindow*,
DocumentLoader*,
WebNavigationType,
NavigationPolicy,
WebFrameLoadType,
mojom::blink::ForceHistoryPush,
bool,
bool,
mojom::blink::TriggeringEventInfo,
HTMLFormElement*,
network::mojom::CSPDisposition,
mojo::PendingRemote<mojom::blink::BlobURLToken>,
base::TimeTicks,
const String&,
const std::optional<Impression>&,
const LocalFrameToken* initiator_frame_token,
std::unique_ptr<SourceLocation>,
mojo::PendingRemote<mojom::blink::NavigationStateKeepAliveHandle>,
bool is_container_initiated,
bool has_rel_opener) { … }
void EmptyLocalFrameClient::DispatchWillSendSubmitEvent(HTMLFormElement*) { … }
LocalFrame* EmptyLocalFrameClient::CreateFrame(const AtomicString&,
HTMLFrameOwnerElement*) { … }
RemoteFrame* EmptyLocalFrameClient::CreateFencedFrame(
HTMLFencedFrameElement*,
mojo::PendingAssociatedReceiver<mojom::blink::FencedFrameOwnerHost>) { … }
WebPluginContainerImpl* EmptyLocalFrameClient::CreatePlugin(
HTMLPlugInElement&,
const KURL&,
const Vector<String>&,
const Vector<String>&,
const String&,
bool) { … }
std::unique_ptr<WebMediaPlayer> EmptyLocalFrameClient::CreateWebMediaPlayer(
HTMLMediaElement&,
const WebMediaPlayerSource&,
WebMediaPlayerClient*) { … }
WebRemotePlaybackClient* EmptyLocalFrameClient::CreateWebRemotePlaybackClient(
HTMLMediaElement&) { … }
WebTextCheckClient* EmptyLocalFrameClient::GetTextCheckerClient() const { … }
void EmptyLocalFrameClient::SetTextCheckerClientForTesting(
WebTextCheckClient* client) { … }
Frame* EmptyLocalFrameClient::FindFrame(const AtomicString& name) const { … }
AssociatedInterfaceProvider*
EmptyLocalFrameClient::GetRemoteNavigationAssociatedInterfaces() { … }
std::unique_ptr<WebServiceWorkerProvider>
EmptyLocalFrameClient::CreateServiceWorkerProvider() { … }
}