1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2024-11-24 08:02:15 +02:00

Adapted ConsoleBrowser and DLLBrowser to use uCEFApplicationCore

- Added more comments to TChromiumCore.VisitAllCookies and TChromiumCore.VisitURLCookies
This commit is contained in:
Salvador Díaz Fau 2019-11-11 11:38:01 +01:00
parent 7ebcdf086a
commit b9e22bd870
4 changed files with 11 additions and 5 deletions

View File

@ -45,7 +45,7 @@ uses
{$ELSE}
Windows,
{$ENDIF}
uCEFApplication,
uCEFApplicationCore,
uCEFConstants;
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
@ -54,7 +54,7 @@ uses
// To test this demo you need to build the ConsoleLoader, OSRDLLBrowser and OSRSubProcess projects found in this directory.
begin
GlobalCEFApp := TCefApplication.Create;
GlobalCEFApp := TCefApplicationCore.Create;
// The main process and the subprocess *MUST* have the same FrameworkDirPath, ResourcesDirPath,
// LocalesDirPath, cache, cookies and UserDataPath paths

View File

@ -45,7 +45,7 @@ uses
{$ELSE}
Windows,
{$ENDIF}
uCEFApplication;
uCEFApplicationCore;
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}
@ -53,7 +53,7 @@ uses
// To test this demo you need to build the CEF4DelphiLoader, DLLBrowser and SubProcess projects found in this directory.
begin
GlobalCEFApp := TCefApplication.Create;
GlobalCEFApp := TCefApplicationCore.Create;
// The main process and the subprocess *MUST* have the same FrameworkDirPath, ResourcesDirPath,
// LocalesDirPath, cache, cookies and UserDataPath paths

View File

@ -2531,6 +2531,9 @@ end;
// TChromiumCore.VisitAllCookies triggers the TChromiumCore.OnCookiesVisited event for each cookie
// aID is an optional parameter to identify which VisitAllCookies call has triggered the
// OnCookiesVisited event.
// TChromiumCore.OnCookiesVisited may not be triggered if the cookie store is empty but the
// TChromium.OnCookieVisitorDestroyed event will always be triggered to signal when the browser
// when the visit is over.
function TChromiumCore.VisitAllCookies(aID : integer) : boolean;
var
TempManager : ICefCookieManager;
@ -2555,6 +2558,9 @@ end;
// TChromiumCore.VisitURLCookies triggers the TChromiumCore.OnCookiesVisited event for each cookie
// aID is an optional parameter to identify which VisitURLCookies call has triggered the
// OnCookiesVisited event.
// TChromiumCore.OnCookiesVisited may not be triggered if the cookie store is empty but the
// TChromium.OnCookieVisitorDestroyed event will always be triggered to signal when the browser
// when the visit is over.
function TChromiumCore.VisitURLCookies(const url : ustring; includeHttpOnly : boolean; aID : integer) : boolean;
var
TempManager : ICefCookieManager;

View File

@ -2,7 +2,7 @@
"UpdateLazPackages" : [
{
"ForceNotify" : true,
"InternalVersion" : 62,
"InternalVersion" : 63,
"Name" : "cef4delphi_lazarus.lpk",
"Version" : "78.3.1.0"
}