fix: crash in webRequest due to unsafe static_cast

upstream was changed to wrap the network delegate

see https://chromium.googlesource.com/chromium/src/+/69.0.3497.106/services/network/network_context.cc#948
This commit is contained in:
Jeremy Apthorp 2018-10-08 15:04:45 -07:00
parent e548ed1a6e
commit a71755e1b6
3 changed files with 9 additions and 5 deletions

View file

@ -26,6 +26,7 @@ class RequireCTDelegate;
namespace atom {
class AtomBrowserContext;
class AtomNetworkDelegate;
class AtomURLRequestJobFactory;
class ResourceContext;
@ -44,6 +45,8 @@ class URLRequestContextGetter : public net::URLRequestContextGetter {
return top_job_factory_.get();
}
AtomNetworkDelegate* network_delegate() const { return network_delegate_; }
private:
friend class AtomBrowserContext;
@ -99,6 +102,7 @@ class URLRequestContextGetter : public net::URLRequestContextGetter {
URLRequestContextGetter::Handle* context_handle_;
net::URLRequestContext* url_request_context_;
AtomNetworkDelegate* network_delegate_;
content::ProtocolHandlerMap protocol_handlers_;
content::URLRequestInterceptorScopedVector protocol_interceptors_;
bool context_shutting_down_;