using System.Diagnostics.CodeAnalysis;
namespace Robust.Client.WebView
{
public interface IWebViewManager
{
IWebViewWindow CreateBrowserWindow(BrowserWindowCreateParameters createParams);
///
/// Overrides file extension -> mime type mappings for the res:// protocol.
///
///
///
/// The built-in res:// protocol needs to guess MIME types to report to CEF when resolving files.
/// A limited set of extensions have pre-set MIME types in the engine.
/// This method allows you to replace or add entries if need be.
///
///
/// This method is thread safe.
///
///
///
/// The extension to specify the MIME type for.
/// The argument must not include the starting "." of the file extension.
///
/// The mime type for this file extension.
///
void SetResourceMimeType(string extension, string mimeType);
///
/// Tries to resolve an entry from the list.
///
///
///
/// This method is thread safe.
///
///
bool TryGetResourceMimeType(string extension, [NotNullWhen(true)] out string? mimeType);
}
}