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

Issue 178343011: Support dispatching ServiceWorker FetchEvent and receiving response (Closed)

Created:
6 years, 9 months ago by falken
Modified:
6 years, 9 months ago
CC:
chromium-reviews, jsbell+serviceworker_chromium.org, tzik, jam, nhiroki, joi+watch-content_chromium.org, darin-cc_chromium.org, horo+watch_chromium.org, kinuko+watch, alecflett+watch_chromium.org, serviceworker-reviews, tkent
Visibility:
Public.

Description

Support dispatching ServiceWorker FetchEvent and receiving response Depends on Blink-change https://codereview.chromium.org/185423005/ BUG=342301 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256132

Patch Set 1 #

Patch Set 2 : plubming #

Total comments: 9

Patch Set 3 : more review comments #

Total comments: 17

Patch Set 4 : review comments from creis and tsepez #

Patch Set 5 : no more DEPS change #

Total comments: 4

Patch Set 6 : sync #

Patch Set 7 : use const for result on failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -70 lines) Patch
M content/browser/service_worker/service_worker_browsertest.cc View 1 2 3 4 7 chunks +65 lines, -30 lines 0 comments Download
M content/browser/service_worker/service_worker_version.h View 1 2 3 chunks +3 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 2 3 4 5 6 1 chunk +7 lines, -4 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 2 3 2 chunks +8 lines, -4 lines 0 comments Download
M content/common/service_worker/service_worker_types.h View 1 2 3 4 1 chunk +17 lines, -9 lines 0 comments Download
M content/common/service_worker/service_worker_types.cc View 1 2 3 4 5 6 2 chunks +4 lines, -5 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_context_client.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_context_client.cc View 1 2 3 4 2 chunks +18 lines, -1 line 0 comments Download
M content/renderer/service_worker/service_worker_script_context.h View 1 3 chunks +4 lines, -3 lines 0 comments Download
M content/renderer/service_worker/service_worker_script_context.cc View 1 2 chunks +5 lines, -6 lines 0 comments Download
A content/test/data/service_worker/fetch_event.js View 1 1 chunk +19 lines, -0 lines 0 comments Download
A + content/test/data/service_worker/fetch_event_error.js View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
A + content/test/data/service_worker/fetch_event_fallback.js View 1 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
falken
This depends on Blink change https://codereview.chromium.org/185423005/
6 years, 9 months ago (2014-03-03 06:00:50 UTC) #1
kinuko
looks good, some comments https://codereview.chromium.org/178343011/diff/20001/content/browser/service_worker/service_worker_browsertest.cc File content/browser/service_worker/service_worker_browsertest.cc (right): https://codereview.chromium.org/178343011/diff/20001/content/browser/service_worker/service_worker_browsertest.cc#newcode53 content/browser/service_worker/service_worker_browsertest.cc:53: ServiceWorkerResponse response; nit: 2 space ...
6 years, 9 months ago (2014-03-04 06:39:17 UTC) #2
falken
Thanks! PTAL https://codereview.chromium.org/178343011/diff/20001/content/browser/service_worker/service_worker_browsertest.cc File content/browser/service_worker/service_worker_browsertest.cc (right): https://codereview.chromium.org/178343011/diff/20001/content/browser/service_worker/service_worker_browsertest.cc#newcode53 content/browser/service_worker/service_worker_browsertest.cc:53: ServiceWorkerResponse response; On 2014/03/04 06:39:17, kinuko wrote: ...
6 years, 9 months ago (2014-03-05 03:35:40 UTC) #3
kinuko
lgtm https://codereview.chromium.org/178343011/diff/20001/content/common/service_worker/service_worker_types.cc File content/common/service_worker/service_worker_types.cc (right): https://codereview.chromium.org/178343011/diff/20001/content/common/service_worker/service_worker_types.cc#newcode24 content/common/service_worker/service_worker_types.cc:24: ServiceWorkerResponse::ServiceWorkerResponse( On 2014/03/05 03:35:41, falken wrote: > On ...
6 years, 9 months ago (2014-03-05 04:01:29 UTC) #4
falken
Thanks! Sorry, I accidentally deleted that patchset, so comments below: > https://codereview.chromium.org/178343011/diff/40001/content/common/service_worker/service_worker_types.h#newcode56 > content/common/service_worker/service_worker_types.h:56: > ...
6 years, 9 months ago (2014-03-05 04:27:44 UTC) #5
falken
tsepez: Can you please give OWNER review for IPC? creis: Can you please give OWNER ...
6 years, 9 months ago (2014-03-05 04:30:10 UTC) #6
Tom Sepez
LGTM with comments. https://codereview.chromium.org/178343011/diff/60001/content/common/service_worker/service_worker_messages.h File content/common/service_worker/service_worker_messages.h (right): https://codereview.chromium.org/178343011/diff/60001/content/common/service_worker/service_worker_messages.h#newcode29 content/common/service_worker/service_worker_messages.h:29: IPC_ENUM_TRAITS(content::ServiceWorkerFetchEventResult) use IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerFetchEventResult, SERVICE_WORKER_FETCH_EVENT_RESULT_LAST) https://codereview.chromium.org/178343011/diff/60001/content/common/service_worker/service_worker_types.h File ...
6 years, 9 months ago (2014-03-05 19:45:02 UTC) #7
Charlie Reis
content/ LGTM with style nits, plus one question about DEPS. https://codereview.chromium.org/178343011/diff/60001/content/browser/service_worker/service_worker_browsertest.cc File content/browser/service_worker/service_worker_browsertest.cc (right): https://codereview.chromium.org/178343011/diff/60001/content/browser/service_worker/service_worker_browsertest.cc#newcode50 ...
6 years, 9 months ago (2014-03-05 21:00:33 UTC) #8
Tom Sepez
https://codereview.chromium.org/178343011/diff/60001/content/common/service_worker/service_worker_types.h File content/common/service_worker/service_worker_types.h (right): https://codereview.chromium.org/178343011/diff/60001/content/common/service_worker/service_worker_types.h#newcode48 content/common/service_worker/service_worker_types.h:48: SERVICE_WORKER_FETCH_RESULT_FALLBACK, nit: The string "Event" appears in the type ...
6 years, 9 months ago (2014-03-05 21:07:01 UTC) #9
falken
Thanks for the comments! Replies inline. +tkent: Can you approve or weigh in on the ...
6 years, 9 months ago (2014-03-06 15:58:53 UTC) #10
Charlie Reis
@jam: Can I get you to weigh in on the DEPS change? Otherwise still LGTM. ...
6 years, 9 months ago (2014-03-06 18:59:04 UTC) #11
jam
https://codereview.chromium.org/178343011/diff/60001/content/common/DEPS File content/common/DEPS (right): https://codereview.chromium.org/178343011/diff/60001/content/common/DEPS#newcode26 content/common/DEPS:26: "+third_party/WebKit/public/platform/WebServiceWorkerResponse.h", On 2014/03/06 18:59:05, Charlie Reis wrote: > On ...
6 years, 9 months ago (2014-03-06 21:22:43 UTC) #12
kinuko
On 2014/03/06 15:58:53, falken wrote: > Thanks for the comments! Replies inline. > > +tkent: ...
6 years, 9 months ago (2014-03-07 00:40:00 UTC) #13
falken
Thanks for the comments. I removed the DEPS change. Is the new patch okay? https://codereview.chromium.org/178343011/diff/60001/content/browser/service_worker/service_worker_browsertest.cc ...
6 years, 9 months ago (2014-03-07 01:56:50 UTC) #14
michaeln
drive-by-comments https://codereview.chromium.org/178343011/diff/100001/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/178343011/diff/100001/content/browser/service_worker/service_worker_version.cc#newcode80 content/browser/service_worker/service_worker_version.cc:80: ServiceWorkerFetchEventResult result; initialize this value to something since ...
6 years, 9 months ago (2014-03-07 02:47:59 UTC) #15
falken
https://codereview.chromium.org/178343011/diff/100001/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/178343011/diff/100001/content/browser/service_worker/service_worker_version.cc#newcode80 content/browser/service_worker/service_worker_version.cc:80: ServiceWorkerFetchEventResult result; On 2014/03/07 02:48:00, michaeln wrote: > initialize ...
6 years, 9 months ago (2014-03-07 04:40:23 UTC) #16
falken
Since the outstanding comments have been addressed I'm setting the cq bit. Let me know ...
6 years, 9 months ago (2014-03-07 08:21:47 UTC) #17
falken
The CQ bit was checked by falken@chromium.org
6 years, 9 months ago (2014-03-07 08:22:07 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/falken@chromium.org/178343011/120002
6 years, 9 months ago (2014-03-07 08:25:08 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 15:18:19 UTC) #20
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=277395
6 years, 9 months ago (2014-03-07 15:18:20 UTC) #21
Charlie Reis
On 2014/03/07 08:21:47, falken wrote: > Since the outstanding comments have been addressed I'm setting ...
6 years, 9 months ago (2014-03-07 18:25:29 UTC) #22
falken
The CQ bit was checked by falken@chromium.org
6 years, 9 months ago (2014-03-10 23:42:45 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/falken@chromium.org/178343011/120002
6 years, 9 months ago (2014-03-11 00:17:26 UTC) #24
commit-bot: I haz the power
6 years, 9 months ago (2014-03-11 05:12:16 UTC) #25
Message was sent while issue was closed.
Change committed as 256132

Powered by Google App Engine
This is Rietveld 408576698