FCohtmlFileHandler

Inherits from FTickableGameObject, IAsyncResourceHandler

Public Types

Name
enum classEResourceProtocol { Coui, UnrealAsset, Http}

Public Functions

Name
FCohtmlFileHandler()
virtual~FCohtmlFileHandler() override
virtual voidCancelResourceRequests()
virtual voidOnResourceRequest(const cohtml::IAsyncResourceRequest * request, cohtml::IAsyncResourceResponse * response) override
virtual voidOnResourceStreamRequest(const cohtml::IAsyncResourceRequest * request, cohtml::IAsyncResourceStreamResponse * response) override
virtual voidOnAbortResourceRequest(unsigned id) override
Called when the backend wants a load to abort. The user is STILL REQUIRED to call Finish on the resource response with the associated request.
virtual voidOnUserImageDropped(void * UserData, void * TexturePtr)
virtual voidSetActiveSystem(TWeakPtr< class FCohtmlSystemWrapper, ESPMode::ThreadSafe > SystemPtr)
virtual boolIsCurrentlyLoading()
virtual FCohtmlPathResolver *GetPathResolver()
virtual voidEnsureNoResourceRequests()
virtual boolTryGetResourcePath(const cohtml::IAsyncResourceRequest * Request, EResourceProtocol & ResourceProtocol, FURLWithFallbacks & ResultPath)
virtual voidOnUnrealResourceLoaded(unsigned Id, const FUnrealResourceTaskPtr ResourceTask)
virtual voidOnUnrealResourceLoaded(unsigned Id, FCohUnrealResourcePtr & ResourcePtr, cohtml::IAsyncResourceResponse * Response)
virtual boolTryConvertFilenameToTexture2DPath(const FString & Path, FString & ConvertedPath)
virtual boolTryEnqueueUnrealResource(unsigned Id, const FString & RelativePath, cohtml::IAsyncResourceResponse * Response)
virtual boolTryReceiveUserImage(FCohUnrealResourcePtr & Resource, cohtml::IAsyncResourceResponse * Response)
virtual voidTick(float DeltaTime) override
virtual boolIsTickable() const override
virtual boolIsTickableInEditor() const override
virtual boolIsTickableWhenPaused() const override
virtual TStatIdGetStatId() const override
virtual UTexture *TryLoadUAssetImmediately(FSoftObjectPath RequestPathAsset)
FURLWithFallbacksGeneratePossibleURLs(const cohtml::IAsyncResourceRequest * Request)

Public Attributes

Name
TMap< unsigned, FUnrealResourceTaskPtr >UnrealResourceQueue
FStreamableManagerStreamableManager
FCriticalSectionUnrealResourceLock
FCriticalSectionPendingUnrealResourceLock
TMap< unsigned, FTexturePendingReceival >PendingUnrealResources
TArray< FCohUnrealResourcePtr >AbortedPendingUnrealResources
FCohtmlHTTPFileHandlerHTTPFileHandler
FCohtmlRawResourceHandlerRawResourceHandler
ICohtmlPlugin::FOnURLRequestFallbackURLsOverride
TWeakPtr< class FCohtmlSystemWrapper, ESPMode::ThreadSafe >System
TUniquePtr< FCohtmlPathResolver >PathResolver

Friends

Name
classFCohtmlUnrealResourceLoaderTask

Public Types Documentation

enum EResourceProtocol

EnumeratorValueDescription
Coui
UnrealAsset
Http

Public Functions Documentation

function FCohtmlFileHandler

FCohtmlFileHandler()

function ~FCohtmlFileHandler

virtual ~FCohtmlFileHandler() override

function CancelResourceRequests

virtual void CancelResourceRequests()

function OnResourceRequest

virtual void OnResourceRequest(
    const cohtml::IAsyncResourceRequest * request,
    cohtml::IAsyncResourceResponse * response
) override

function OnResourceStreamRequest

