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 90.5.4
This commit is contained in:
@ -83,13 +83,13 @@ type
|
||||
function HasExtension(const extension_id: ustring): boolean;
|
||||
function GetExtensions(const extension_ids: TStringList): boolean;
|
||||
function GetExtension(const extension_id: ustring): ICefExtension;
|
||||
function GetMediaRouter: ICefMediaRouter;
|
||||
function GetMediaRouter(const callback: ICefCompletionCallback): ICefMediaRouter;
|
||||
|
||||
public
|
||||
class function UnWrap(data: Pointer): ICefRequestContext;
|
||||
class function Global: ICefRequestContext;
|
||||
class function New(const settings: PCefRequestContextSettings; const handler: ICefRequestContextHandler = nil): ICefRequestContext; overload;
|
||||
class function New(const aCache, aAcceptLanguageList : ustring; aPersistSessionCookies, aPersistUserPreferences, aIgnoreCertificateErrors : boolean; const handler: ICefRequestContextHandler = nil): ICefRequestContext; overload;
|
||||
class function New(const aCache, aAcceptLanguageList, aCookieableSchemesList : ustring; aCookieableSchemesExcludeDefaults, aPersistSessionCookies, aPersistUserPreferences, aIgnoreCertificateErrors : boolean; const handler: ICefRequestContextHandler = nil): ICefRequestContext; overload;
|
||||
class function Shared(const other: ICefRequestContext; const handler: ICefRequestContextHandler): ICefRequestContext;
|
||||
end;
|
||||
|
||||
@ -173,21 +173,25 @@ begin
|
||||
Result := UnWrap(cef_request_context_create_context(settings, CefGetData(handler)));
|
||||
end;
|
||||
|
||||
class function TCefRequestContextRef.New(const aCache : ustring;
|
||||
const aAcceptLanguageList : ustring;
|
||||
aPersistSessionCookies : boolean;
|
||||
aPersistUserPreferences : boolean;
|
||||
aIgnoreCertificateErrors : boolean;
|
||||
const handler : ICefRequestContextHandler): ICefRequestContext;
|
||||
class function TCefRequestContextRef.New(const aCache : ustring;
|
||||
const aAcceptLanguageList : ustring;
|
||||
const aCookieableSchemesList : ustring;
|
||||
aCookieableSchemesExcludeDefaults : boolean;
|
||||
aPersistSessionCookies : boolean;
|
||||
aPersistUserPreferences : boolean;
|
||||
aIgnoreCertificateErrors : boolean;
|
||||
const handler : ICefRequestContextHandler): ICefRequestContext;
|
||||
var
|
||||
TempSettings : TCefRequestContextSettings;
|
||||
begin
|
||||
TempSettings.size := SizeOf(TCefRequestContextSettings);
|
||||
TempSettings.cache_path := CefString(aCache);
|
||||
TempSettings.persist_session_cookies := Ord(aPersistSessionCookies);
|
||||
TempSettings.persist_user_preferences := Ord(aPersistUserPreferences);
|
||||
TempSettings.ignore_certificate_errors := Ord(aIgnoreCertificateErrors);
|
||||
TempSettings.accept_language_list := CefString(aAcceptLanguageList);
|
||||
TempSettings.size := SizeOf(TCefRequestContextSettings);
|
||||
TempSettings.cache_path := CefString(aCache);
|
||||
TempSettings.persist_session_cookies := Ord(aPersistSessionCookies);
|
||||
TempSettings.persist_user_preferences := Ord(aPersistUserPreferences);
|
||||
TempSettings.ignore_certificate_errors := Ord(aIgnoreCertificateErrors);
|
||||
TempSettings.accept_language_list := CefString(aAcceptLanguageList);
|
||||
TempSettings.cookieable_schemes_list := CefString(aCookieableSchemesList);
|
||||
TempSettings.cookieable_schemes_exclude_defaults := Ord(aCookieableSchemesExcludeDefaults);
|
||||
|
||||
Result := UnWrap(cef_request_context_create_context(@TempSettings, CefGetData(handler)));
|
||||
end;
|
||||
@ -309,9 +313,9 @@ begin
|
||||
Result := TCefExtensionRef.UnWrap(PCefRequestContext(FData)^.get_extension(PCefRequestContext(FData), @TempID));
|
||||
end;
|
||||
|
||||
function TCefRequestContextRef.GetMediaRouter: ICefMediaRouter;
|
||||
function TCefRequestContextRef.GetMediaRouter(const callback: ICefCompletionCallback): ICefMediaRouter;
|
||||
begin
|
||||
Result := TCefMediaRouterRef.UnWrap(PCefRequestContext(FData)^.get_media_router(PCefRequestContext(FData)));
|
||||
Result := TCefMediaRouterRef.UnWrap(PCefRequestContext(FData)^.get_media_router(PCefRequestContext(FData), CefGetData(callback)));
|
||||
end;
|
||||
|
||||
function TCefRequestContextRef.RegisterSchemeHandlerFactory(const schemeName : ustring;
|
||||
|
Reference in New Issue
Block a user