-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ServiceWorkerImportedScriptUpdateCheck uses throttles on the browser
Previously it doesn't care about the throttles, but it means the update requests will be missed from the embedder. This CL is to use ThrottlingURLLoader in ServiceWorkerSingleScriptUpdateChecker, and also this makes ServiceWorkerNewScriptLoader be able to inherit the throttling loader if it's resuming a cache writer. Now throttles work only on the UI thread, so this CL introduces a thin wrapper to invoke method calls on the UI thread. After this CL lands, I'm going to add code to send the paused state to the renderer as a resource override so that the renderer doesn't create ThrottlingURLLoader for the request which is already using ThrottlingURLLoader in the browser process. Bug: 988957 Change-Id: I32e19d3cd7071dddc056ffdab2bfad36679d5b0f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1728889 Auto-Submit: Makoto Shimazu <shimazu@chromium.org> Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Reviewed-by: Josh Karlin <jkarlin@chromium.org> Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org> Commit-Queue: Makoto Shimazu <shimazu@chromium.org> Cr-Commit-Position: refs/heads/master@{#686419}
- Loading branch information
1 parent
439397d
commit f47a94c
Showing
11 changed files
with
316 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.