Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Issue 2417793002: Introduce FetchEventPreloadHandle to pass the preload response to FetchEvent. (Closed)

Created:
4 years, 2 months ago by horo
Modified:
4 years, 2 months ago
Reviewers:
falken, dcheng
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, viettrungluu+watch_chromium.org, qsr+mojo_chromium.org, mlamouri+watch-content_chromium.org, shimazu+serviceworker_chromium.org, serviceworker-reviews, jam, nhiroki, abarth-chromium, Aaron Boodman, kinuko+serviceworker, yzshen+watch_chromium.org, horo+watch_chromium.org, darin-cc_chromium.org, kinuko+watch, tzik, darin (slow to review), blink-worker-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce 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 #

Messages

Total messages: 32 (22 generated)
horo
falken@ Could you please review this?
4 years, 2 months ago (2016-10-13 10:02:41 UTC) #10
falken
lgtm
4 years, 2 months ago (2016-10-14 07:53:42 UTC) #13
horo
dcheng@ Could you please review content/common/service_worker/fetch_event_dispatcher.mojom?
4 years, 2 months ago (2016-10-14 08:06:54 UTC) #15
dcheng
This CL itself looks fine. However, it's usually preferred to land IPC / mojo changes ...
4 years, 2 months ago (2016-10-14 19:26:54 UTC) #18
horo
> This CL itself looks fine. > > However, it's usually preferred to land IPC ...
4 years, 2 months ago (2016-10-15 00:42:24 UTC) #23
dcheng
On 2016/10/15 00:42:24, horo wrote: > > This CL itself looks fine. > > > ...
4 years, 2 months ago (2016-10-18 01:55:51 UTC) #24
horo
On 2016/10/18 01:55:51, dcheng wrote: > On 2016/10/15 00:42:24, horo wrote: > > > This ...
4 years, 2 months ago (2016-10-18 07:50:46 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2417793002/60001
4 years, 2 months ago (2016-10-18 07:51:25 UTC) #28
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 2 months ago (2016-10-18 09:08:45 UTC) #30
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 09:12:02 UTC) #32
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fc9f9dc28b5291e0582dc1fcb2fb35aa0409f34f
Cr-Commit-Position: refs/heads/master@{#425927}

Powered by Google App Engine
This is Rietveld 408576698