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.
CEF4Delphi doesn't have any demo that uses TCefUrlRequestClientOwn and right now I'm very busy to create one.
Please, modify ResponseFilterBrowser to your needs according to the comments in my previous post.
Nice work Salvador! I long thinking about how to optimize your code for yourself, solve in Chromium1GetResourceResponseFilter to specify the my resource in FStream, FRscSize := FStream.Size; after in Filter_OnFilter
if (data_out <> nil) then
begin
data_out_written := min(data_in_size, data_out_size);
if FStream.Position<FRscSize then
FStream.ReadData(data_out,data_out_written);
end;
if not(FRscCompleted) and (FRscSize <> -1) and (FRscSize = FStream.Position) then
begin
FRscCompleted := PostMessage(Handle, STREAM_COPY_COMPLETE, 0, 0);
aResult := RESPONSE_FILTER_DONE;
end
else
aResult := RESPONSE_FILTER_NEED_MORE_DATA;
Oh sorry, I hurried) after replacing the pictures, through some time all page becomes white.
Either I did wrong, or the resources in this place cannot be replaced.
Use a custom HTTP header to download the resources ignoring the cache. The filter only works if your app downloads the resources, not if it reads them from cache.
Use TChromium.CustomHeaderName and TChromium.CustomHeaderValue like this :
[0808/131537.947:ERROR:url_request_context_getter_impl.cc(129)] Cannot use V8 Proxy resolver in single process mode.
[0808/131538.514:WARNING:histograms.cc(40)] Started multiple compositor clients (Browser, Renderer) in one process. Some metrics will be disabled.
[0808/131539.095:WARNING:angle_platform_impl.cc(59)] compileToBinary(228):
C:\fakepath(46,8-58): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
C:\fakepath(54,9-43): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
[0808/131539.116:WARNING:angle_platform_impl.cc(59)] compileToBinary(228):
C:\fakepath(29,8-58): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
C:\fakepath(37,9-43): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
[0808/131541.440:WARNING:angle_platform_impl.cc(59)] compileToBinary(228):
C:\fakepath(46,8-58): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
C:\fakepath(54,9-43): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
[0808/131541.504:WARNING:angle_platform_impl.cc(59)] compileToBinary(228):
C:\fakepath(65,10-42): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
C:\fakepath(87,10-42): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them