You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-11-23 21:34:53 +02:00
Update to CEF 90.5.4
This commit is contained in:
@@ -59,8 +59,6 @@ uses
|
||||
type
|
||||
TCefCookieManagerRef = class(TCefBaseRefCountedRef, ICefCookieManager)
|
||||
protected
|
||||
procedure SetSupportedSchemes(const schemes: TStrings; include_defaults: boolean; const callback: ICefCompletionCallback);
|
||||
procedure SetSupportedSchemesProc(const schemes: TStrings; include_defaults: boolean; const callback: TCefCompletionCallbackProc);
|
||||
function VisitAllCookies(const visitor: ICefCookieVisitor): Boolean;
|
||||
function VisitAllCookiesProc(const visitor: TCefCookieVisitorProc): Boolean;
|
||||
function VisitUrlCookies(const url: ustring; includeHttpOnly: Boolean; const visitor: ICefCookieVisitor): Boolean;
|
||||
@@ -173,39 +171,6 @@ begin
|
||||
TCefFastSetCookieCallback.Create(callback));
|
||||
end;
|
||||
|
||||
procedure TCefCookieManagerRef.SetSupportedSchemes(const schemes : TStrings;
|
||||
include_defaults : boolean;
|
||||
const callback : ICefCompletionCallback);
|
||||
var
|
||||
TempSL : ICefStringList;
|
||||
TempHandle : TCefStringList;
|
||||
begin
|
||||
try
|
||||
if (schemes <> nil) and (schemes.count > 0) then
|
||||
begin
|
||||
TempSL := TCefStringListOwn.Create;
|
||||
TempSL.AddStrings(schemes);
|
||||
TempHandle := TempSL.Handle;
|
||||
end
|
||||
else
|
||||
TempHandle := nil;
|
||||
|
||||
PCefCookieManager(FData)^.set_supported_schemes(PCefCookieManager(FData),
|
||||
TempHandle,
|
||||
ord(include_defaults),
|
||||
CefGetData(callback));
|
||||
finally
|
||||
TempSL := nil;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TCefCookieManagerRef.SetSupportedSchemesProc(const schemes : TStrings;
|
||||
include_defaults : boolean;
|
||||
const callback : TCefCompletionCallbackProc);
|
||||
begin
|
||||
SetSupportedSchemes(schemes, include_defaults, TCefFastCompletionCallback.Create(callback));
|
||||
end;
|
||||
|
||||
class function TCefCookieManagerRef.UnWrap(data: Pointer): ICefCookieManager;
|
||||
begin
|
||||
if (data <> nil) then
|
||||
|
||||
Reference in New Issue
Block a user