Conversion blink::WebURLRequest to network::ResourceRequest

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Conversion blink::WebURLRequest to network::ResourceRequest

Postby nkanand » Sat Oct 03, 2020 12:11 am

Is there a viable conversion from blink::WebURLRequest to network::ResourceRequest?

Thanks in advance,
nkanand
Techie
 
Posts: 18
Joined: Wed Aug 05, 2020 11:46 pm

Re: Conversion blink::WebURLRequest to network::ResourceRequ

Postby magreenblatt » Sat Oct 03, 2020 9:33 am

Where, and for what purpose?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Conversion blink::WebURLRequest to network::ResourceRequ

Postby nkanand » Sat Oct 03, 2020 11:54 am

We are doing custom processing within pepper flash hooks.
We have added custom implementation within: PepperURLLoaderHost::DidReceiveResponse. The method gets invoked with WebURLResponse. Within the method we want to mimic the initial request and override based on certain match conditions.
Earlier WebURLRequest would just suffice. Looks like they are deprecating WebURLRequest in favor of network::ResourceRequest.

Is there an acceptable way to get hold of the initial request as a ResourceRequest object in PepperURLLoaderHost::DidReceiveResponse (or) convert blink::WebURLRequest to network::ResourceRequest?
nkanand
Techie
 
Posts: 18
Joined: Wed Aug 05, 2020 11:46 pm

Re: Conversion blink::WebURLRequest to network::ResourceRequ

Postby magreenblatt » Sat Oct 03, 2020 12:58 pm

I suggest looking at the WebURLRequest implementation, or finding an example CL in Chromium that converts from WebURLRequest to ResourceRequest usage. You can search the code at https://source.chromium.org/chromium
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 45 guests