UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CEFBrowserApp.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
#include "
Misc/ScopeLock.h
"
7
8
#if WITH_CEF3
9
10
#include "
CEFLibCefIncludes.h
"
11
12
DECLARE_LOG_CATEGORY_EXTERN
(
LogCEFBrowser
,
Log
,
All
);
13
17
class
FCEFBrowserApp
:
public
CefApp
,
18
public
CefBrowserProcessHandler
19
{
20
public
:
21
25
FCEFBrowserApp
();
26
28
bool
TickMessagePump
(
float
DeltaTime,
bool
bForce
);
29
30
private
:
31
// CefApp methods.
32
virtual
CefRefPtr<CefBrowserProcessHandler>
GetBrowserProcessHandler
()
override
{
return
this
; }
33
virtual
void
OnBeforeCommandLineProcessing
(
const
CefString
&
ProcessType
,
CefRefPtr< CefCommandLine >
CommandLine
)
override
;
34
// CefBrowserProcessHandler methods:
35
virtual
void
OnBeforeChildProcessLaunch
(
CefRefPtr<CefCommandLine>
CommandLine
)
override
;
36
#if CEF_VERSION_MAJOR < 128
37
virtual
void
OnScheduleMessagePumpWork
(
int64
delay_ms
)
override
;
38
#else
39
virtual
void
OnScheduleMessagePumpWork
(
int64_t
delay_ms
)
override
;
40
virtual
bool
OnAlreadyRunningAppRelaunch
(
CefRefPtr<CefCommandLine>
CommandLine
,
const
CefString
&
CurrentDirectory
)
override
;
41
#endif
42
43
// Include the default reference counting implementation.
44
IMPLEMENT_REFCOUNTING
(
FCEFBrowserApp
);
45
46
// Lock for access MessagePumpCountdown
47
FCriticalSection
MessagePumpCountdownCS
;
48
// Countdown in milliseconds until CefDoMessageLoopWork is called. Updated by OnScheduleMessagePumpWork
49
int64
MessagePumpCountdown
;
50
};
51
#endif
EBTBranchAction::All
@ All
CEFLibCefIncludes.h
CoreMinimal.h
int64
FPlatformTypes::int64 int64
A 64-bit signed integer.
Definition
Platform.h:1127
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
FCriticalSection
UE::FPlatformRecursiveMutex FCriticalSection
Definition
CriticalSection.h:53
DECLARE_LOG_CATEGORY_EXTERN
#define DECLARE_LOG_CATEGORY_EXTERN(CategoryName, DefaultVerbosity, CompileTimeVerbosity)
Definition
LogMacros.h:361
EPrintStaleReferencesOptions::Log
@ Log
ScopeLock.h
ERequestedCultureOverrideLevel::CommandLine
@ CommandLine
Engine
Source
Runtime
WebBrowser
Private
CEF
CEFBrowserApp.h
Generated by
1.9.8