// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "IWebBrowserWindow.h" class IWebBrowserAdapter { public: virtual FString GetName() const = 0; virtual bool IsPermanent() const = 0; virtual void ConnectTo(const TSharedRef& BrowserWindow) = 0; virtual void DisconnectFrom(const TSharedRef& BrowserWindow) = 0; }; class FWebBrowserAdapterFactory { public: static WEBBROWSER_API TSharedRef Create(const FString& Name, UObject* JSBridge, bool IsPermanent); static WEBBROWSER_API TSharedRef Create(const FString& Name, UObject* JSBridge, bool IsPermanent, const FString& ConnectScriptText, const FString& DisconnectScriptText); };