mirror of
https://github.com/chylex/TweetDuck.git
synced 2024-11-24 20:42:49 +01:00
21 lines
1.0 KiB
C#
21 lines
1.0 KiB
C#
using TweetImpl.CefGlue.Adapters;
|
|
using TweetImpl.CefGlue.Utils;
|
|
using TweetLib.Browser.CEF.Data;
|
|
using TweetLib.Browser.CEF.Logic;
|
|
using TweetLib.Browser.Interfaces;
|
|
using Xilium.CefGlue;
|
|
|
|
namespace TweetImpl.CefGlue.Handlers {
|
|
sealed class ResourceRequestHandlerFactory {
|
|
private readonly ResourceRequestHandlerFactoryLogic<ResourceRequestHandler, CefResourceHandler, CefRequest> logic;
|
|
|
|
public ResourceRequestHandlerFactory(IResourceRequestHandler? resourceRequestHandler, ResourceHandlerRegistry<CefResourceHandler> resourceHandlerRegistry, BridgeObjectRegistry bridgeObjectRegistry) {
|
|
this.logic = new ResourceRequestHandlerFactoryLogic<ResourceRequestHandler, CefResourceHandler, CefRequest>(CefRequestAdapter.Instance, new ResourceRequestHandler(resourceHandlerRegistry, bridgeObjectRegistry, resourceRequestHandler), resourceHandlerRegistry);
|
|
}
|
|
|
|
public CefResourceRequestHandler GetResourceRequestHandler(CefRequest request, ref bool disableDefaultHandling) {
|
|
return logic.GetResourceRequestHandler(request, ref disableDefaultHandling);
|
|
}
|
|
}
|
|
}
|