forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
service worker: Remove ServiceWorkerNavigationLoader's fallback case.
This is a refactoring CL only. Before this CL, we created a ServiceWorkerNavigationLoader always, and then called methods on it about whether to forward to a service worker or fall back to network. But there is no need to create the loader just to fall back to network. This CL changes things to only create the loader once we decided to forward to a service worker. As for the linked bugs, much of the complexity was probably due to the old non-S13nSW code path, and I encountered this while trying to move things to the UI thread. Bug: 926114, 824858 Change-Id: I320ebcd9401c283653bc58ce0c2049c62c1e5139 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1690572 Commit-Queue: Matt Falkenhagen <falken@chromium.org> Reviewed-by: Kenichi Ishibashi <bashi@chromium.org> Cr-Commit-Position: refs/heads/master@{#675890}
- Loading branch information
Showing
8 changed files
with
194 additions
and
418 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
239 changes: 107 additions & 132 deletions
239
content/browser/service_worker/service_worker_controllee_request_handler.cc
Large diffs are not rendered by default.
Oops, something went wrong.
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.