You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-06-12 22:07:39 +02:00
Update to CEF 122.1.8
This commit is contained in:
@ -28,6 +28,7 @@ type
|
||||
procedure OnAlreadyRunningAppRelaunch(const commandLine: ICefCommandLine; const current_directory: ustring; var aResult: boolean); virtual; abstract;
|
||||
procedure OnScheduleMessagePumpWork(const delayMs: Int64); virtual; abstract;
|
||||
procedure GetDefaultClient(var aClient : ICefClient); virtual;
|
||||
procedure GetDefaultRequestContextHandler(var aRequestContextHandler : ICefRequestContextHandler); virtual;
|
||||
|
||||
procedure RemoveReferences; virtual; abstract;
|
||||
|
||||
@ -45,6 +46,7 @@ type
|
||||
procedure OnAlreadyRunningAppRelaunch(const commandLine: ICefCommandLine; const current_directory: ustring; var aResult: boolean); override;
|
||||
procedure OnScheduleMessagePumpWork(const delayMs: Int64); override;
|
||||
procedure GetDefaultClient(var aClient : ICefClient); override;
|
||||
procedure GetDefaultRequestContextHandler(var aRequestContextHandler : ICefRequestContextHandler); override;
|
||||
|
||||
procedure RemoveReferences; override;
|
||||
|
||||
@ -168,6 +170,11 @@ begin
|
||||
aClient := nil;
|
||||
end;
|
||||
|
||||
procedure TCefBrowserProcessHandlerOwn.GetDefaultRequestContextHandler(var aRequestContextHandler : ICefRequestContextHandler);
|
||||
begin
|
||||
aRequestContextHandler := nil;
|
||||
end;
|
||||
|
||||
|
||||
// TCefCustomBrowserProcessHandler
|
||||
|
||||
@ -257,4 +264,15 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TCefCustomBrowserProcessHandler.GetDefaultRequestContextHandler(var aRequestContextHandler : ICefRequestContextHandler);
|
||||
begin
|
||||
try
|
||||
if (FCefApp <> nil) then
|
||||
IApplicationCoreEvents(FCefApp).doGetDefaultRequestContextHandler(aRequestContextHandler);
|
||||
except
|
||||
on e : exception do
|
||||
if CustomExceptionHandler('TCefCustomBrowserProcessHandler.GetDefaultRequestContextHandler', e) then raise;
|
||||
end;
|
||||
end;
|
||||
|
||||
end.
|
||||
|
Reference in New Issue
Block a user