virtual void OnResourceStreamRequest(
    const cohtml::IAsyncResourceRequest * request,
    cohtml::IAsyncResourceStreamResponse * response
) override

function OnAbortResourceRequest

virtual void OnAbortResourceRequest(
    unsigned id
) override

Called when the backend wants a load to abort. The user is STILL REQUIRED to call Finish on the resource response with the associated request.

function OnUserImageDropped

virtual void OnUserImageDropped(
    void * UserData,
    void * TexturePtr
)

function SetActiveSystem

virtual void SetActiveSystem(
    TWeakPtr< class FCohtmlSystemWrapper, ESPMode::ThreadSafe > SystemPtr
)

function IsCurrentlyLoading

virtual bool IsCurrentlyLoading()

function GetPathResolver

virtual FCohtmlPathResolver * GetPathResolver()

function EnsureNoResourceRequests

virtual void EnsureNoResourceRequests()

function TryGetResourcePath

virtual bool TryGetResourcePath(
    const cohtml::IAsyncResourceRequest * Request,
    EResourceProtocol & ResourceProtocol,
    FURLWithFallbacks & ResultPath
)

function OnUnrealResourceLoaded

virtual void OnUnrealResourceLoaded(
    unsigned Id,
    const FUnrealResourceTaskPtr ResourceTask
)

function OnUnrealResourceLoaded

virtual void OnUnrealResourceLoaded(
    unsigned Id,
    FCohUnrealResourcePtr & ResourcePtr,
    cohtml::IAsyncResourceResponse * Response
)

function TryConvertFilenameToTexture2DPath

virtual bool TryConvertFilenameToTexture2DPath(
    const FString & Path,
    FString & ConvertedPath
)

function TryEnqueueUnrealResource

virtual bool TryEnqueueUnrealResource(
    unsigned Id,
    const FString & RelativePath,
    cohtml::IAsyncResourceResponse * Response
)

function TryReceiveUserImage

virtual bool TryReceiveUserImage(
    FCohUnrealResourcePtr & Resource,
    cohtml::IAsyncResourceResponse * Response
)

function Tick

virtual void Tick(
    float DeltaTime
) override

function IsTickable

inline virtual bool IsTickable() const override

function IsTickableInEditor

inline virtual bool IsTickableInEditor() const override

function IsTickableWhenPaused

inline virtual bool IsTickableWhenPaused() const override

function GetStatId

virtual TStatId GetStatId() const override

function TryLoadUAssetImmediately

virtual UTexture * TryLoadUAssetImmediately(
    FSoftObjectPath RequestPathAsset
)

function GeneratePossibleURLs

FURLWithFallbacks GeneratePossibleURLs(
    const cohtml::IAsyncResourceRequest * Request
)

Public Attributes Documentation

variable UnrealResourceQueue

TMap< unsigned, FUnrealResourceTaskPtr > UnrealResourceQueue;

variable StreamableManager

FStreamableManager StreamableManager;

variable UnrealResourceLock

FCriticalSection UnrealResourceLock;

variable PendingUnrealResourceLock

FCriticalSection PendingUnrealResourceLock;

variable PendingUnrealResources

TMap< unsigned, FTexturePendingReceival > PendingUnrealResources;

variable AbortedPendingUnrealResources

TArray< FCohUnrealResourcePtr > AbortedPendingUnrealResources;

variable HTTPFileHandler

FCohtmlHTTPFileHandler HTTPFileHandler;

variable RawResourceHandler

FCohtmlRawResourceHandler RawResourceHandler;

variable FallbackURLsOverride

ICohtmlPlugin::FOnURLRequest FallbackURLsOverride;

variable System

TWeakPtr< class FCohtmlSystemWrapper, ESPMode::ThreadSafe > System;

variable PathResolver

TUniquePtr< FCohtmlPathResolver > PathResolver;

Friends

friend FCohtmlUnrealResourceLoaderTask

friend class FCohtmlUnrealResourceLoaderTask;