UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CEFResourceContextHandler.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6
7#if WITH_CEF3
8
10
11#include "CEFLibCefIncludes.h"
12
13
14FString ResourceTypeToString(const CefRequest::ResourceType& Type);
15
17
24{
25public:
26
29
30public:
31
32 // CefResourceRequestHandler Interface
33 virtual CefResourceRequestHandler::ReturnValue OnBeforeResourceLoad(
37#if CEF_VERSION_MAJOR < 128
38 CefRefPtr<CefRequestCallback> Callback) override;
39#else
40 CefRefPtr<CefCallback> Callback) override;
41#endif
42
43 // CefRequestContextHandler Interface
48 bool is_navigation,
49 bool is_download,
51 bool& disable_default_handling) override;
52
53
54public:
56 {
57 return BeforeResourceLoadDelegate;
58 }
59
60private:
62 FOnBeforeContextResourceLoadDelegate BeforeResourceLoadDelegate;
63
66
67 // Include the default reference counting implementation.
69};
70
71#endif
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition WebBrowserSingleton.h:52