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

Issue 293083002: Add a blob field to ServiceWorkerFetchResponse and read the blob (Closed)

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

Description

Add a blob field to ServiceWorkerFetchResponse and read the blob This will allow Blink-side to provide a body in its responses to fetch events. BUG=374123 R=michaeln@chromium.org, mmenke@chromium.org, tsepez@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273762

Patch Set 1 #

Patch Set 2 : a bit closer #

Total comments: 3

Patch Set 3 : michael's idea #

Patch Set 4 : revised #

Patch Set 5 : dont crash in loader #

Total comments: 16

Patch Set 6 : michael's review #

Total comments: 5

Patch Set 7 : sync #

Patch Set 8 : mock_url_request_delegate.h #

Patch Set 9 : sync #

Patch Set 10 : fix bad merge #

Patch Set 11 : manufacture an error response for bad blob #

Patch Set 12 : sync #

Total comments: 5

Patch Set 13 : michaeln comments #

Patch Set 14 : sync and rename received_data_->io_buffer_ #

Patch Set 15 : fix merge conflict #

Unified diffs Side-by-side diffs Delta from patch set Stats (+442 lines, -157 lines) Patch
M content/browser/fileapi/blob_url_request_job_unittest.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -65 lines 0 comments Download
A content/browser/fileapi/mock_url_request_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +38 lines, -0 lines 0 comments Download
A content/browser/fileapi/mock_url_request_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +72 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +9 lines, -4 lines 0 comments Download
M content/browser/service_worker/embedded_worker_test_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_context_request_handler.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_request_handler.cc View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler.cc View 1 2 3 4 5 2 chunks +7 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host.h View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_provider_host.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_request_handler.h View 1 2 3 4 5 3 chunks +7 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_request_handler.cc View 1 2 3 4 5 4 chunks +6 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +43 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +107 lines, -22 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +118 lines, -48 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/common/service_worker/service_worker_types.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -1 line 0 comments Download
M content/common/service_worker/service_worker_types.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -2 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_context_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 26 (0 generated)
michaeln
https://codereview.chromium.org/293083002/diff/20001/content/browser/service_worker/service_worker_request_handler.h File content/browser/service_worker/service_worker_request_handler.h (right): https://codereview.chromium.org/293083002/diff/20001/content/browser/service_worker/service_worker_request_handler.h#newcode44 content/browser/service_worker/service_worker_request_handler.h:44: ResourceType::Type resource_type); BlobContext* blob_context https://codereview.chromium.org/293083002/diff/20001/content/browser/service_worker/service_worker_request_handler.h#newcode72 content/browser/service_worker/service_worker_request_handler.h:72: base::WeakPtr<BlobStorageContext> blob_context_; https://codereview.chromium.org/293083002/diff/20001/content/browser/storage_partition_impl_map.cc ...
6 years, 7 months ago (2014-05-22 03:26:22 UTC) #1
falken
Thanks Michael! This patch is now ready for review. https://codereview.chromium.org/293083002/diff/80001/content/browser/service_worker/service_worker_url_request_job_unittest.cc File content/browser/service_worker/service_worker_url_request_job_unittest.cc (right): https://codereview.chromium.org/293083002/diff/80001/content/browser/service_worker/service_worker_url_request_job_unittest.cc#newcode193 content/browser/service_worker/service_worker_url_request_job_unittest.cc:193: ...
6 years, 7 months ago (2014-05-22 11:40:59 UTC) #2
michaeln
looks pretty good, couple questions https://codereview.chromium.org/293083002/diff/80001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/293083002/diff/80001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode313 content/browser/loader/resource_dispatcher_host_impl.cc:313: webkit_blob::BlobStorageContext* GetBlobStorageContext( might make ...
6 years, 7 months ago (2014-05-23 02:23:22 UTC) #3
michaeln
https://codereview.chromium.org/293083002/diff/80001/content/browser/service_worker/service_worker_url_request_job.cc File content/browser/service_worker/service_worker_url_request_job.cc (right): https://codereview.chromium.org/293083002/diff/80001/content/browser/service_worker/service_worker_url_request_job.cc#newcode248 content/browser/service_worker/service_worker_url_request_job.cc:248: blob_request_ = webkit_blob::BlobProtocolHandler::CreateBlobRequest( This line right here setups so ...
6 years, 7 months ago (2014-05-23 02:32:31 UTC) #4
falken
Thanks! PTAL. https://codereview.chromium.org/293083002/diff/80001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/293083002/diff/80001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode313 content/browser/loader/resource_dispatcher_host_impl.cc:313: webkit_blob::BlobStorageContext* GetBlobStorageContext( On 2014/05/23 02:23:23, michaeln wrote: ...
6 years, 7 months ago (2014-05-23 11:15:46 UTC) #5
kinuko
(minor comment only, I'd like this to be reviewed by other owner (i.e. michaeln)) https://codereview.chromium.org/293083002/diff/140001/content/browser/fileapi/blob_url_request_job_unittest.h ...
6 years, 7 months ago (2014-05-23 13:02:39 UTC) #6
falken
Thanks. Michael, could you review please? https://codereview.chromium.org/293083002/diff/140001/content/browser/fileapi/blob_url_request_job_unittest.h File content/browser/fileapi/blob_url_request_job_unittest.h (right): https://codereview.chromium.org/293083002/diff/140001/content/browser/fileapi/blob_url_request_job_unittest.h#newcode14 content/browser/fileapi/blob_url_request_job_unittest.h:14: class MockURLRequestDelegate : ...
6 years, 7 months ago (2014-05-26 12:02:58 UTC) #7
michaeln
https://codereview.chromium.org/293083002/diff/140001/content/browser/service_worker/service_worker_url_request_job.cc File content/browser/service_worker/service_worker_url_request_job.cc (right): https://codereview.chromium.org/293083002/diff/140001/content/browser/service_worker/service_worker_url_request_job.cc#newcode248 content/browser/service_worker/service_worker_url_request_job.cc:248: scoped_ptr<webkit_blob::BlobDataHandle> blob_data_handle = if blob_data_handle is NULL here, i ...
6 years, 7 months ago (2014-05-27 21:26:16 UTC) #8
falken
Thanks! How does this look? https://codereview.chromium.org/293083002/diff/140001/content/browser/service_worker/service_worker_url_request_job.cc File content/browser/service_worker/service_worker_url_request_job.cc (right): https://codereview.chromium.org/293083002/diff/140001/content/browser/service_worker/service_worker_url_request_job.cc#newcode248 content/browser/service_worker/service_worker_url_request_job.cc:248: scoped_ptr<webkit_blob::BlobDataHandle> blob_data_handle = On ...
6 years, 6 months ago (2014-05-28 12:32:00 UTC) #9
michaeln
lgtm https://codereview.chromium.org/293083002/diff/270001/content/browser/fileapi/mock_url_request_delegate.cc File content/browser/fileapi/mock_url_request_delegate.cc (right): https://codereview.chromium.org/293083002/diff/270001/content/browser/fileapi/mock_url_request_delegate.cc#newcode49 content/browser/fileapi/mock_url_request_delegate.cc:49: if (!request->status().is_io_pending()) { nit: brackets not needed https://codereview.chromium.org/293083002/diff/270001/content/browser/fileapi/mock_url_request_delegate.h ...
6 years, 6 months ago (2014-05-29 01:09:03 UTC) #10
falken
Can OWNERs please review this? tsepez: messages/ mmenke: loader/ https://codereview.chromium.org/293083002/diff/270001/content/browser/fileapi/mock_url_request_delegate.cc File content/browser/fileapi/mock_url_request_delegate.cc (right): https://codereview.chromium.org/293083002/diff/270001/content/browser/fileapi/mock_url_request_delegate.cc#newcode49 content/browser/fileapi/mock_url_request_delegate.cc:49: ...
6 years, 6 months ago (2014-05-29 02:10:45 UTC) #11
mmenke
loader/ LGTM.
6 years, 6 months ago (2014-05-29 15:34:49 UTC) #12
Tom Sepez
Messages LGTM.
6 years, 6 months ago (2014-05-29 17:29:30 UTC) #13
falken
The CQ bit was checked by falken@chromium.org
6 years, 6 months ago (2014-05-29 17:31:43 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/falken@chromium.org/293083002/310001
6 years, 6 months ago (2014-05-29 17:35:19 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-05-29 19:34:47 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-29 20:26:51 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/158063)
6 years, 6 months ago (2014-05-29 20:26:51 UTC) #18
falken
The CQ bit was checked by falken@chromium.org
6 years, 6 months ago (2014-05-30 00:22:50 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/falken@chromium.org/293083002/310001
6 years, 6 months ago (2014-05-30 00:24:36 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-05-30 00:49:53 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-30 02:08:02 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/158063)
6 years, 6 months ago (2014-05-30 02:08:03 UTC) #23
falken
The CQ bit was checked by falken@chromium.org
6 years, 6 months ago (2014-05-30 02:39:30 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/falken@chromium.org/293083002/330001
6 years, 6 months ago (2014-05-30 02:40:49 UTC) #25
falken
6 years, 6 months ago (2014-05-30 08:12:38 UTC) #26
Message was sent while issue was closed.
Committed patchset #15 manually as r273762 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698