Description[ServiceWorker] Refactor the codes for releasing the resources for streaming in ServiceWorkerURLRequestJob.
As michaeln@ mentioned in https://codereview.chromium.org/832813002/, Kill() may not be called and provider_host_ may be deleted before Kill() is called.
So this change
- adds streaming_version_ property to ServiceWorkerURLRequestJob.
- adds ClearStream() method to releases the resources for streaming.
- calls ClearStream() from both Kill() and the destructor.
BUG=445775
Committed: https://crrev.com/e9520537ba1d85df2273c80de2c50aea0ab8ee72
Cr-Commit-Position: refs/heads/master@{#310944}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|