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 3.3325.1755.g7c74b17
This commit is contained in:
@@ -85,7 +85,7 @@ implementation
|
||||
|
||||
uses
|
||||
uCEFMiscFunctions, uCEFLibFunctions, uCEFCompletionCallback, uCEFDeleteCookiesCallback,
|
||||
uCEFSetCookieCallback, uCEFCookieVisitor;
|
||||
uCEFSetCookieCallback, uCEFCookieVisitor, uCEFStringList;
|
||||
|
||||
class function TCefCookieManagerRef.New(const path : ustring;
|
||||
persistSessionCookies : Boolean;
|
||||
@@ -204,32 +204,17 @@ end;
|
||||
|
||||
procedure TCefCookieManagerRef.SetSupportedSchemes(const schemes: TStrings; const callback: ICefCompletionCallback);
|
||||
var
|
||||
TempSL : TCefStringList;
|
||||
i : Integer;
|
||||
TempString : TCefString;
|
||||
TempSL : ICefStringList;
|
||||
begin
|
||||
TempSL := nil;
|
||||
|
||||
try
|
||||
try
|
||||
if (schemes <> nil) and (schemes.Count > 0) then
|
||||
begin
|
||||
TempSL := cef_string_list_alloc();
|
||||
TempSL := TCefStringListOwn.Create;
|
||||
TempSL.AddStrings(schemes);
|
||||
|
||||
for i := 0 to schemes.Count - 1 do
|
||||
begin
|
||||
TempString := CefString(schemes[i]);
|
||||
cef_string_list_append(TempSL, @TempString);
|
||||
end;
|
||||
|
||||
PCefCookieManager(FData).set_supported_schemes(PCefCookieManager(FData), TempSL, CefGetData(callback));
|
||||
end;
|
||||
except
|
||||
on e : exception do
|
||||
if CustomExceptionHandler('TCefCookieManagerRef.SetSupportedSchemes', e) then raise;
|
||||
end;
|
||||
PCefCookieManager(FData).set_supported_schemes(PCefCookieManager(FData),
|
||||
TempSL.Handle,
|
||||
CefGetData(callback));
|
||||
finally
|
||||
if (TempSL <> nil) then cef_string_list_free(TempSL);
|
||||
TempSL := nil;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user