fix: notify request context shutdown on IO before cleanup (#14092)
This commit is contained in:
parent
d1886c5d22
commit
4c7af6a429
22 changed files with 504 additions and 387 deletions
|
@ -78,13 +78,13 @@ class Protocol : public mate::TrackableObject<Protocol> {
|
|||
net::URLRequest* request,
|
||||
net::NetworkDelegate* network_delegate) const override {
|
||||
RequestJob* request_job = new RequestJob(request, network_delegate);
|
||||
request_job->SetHandlerInfo(isolate_, request_context_.get(), handler_);
|
||||
request_job->SetHandlerInfo(isolate_, request_context_, handler_);
|
||||
return request_job;
|
||||
}
|
||||
|
||||
private:
|
||||
v8::Isolate* isolate_;
|
||||
scoped_refptr<net::URLRequestContextGetter> request_context_;
|
||||
net::URLRequestContextGetter* request_context_;
|
||||
Protocol::Handler handler_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(CustomProtocolHandler);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue