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

Issue 2443103002: service worker: Implement NavigationPreloadManager.getState (Closed)

Created:
4 years, 2 months ago by falken
Modified:
4 years, 1 month ago
Reviewers:
tkent, rkaplow, nasko, horo
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, shimazu+serviceworker_chromium.org, serviceworker-reviews, jam, nhiroki, blink-reviews-api_chromium.org, haraken, dglazkov+blink, kinuko+serviceworker, horo+watch_chromium.org, blink-reviews, darin-cc_chromium.org, kinuko+watch, tzik, falken+watch_chromium.org, blink-worker-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

service worker: Implement NavigationPreloadManager.getState BUG=649558 Committed: https://crrev.com/b49387a112b13eb4ed99810b4c2c094299d4a4fd Cr-Commit-Position: refs/heads/master@{#427596}

Patch Set 1 #

Patch Set 2 : test #

Patch Set 3 : reject #

Total comments: 6

Patch Set 4 : comments #

Patch Set 5 : update histograms #

Total comments: 4

Patch Set 6 : comments #

Patch Set 7 : ...and rebase #

Patch Set 8 : ... and update_bad_message_reasons #

Patch Set 9 : rm file added in bad merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+395 lines, -3 lines) Patch
M content/browser/bad_message.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 1 2 3 4 5 3 chunks +67 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_registration.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/child/service_worker/service_worker_dispatcher.h View 6 chunks +18 lines, -0 lines 0 comments Download
M content/child/service_worker/service_worker_dispatcher.cc View 6 chunks +45 lines, -0 lines 0 comments Download
M content/child/service_worker/web_service_worker_registration_impl.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/child/service_worker/web_service_worker_registration_impl.cc View 1 2 chunks +13 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 2 chunks +16 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/get-state.html View 1 2 3 4 5 1 chunk +104 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/resources/get-state-worker.js View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/NavigationPreloadCallbacks.h View 2 chunks +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/NavigationPreloadCallbacks.cpp View 2 chunks +30 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/NavigationPreloadManager.cpp View 1 chunk +13 lines, -3 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/public/platform/modules/serviceworker/WebNavigationPreloadState.h View 1 chunk +19 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h View 3 chunks +7 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 37 (24 generated)
falken
ptal
4 years, 1 month ago (2016-10-25 06:55:21 UTC) #6
horo
lgtm with nits https://codereview.chromium.org/2443103002/diff/40001/third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/getState.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/getState.html (right): https://codereview.chromium.org/2443103002/diff/40001/third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/getState.html#newcode1 third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/getState.html:1: <!DOCTYPE html> Nit: Why are you ...
4 years, 1 month ago (2016-10-25 07:51:47 UTC) #9
falken
Thank you. https://codereview.chromium.org/2443103002/diff/40001/third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/getState.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/getState.html (right): https://codereview.chromium.org/2443103002/diff/40001/third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/getState.html#newcode1 third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/getState.html:1: <!DOCTYPE html> On 2016/10/25 07:51:47, horo wrote: ...
4 years, 1 month ago (2016-10-25 08:06:29 UTC) #10
falken
OWNERS please review: - nasko: bad_message.h and service_worker_messages.h - rkaplow: histograms - tkent: public/BUILD.gn
4 years, 1 month ago (2016-10-25 08:08:03 UTC) #12
rkaplow
https://codereview.chromium.org/2443103002/diff/80001/content/browser/bad_message.h File content/browser/bad_message.h (right): https://codereview.chromium.org/2443103002/diff/80001/content/browser/bad_message.h#newcode170 content/browser/bad_message.h:170: SWDH_GET_NAVIGATION_PRELOAD_STATE_NO_HOST = 143, you're duplicating ids here
4 years, 1 month ago (2016-10-25 15:30:16 UTC) #17
tkent
On 2016/10/25 at 08:08:03, falken wrote: > OWNERS please review: > - tkent: public/BUILD.gn lgtm. ...
4 years, 1 month ago (2016-10-25 23:01:53 UTC) #18
nasko
https://codereview.chromium.org/2443103002/diff/80001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/2443103002/diff/80001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode767 content/browser/service_worker/service_worker_dispatcher_host.cc:767: this, bad_message::SWDH_ENABLE_NAVIGATION_PRELOAD_BAD_REGISTRATION_ID); Shouldn't this be SWDH_GET_NAVIGATION_PRELOAD_STATE_BAD_REGISTRATION_ID?
4 years, 1 month ago (2016-10-25 23:23:42 UTC) #19
falken
Thanks. Fixed bad copy/paste coding and the test expectations for virtual mojo-service-worker. https://codereview.chromium.org/2443103002/diff/80001/content/browser/bad_message.h File content/browser/bad_message.h ...
4 years, 1 month ago (2016-10-25 23:55:58 UTC) #21
nasko
bad_message usage LGTM.
4 years, 1 month ago (2016-10-26 00:15:46 UTC) #26
rkaplow
lgtm histogram lg
4 years, 1 month ago (2016-10-26 02:44:15 UTC) #31
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/2443103002/180001
4 years, 1 month ago (2016-10-26 03:12:47 UTC) #34
commit-bot: I haz the power
Committed patchset #9 (id:180001)
4 years, 1 month ago (2016-10-26 05:29:17 UTC) #35
commit-bot: I haz the power
4 years, 1 month ago (2016-10-26 05:31:58 UTC) #37
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/b49387a112b13eb4ed99810b4c2c094299d4a4fd
Cr-Commit-Position: refs/heads/master@{#427596}

Powered by Google App Engine
This is Rietveld 408576698