DescriptionIntroduce FetchEventPreloadHandle to pass the preload response to FetchEvent.
FetchEvent.navigationPreload will be implemented in the following steps.
[1/4] Introduce FetchEventPreloadHandle to pass the preload response to FetchEvent.
https://codereview.chromium.org/2417793002/ This CL.
[2/4] Implement ServiceWorkerFetchDispatcher::MaybeStartNavigationPreload().
https://codereview.chromium.org/2410333006/
[3/4] Implement FetchEvent.navigationPreload.
https://codereview.chromium.org/2416843002/
[4/4] Add browser tests for NavigationPreload.
https://codereview.chromium.org/2413643005/
This CL introduces FetchEventPreloadHandle in fetch_event_dispatcher.mojom.
If the NavigationPreload feature is enabled:
- ServiceWorkerURLRequestJob calls ServiceWorkerFetchDispatcher::
MaybeStartNavigationPreload() even if the worker is not started yet.
- ServiceWorkerFetchDispatcher::MaybeStartNavigationPreload() will start the
navigation preload request and create a FetchEventPreloadHandle.
https://codereview.chromium.org/2410333006/ implements this method.
- The FetchEventPreloadHandle will be passed to the service worker when
DispatchFetchEvent() dispatches the FetchEvent.
- ServiceWorkerContextClient::FetchEventDispatcherImpl receives the
FetchEventPreloadHandle and will pass it to FetchEvent.
https://codereview.chromium.org/2416843002/ implements this logic.
BUG=649558
Committed: https://crrev.com/fc9f9dc28b5291e0582dc1fcb2fb35aa0409f34f
Cr-Commit-Position: refs/heads/master@{#425927}
Patch Set 1 #Patch Set 2 : rebase #
Total comments: 2
Patch Set 3 : incorporated dchecng's comment #Dependent Patchsets: Messages
Total messages: 32 (22 generated)
|