commit | 3e01be57981803353b642197bc7ad5c276b8395f | [log] [tgz] |
---|---|---|
author | Hiroki Nakagawa <nhiroki@chromium.org> | Wed Mar 14 07:43:46 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Mar 14 07:43:46 2018 |
tree | b61b40313bd2cb22be1fc404758758ff1575e6b0 | |
parent | 883ad990be2af1bc0e2111906d1d16b9cb7c6280 [diff] |
Worker: Make worklets' module loading classes reusable for workers As a preparation for module loading support for workers, this CL does mainly 2 things: - This renames WorkletModuleScriptFetcher to WorkerOrWorkletModuleScriptFetcher, and WorkletModuleResponsesMapProxy to WorkerOrWorkletModuleFetchCoordinatorProxy. This enables workers can reuse worklets' module loading classes. - This introduces WorkerOrWorkletModuleFetchCoordinator interface. Implementation of the interface is expected to fetch module scripts via DocumentModuleScriptFetcher, to manage inflight requests, and to notify completions of the requests to WorkerOrWorkletModuleScriptFetcher on the worker thread. For worklets, WorkletModuleResponsesMap inherits the interface. For workers, following CLs introduce a new class, WorkerModuleFetchCoordinator, because WorkletModuleResponsesMap have custom fetch logic for caching and it's not reusable for workers. See the design doc for details: https://docs.google.com/document/d/1IMGWAK7Wq37mLehwkbysNRBBnhQBo3z2MbYyMkViEnY/edit#heading=h.637avx8i5qtn Bug: 680046 Change-Id: Iba7916bb9b5aefbc8c695ff9865bcbe756801412 Reviewed-on: https://chromium-review.googlesource.com/958801 Reviewed-by: Kouhei Ueno <kouhei@chromium.org> Reviewed-by: Matt Falkenhagen <falken@chromium.org> Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org> Cr-Commit-Position: refs/heads/master@{#543026}
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 .