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

Issue 475333002: [ServiceWorker] Sends the blob uuid of the request body to the ServiceWorker. (Closed)

Created:
6 years, 4 months ago by horo
Modified:
6 years, 4 months ago
Reviewers:
falken, nasko, mmenke
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, kinuko+serviceworker, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Sends the blob uuid of the request body to the ServiceWorker. This changes the followings: - ResourceDispatcherHostImpl passes the reference of ResourceRequestBody to ServiceWorkerControlleeRequestHandler via ServiceWorkerProviderHost. - ServiceWorkerControlleeRequestHandler keeps the reference of ResourceRequestBody and pass it to ServiceWorkerURLRequestJob when MaybeCreateJob() is called. - ServiceWorkerURLRequestJob keeps the reference of ResourceRequestBody and creates BlobDataHandle and ServiceWorkerFetchRequest from URLRequest and ResourceRequestBody when StartRequest() is called. - ServiceWorkerURLRequestJob passes the ServiceWorkerFetchRequest to ServiceWorkerFetchDispatcher in StartRequest() and ServiceWorkerVersion will send the blob uuid and the size of the blob using IPC to the renederer process. - BlobDataHandle is kept during the lifetime of ServiceWorkerURLRequestJob. - In the ServiceWorker side, WebServiceWorkerRequest::setBlob() will be called with the blob uuid and the size of the blob. WebServiceWorkerRequest::setBlob() is introduced in https://codereview.chromium.org/483603003/ This cl depends on https://codereview.chromium.org/483603003/ and https://codereview.chromium.org/483613004/ . BUG=402387 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290795

Patch Set 1 : #

Total comments: 2

Patch Set 2 : remove outdated TODO comment #

Total comments: 2

Patch Set 3 : Add comment in service_worker_url_request_job.h #

Patch Set 4 : resolve blobs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -46 lines) Patch
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler.h View 3 chunks +4 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler.cc View 3 chunks +5 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_fetch_dispatcher.h View 3 chunks +4 lines, -9 lines 0 comments Download
M content/browser/service_worker/service_worker_fetch_dispatcher.cc View 2 chunks +3 lines, -16 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host.h View 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_provider_host.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_request_handler.h View 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_request_handler.cc View 3 chunks +5 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.h View 1 2 4 chunks +16 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.cc View 1 2 3 4 chunks +95 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job_unittest.cc View 2 chunks +7 lines, -2 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_types.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/service_worker/service_worker_types.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/service_worker/service_worker_script_context.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
horo
falken@ Could you please review this? Thank you.
6 years, 4 months ago (2014-08-18 08:25:31 UTC) #1
falken
I don't see additional tests. I assume this will be tested Blink-side when hooked up? ...
6 years, 4 months ago (2014-08-19 03:37:39 UTC) #2
horo
Yes fetch-event.html in https://codereview.chromium.org/475533005/ will test this codes. https://codereview.chromium.org/475333002/diff/210001/content/common/service_worker/service_worker_types.h File content/common/service_worker/service_worker_types.h (right): https://codereview.chromium.org/475333002/diff/210001/content/common/service_worker/service_worker_types.h#newcode46 content/common/service_worker/service_worker_types.h:46: // ...
6 years, 4 months ago (2014-08-19 03:50:33 UTC) #3
falken
Ah, I hadn't gotten to that review yet :) lgtm
6 years, 4 months ago (2014-08-19 04:07:09 UTC) #4
horo
nasko@ Could you please review content/common/service_worker/service_worker_messages.h?
6 years, 4 months ago (2014-08-19 04:29:21 UTC) #5
horo
mmenke@ Could you please review content/browser/loader/resource_dispatcher_host_impl.cc?
6 years, 4 months ago (2014-08-19 04:30:40 UTC) #6
mmenke
On 2014/08/19 04:30:40, horo wrote: > mmenke@ > Could you please review content/browser/loader/resource_dispatcher_host_impl.cc? content/browser/loader/resource_dispatcher_host_impl.cc LGTM ...
6 years, 4 months ago (2014-08-19 14:06:13 UTC) #7
nasko
IPC LGTM
6 years, 4 months ago (2014-08-19 16:58:48 UTC) #8
michaeln1
https://codereview.chromium.org/475333002/diff/250001/content/browser/service_worker/service_worker_controllee_request_handler.cc File content/browser/service_worker/service_worker_controllee_request_handler.cc (right): https://codereview.chromium.org/475333002/diff/250001/content/browser/service_worker/service_worker_controllee_request_handler.cc#newcode33 content/browser/service_worker/service_worker_controllee_request_handler.cc:33: body_(body), It's pretty hidden that the body has a ...
6 years, 4 months ago (2014-08-19 22:03:26 UTC) #9
horo
https://codereview.chromium.org/475333002/diff/250001/content/browser/service_worker/service_worker_controllee_request_handler.cc File content/browser/service_worker/service_worker_controllee_request_handler.cc (right): https://codereview.chromium.org/475333002/diff/250001/content/browser/service_worker/service_worker_controllee_request_handler.cc#newcode33 content/browser/service_worker/service_worker_controllee_request_handler.cc:33: body_(body), On 2014/08/19 22:03:25, michaeln1 wrote: > It's pretty ...
6 years, 4 months ago (2014-08-20 02:28:02 UTC) #10
horo
The CQ bit was checked by horo@chromium.org
6 years, 4 months ago (2014-08-20 04:39:10 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/475333002/270001
6 years, 4 months ago (2014-08-20 04:40:19 UTC) #12
horo
The CQ bit was unchecked by horo@chromium.org
6 years, 4 months ago (2014-08-20 05:13:39 UTC) #13
horo
The CQ bit was checked by horo@chromium.org
6 years, 4 months ago (2014-08-20 07:59:30 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/475333002/290001
6 years, 4 months ago (2014-08-20 08:00:33 UTC) #15
horo
The CQ bit was unchecked by horo@chromium.org
6 years, 4 months ago (2014-08-20 08:09:58 UTC) #16
horo
The CQ bit was checked by horo@chromium.org
6 years, 4 months ago (2014-08-20 08:19:25 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/475333002/290001
6 years, 4 months ago (2014-08-20 08:20:50 UTC) #18
commit-bot: I haz the power
6 years, 4 months ago (2014-08-20 09:27:47 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (290001) as 290795

Powered by Google App Engine
This is Rietveld 408576698