Don't store RequestContext in WorkerScriptLoader
WorkerScriptLoader doesn't need to store it. The setter is always called right before kicking the loader. We should just pass it via the argument of the Load.* method. As a bonus, inlined CreateResourceRequest(). It reduces copy and makes the code simpler given that after removing SetRequestContext() call from it, it's small enough to be inlined. Bug: Change-Id: I8fe423921cad2d2a40f213e7310e8e991ae52825 Reviewed-on: https://chromium-review.googlesource.com/544418Reviewed-by:Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Takeshi Yoshino <tyoshino@chromium.org> Cr-Commit-Position: refs/heads/master@{#481823}
Showing
Please register or sign in to comment