Move CreateDefaultURLLoaderFactoryBundle to anonymous namespace.
After removing blink::Platform::CreateDefaultURLLoaderFactory method in r783649, there are no more callers of CreateNetworkURLLoaderFactory and CreateDefaultURLLoaderFactoryBundle _inside_ RendererBlinkPlatformImpl. Therefore, this CL moves CreateNetworkURLLoaderFactory and CreateDefaultURLLoaderFactoryBundle into an anonymous namespace in render_frame_impl.cc, where their only remaining caller is. This helps (slightly) in two ways: 1. It helps with encapsulation - after the CL, no headers expose an API for getting the origin-agnostic/process-wide factory via CreateDefaultURLLoaderFactoryBundle. 2. It highlights that the helpers are unrelated from RendererBlinkPlatformImpl - even before this CL they could have been |static| methods. Bug: 1098938 Change-Id: I7a13c4d4fdfaaedda25acfa7f40404d307a2b537 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2276227Reviewed-by:Alex Moshchuk <alexmos@chromium.org> Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org> Cr-Commit-Position: refs/heads/master@{#784838}
Showing
Please register or sign in to comment