Introduce a SharedURLLoaderFactory wrapper for URLLoaderFactoryGetter
This CL changed the return type of |URLLoaderFactoryGetter::GetNetworkFactory()| to |scoped_refptr<SharedURLLoaderFactory>| in an effort to reduce the usage of raw pointers. The returned |SharedURLLoaderFactory| is basically a wrapper around |URLLoaderFactoryGetter|, which holds a reference to |URLLoaderFactoryGetter| and handles reconnection after crash. It's safe to use the wrapper after the storage partition has gone, in which case the url requests will be silently dropped. Bug: 796425 Change-Id: Ie89b7f8933bc6e1c274cf42bc6bd2265c50c37d4 Reviewed-on: https://chromium-review.googlesource.com/935284 Commit-Queue: Chong Zhang <chongz@chromium.org> Reviewed-by:Matt Menke <mmenke@chromium.org> Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org> Cr-Commit-Position: refs/heads/master@{#540346}
Showing
Please register or sign in to comment