Hey, guys.
I'm working on Chromium fork for Android that filters some requests.
For this in `chrome_network_delegate.cc` for some resources i return `net::ERR_BLOCKED_BY_ADMINISTRATOR`.
It works but now i need to know iframe and all parent iframes URLs to define if i need to filter request or not.
So i try to get RenderFrameHost instance for ResourceRequestInfo
`chrome_network_delegate.cc`:
```
...
int ChromeNetworkDelegate::OnBeforeStartTransaction(
...
const ResourceRequestInfo* info = ResourceRequestInfo::ForRequest(request);
int render_process_id, render_frame_id;
if (info->GetAssociatedRenderFrame(&render_process_id, &render_frame_id)) {
LOG(WARNING) << "Adblock: got render_process_id=" << render_process_id
<< ", render_frame_id=" << render_frame_id;
content::RenderFrameHost* frameHost = content::RenderFrameHost::FromID(render_process_id, render_frame_id); //
LOG(WARNING) << "Filtering: relates to frame " << frameHost->GetFrameName();
...
```
```
```
What can i do?
I think i could send to UI thread using
tasks. But then i have to wait here and in general it does not sound good to do some work in UI thread.
Any specific reason to run `FromID` on UI thread?
Any thoughts are higly appreciated.