Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Update

Post Reply
User avatar
Uefi1
Posts: 43
Joined: Tue Aug 24, 2021 1:58 pm

Update

Post by Uefi1 »

After update t have problem the example doesn't work either

Code: Select all

procedure th.Chromium1BeforeResourceLoad(Sender: TObject;
  const browser: ICefBrowser; const frame: ICefFrame;
  const request: ICefRequest; const callback: ICefRequestCallback;
  out Result: TCefReturnValue);
var
  map: ICefStringMultimap;
begin
    map := TCefStringMultimapOwn.Create;
    request.GetHeaderMap(map);
    map.Append('User-Agent','Mozzilla......');
    request.SetHeaderMap(map);
    callback.Cont(true);
end;
 
Undeclared identifier: 'ICefRequestCallback'


How am i going to change the headers now?
User avatar
salvadordf
Posts: 4580
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Update

Post by salvadordf »

That's one of the breaking changes that CEF had in the last update.
Read the last post in the "BREAKING CHANGES" thread for all the details.
User avatar
Uefi1
Posts: 43
Joined: Tue Aug 24, 2021 1:58 pm

Re: Update

Post by Uefi1 »

How am i going to change the headers now?
User avatar
salvadordf
Posts: 4580
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Update

Post by salvadordf »

You need to change the code in your application.
Replace the parameter types in those events.
Post Reply