commit | 4538080ac41577a3e48cd0b07eaab634e47ffe28 | [log] [tgz] |
---|---|---|
author | Wojciech Dzierżanowski <wdzierzanowski@opera.com> | Mon Apr 29 14:50:32 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Apr 29 14:50:32 2019 |
tree | 24a5611ce306de78c7a48ae0cc3793a9f9a9bab1 | |
parent | fe39afc601bd4e02df736b219f9c30069c564394 [diff] |
Postpone binding of mojom::DataReductionProxy Each Web Worker runs on a separate worker thread, and each worker has an associated URLLoaderThrottleProvider. When spawning a nested worker, the outer worker's throttle provider is cloned on the outer worker's thread and then used on the inner worker's thread. To accomodate this scenario: - Postpone the creation of DataReductionProxyThrottleManager until a moment when we are running on the target thread. This makes sure the DataReductionProxyThrottleConfigObserver binding is used on the same thread that it's created on. - Postpone the binding of DataReductionProxy until a moment when we are running on the target thread. DataReductionProxyPtrInfo serves as a holder of the interface request that can move between threads. Bug: 942011 Change-Id: Ieed17fb499bbcb0545e3e0323f751c1ea55a33d5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1565873 Reviewed-by: Nico Weber <thakis@chromium.org> Reviewed-by: Tarun Bansal <tbansal@chromium.org> Commit-Queue: Wojciech Dzierżanowski <wdzierzanowski@opera.com> Cr-Commit-Position: refs/heads/master@{#654846}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .