feat: migrate protocol module to NetworkService (Part 8) (#18361)

* Add ProxyingURLLoaderFactory

* Intercept file:// protocol to support asar archives
This commit is contained in:
Cheng Zhao 2019-05-22 10:43:37 +09:00 committed by GitHub
parent 287345c778
commit e1a2cc7f36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 145 additions and 0 deletions

View file

@ -167,6 +167,16 @@ class AtomBrowserClient : public content::ContentBrowserClient,
int render_process_id,
int render_frame_id,
NonNetworkURLLoaderFactoryMap* factories) override;
bool WillCreateURLLoaderFactory(
content::BrowserContext* browser_context,
content::RenderFrameHost* frame,
int render_process_id,
bool is_navigation,
bool is_download,
const url::Origin& request_initiator,
network::mojom::URLLoaderFactoryRequest* factory_request,
network::mojom::TrustedURLLoaderHeaderClientPtrInfo* header_client,
bool* bypass_redirect_checks) override;
// content::RenderProcessHostObserver:
void RenderProcessHostDestroyed(content::RenderProcessHost* host) override;