|
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
Total comments: 2
Total comments: 2
|
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
|
Total messages: 19 (0 generated)
|