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

Issue 1406823002: Start of foreign fetch implementation. (Closed)

Created:
5 years, 2 months ago by Marijn Kruisselbrink
Modified:
5 years, 2 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-worker-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, falken, horo+watch_chromium.org, jam, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, kinuko+serviceworker, kinuko+watch, michaeln, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nhiroki, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Start of foreign fetch implementation. This changes the install event to use a new InstallEvent interface, with a method to register foreign fetch scopes. Calling that method will end up storing the scopes in the SWVersion in the browser process. BUG=540509 Committed: https://crrev.com/26507d0e00b7beb248d751512cc045c9bee3e359 Cr-Commit-Position: refs/heads/master@{#354845}

Patch Set 1 #

Total comments: 2

Patch Set 2 : add unit test #

Total comments: 16

Patch Set 3 : address falken's nits #

Total comments: 3

Patch Set 4 : remove blank line #

Unified diffs Side-by-side diffs Delta from patch set Stats (+355 lines, -22 lines) Patch
M content/browser/service_worker/embedded_worker_instance.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/embedded_worker_test_helper.h View 1 4 chunks +13 lines, -0 lines 0 comments Download
M content/browser/service_worker/embedded_worker_test_helper.cc View 1 2 3 chunks +24 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.h View 1 3 chunks +5 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 2 2 chunks +25 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version_unittest.cc View 1 5 chunks +55 lines, -7 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 chunk +6 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/serviceworker/register-foreign-fetch-errors.html View 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/install-event-type-worker.js View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/register-foreign-fetch-errors-worker.js View 1 2 3 1 chunk +65 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 3 chunks +4 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/serviceworkers/InstallEvent.h View 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/serviceworkers/InstallEvent.cpp View 1 chunk +84 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/modules/serviceworkers/InstallEvent.idl View 1 chunk +4 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp View 2 chunks +7 lines, -1 line 0 comments Download
M third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (8 generated)
Marijn Kruisselbrink
5 years, 2 months ago (2015-10-15 00:28:33 UTC) #3
bsittler
Why is the switch to the new event interface contingent on foreign fetch being enabled? ...
5 years, 2 months ago (2015-10-15 19:38:00 UTC) #4
Marijn Kruisselbrink
On 2015/10/15 at 19:38:00, bsittler wrote: > Why is the switch to the new event ...
5 years, 2 months ago (2015-10-15 22:19:04 UTC) #5
bsittler
lgtm
5 years, 2 months ago (2015-10-15 22:59:46 UTC) #6
Marijn Kruisselbrink
+falken for service worker OWNERS
5 years, 2 months ago (2015-10-15 23:00:46 UTC) #8
falken
This looks good, just style nits. https://codereview.chromium.org/1406823002/diff/40001/content/browser/service_worker/embedded_worker_test_helper.cc File content/browser/service_worker/embedded_worker_test_helper.cc (right): https://codereview.chromium.org/1406823002/diff/40001/content/browser/service_worker/embedded_worker_test_helper.cc#newcode73 content/browser/service_worker/embedded_worker_test_helper.cc:73: wrapper_(new ServiceWorkerContextWrapper(NULL)), nit: ...
5 years, 2 months ago (2015-10-16 11:58:44 UTC) #9
Marijn Kruisselbrink
https://codereview.chromium.org/1406823002/diff/40001/content/browser/service_worker/embedded_worker_test_helper.cc File content/browser/service_worker/embedded_worker_test_helper.cc (right): https://codereview.chromium.org/1406823002/diff/40001/content/browser/service_worker/embedded_worker_test_helper.cc#newcode73 content/browser/service_worker/embedded_worker_test_helper.cc:73: wrapper_(new ServiceWorkerContextWrapper(NULL)), On 2015/10/16 at 11:58:43, falken wrote: > ...
5 years, 2 months ago (2015-10-16 17:23:25 UTC) #10
Marijn Kruisselbrink
+tkent for WebKit/Source/web and WebKit/Source/platform OWNERS +tsepez for IPC OWNERS
5 years, 2 months ago (2015-10-16 17:37:41 UTC) #12
Tom Sepez
https://codereview.chromium.org/1406823002/diff/60001/content/common/service_worker/service_worker_messages.h File content/common/service_worker/service_worker_messages.h (right): https://codereview.chromium.org/1406823002/diff/60001/content/common/service_worker/service_worker_messages.h#newcode294 content/common/service_worker/service_worker_messages.h:294: // handle. Should only be sent while an install ...
5 years, 2 months ago (2015-10-16 18:12:39 UTC) #13
Marijn Kruisselbrink
https://codereview.chromium.org/1406823002/diff/60001/content/common/service_worker/service_worker_messages.h File content/common/service_worker/service_worker_messages.h (right): https://codereview.chromium.org/1406823002/diff/60001/content/common/service_worker/service_worker_messages.h#newcode294 content/common/service_worker/service_worker_messages.h:294: // handle. Should only be sent while an install ...
5 years, 2 months ago (2015-10-16 18:29:10 UTC) #14
Tom Sepez
OK LGTM
5 years, 2 months ago (2015-10-16 18:32:11 UTC) #15
falken
lgtm https://codereview.chromium.org/1406823002/diff/60001/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/register-foreign-fetch-errors-worker.js File third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/register-foreign-fetch-errors-worker.js (right): https://codereview.chromium.org/1406823002/diff/60001/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/register-foreign-fetch-errors-worker.js#newcode1 third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/register-foreign-fetch-errors-worker.js:1: nit: extra line
5 years, 2 months ago (2015-10-19 03:29:23 UTC) #16
tkent
WebKit/Source/web and WebKit/Source/platform lgtm
5 years, 2 months ago (2015-10-19 03:31:18 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1406823002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1406823002/80001
5 years, 2 months ago (2015-10-19 17:08:02 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/76804) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 2 months ago (2015-10-19 18:21:53 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1406823002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1406823002/80001
5 years, 2 months ago (2015-10-19 18:36:51 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years, 2 months ago (2015-10-19 20:12:50 UTC) #25
commit-bot: I haz the power
5 years, 2 months ago (2015-10-19 20:13:39 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/26507d0e00b7beb248d751512cc045c9bee3e359
Cr-Commit-Position: refs/heads/master@{#354845}

Powered by Google App Engine
This is Rietveld 408576698