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

Issue 1337153002: [Blob] BlobReader class & tests, and removal of all redundant reading. (Closed)

Created:
5 years, 3 months ago by dmurph
Modified:
5 years, 2 months ago
Reviewers:
kinuko, michaeln, mmenke
CC:
cbentzel+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, jsbell, kinuko+fileapi, nhiroki, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Blob] BlobReader class & tests, and removal of all redundant reading. * New BlobReader class & tests * Removal of other reading code, which now uses the BlobReader * Removal of unnecessary UploadDiskCacheEntryElementReader * Removal of blob expansion logic in UploadDataStreamBuilder Now it's very easy for anyone in browserland to read blobs instead of having to do url requests, and it's also easy for anyone to add new blob backing storage. This is a prerequisite for the new blob async transportation, see here: goto/BlobPaging BUG=138051, 375297 Committed: https://crrev.com/02561552a57ed8792a8ebb2676bad485e1d99605 Cr-Commit-Position: refs/heads/master@{#351470} Committed: https://crrev.com/164f0b76c3a8156b95c36f17c95c452e8f3b9765 Cr-Commit-Position: refs/heads/master@{#351611}

Patch Set 1 #

Patch Set 2 : forgot BUILD.gn #

Patch Set 3 : android fixes #

Patch Set 4 : Trybot fixes #

Total comments: 2

Patch Set 5 : Rebase, and comments #

Patch Set 6 : Windows fixes, added comments, and error tests #

Patch Set 7 : windows fix #

Total comments: 39

Patch Set 8 : comments #

Patch Set 9 : comments, asan, and windows fix #

Patch Set 10 : Fixes #

Patch Set 11 : asan fix #

Total comments: 10

Patch Set 12 : comments #

Total comments: 23

Patch Set 13 : Comments #

Total comments: 4

Patch Set 14 : comments #

Patch Set 15 : rebase #

Patch Set 16 : Fixed prod/debug flakiness #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2311 lines, -1496 lines) Patch
A content/browser/fileapi/blob_reader_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1111 lines, -0 lines 0 comments Download
M content/browser/fileapi/blob_url_request_job_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +27 lines, -4 lines 0 comments Download
M content/browser/loader/upload_data_stream_builder.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/loader/upload_data_stream_builder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +15 lines, -92 lines 0 comments Download
M content/browser/loader/upload_data_stream_builder_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +47 lines, -345 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
D net/base/upload_disk_cache_entry_element_reader.h View 1 chunk +0 lines, -72 lines 0 comments Download
D net/base/upload_disk_cache_entry_element_reader.cc View 1 chunk +0 lines, -90 lines 0 comments Download
D net/base/upload_disk_cache_entry_element_reader_unittest.cc View 1 chunk +0 lines, -331 lines 0 comments Download
M net/base/upload_element_reader.h View 1 2 3 4 2 chunks +0 lines, -6 lines 0 comments Download
M net/base/upload_element_reader.cc View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M net/net.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +0 lines, -3 lines 0 comments Download
M storage/browser/BUILD.gn View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M storage/browser/blob/blob_data_handle.h View 1 2 3 4 5 6 7 6 chunks +24 lines, -7 lines 0 comments Download
M storage/browser/blob/blob_data_handle.cc View 1 2 3 4 5 6 7 2 chunks +79 lines, -11 lines 0 comments Download
M storage/browser/blob/blob_data_snapshot.h View 1 chunk +1 line, -0 lines 0 comments Download
A storage/browser/blob/blob_reader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +190 lines, -0 lines 0 comments Download
A storage/browser/blob/blob_reader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +568 lines, -0 lines 0 comments Download
M storage/browser/blob/blob_storage_context.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M storage/browser/blob/blob_url_request_job.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +8 lines, -55 lines 0 comments Download
M storage/browser/blob/blob_url_request_job.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 11 chunks +87 lines, -453 lines 0 comments Download
M storage/browser/blob/blob_url_request_job_factory.h View 1 2 3 4 5 6 7 3 chunks +4 lines, -2 lines 0 comments Download
M storage/browser/blob/blob_url_request_job_factory.cc View 1 2 3 4 5 6 7 4 chunks +14 lines, -15 lines 0 comments Download
A storage/browser/blob/upload_blob_element_reader.h View 1 2 3 4 1 chunk +54 lines, -0 lines 0 comments Download
A storage/browser/blob/upload_blob_element_reader.cc View 1 2 3 4 5 1 chunk +67 lines, -0 lines 0 comments Download
M storage/storage_browser.gyp View 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (10 generated)
dmurph
Hello all, Please take a look at this blob reader patch. It does a lot ...
5 years, 3 months ago (2015-09-11 20:18:25 UTC) #2
michaeln
> patch gif: http://i.imgur.com/TiirqEb.gif Awesome... will take a look today!!
5 years, 3 months ago (2015-09-14 18:39:43 UTC) #3
mmenke
net/ certainly looks good, I'll defer to the other reviewers on the other files. https://codereview.chromium.org/1337153002/diff/60001/net/base/upload_element_reader.h ...
5 years, 3 months ago (2015-09-14 19:24:33 UTC) #4
dmurph
https://codereview.chromium.org/1337153002/diff/60001/net/base/upload_element_reader.h File net/base/upload_element_reader.h (right): https://codereview.chromium.org/1337153002/diff/60001/net/base/upload_element_reader.h#newcode31 net/base/upload_element_reader.h:31: AsUploadBlobElementReaderForTests() const; On 2015/09/14 at 19:24:33, mmenke wrote: > ...
5 years, 3 months ago (2015-09-14 20:27:50 UTC) #5
mmenke
On 2015/09/14 20:27:50, dmurph wrote: > https://codereview.chromium.org/1337153002/diff/60001/net/base/upload_element_reader.h > File net/base/upload_element_reader.h (right): > > https://codereview.chromium.org/1337153002/diff/60001/net/base/upload_element_reader.h#newcode31 > ...
5 years, 3 months ago (2015-09-14 20:29:53 UTC) #6
michaeln
Not a full review but a first pass at some comments. I really like this ...
5 years, 3 months ago (2015-09-17 00:45:37 UTC) #7
dmurph
https://codereview.chromium.org/1337153002/diff/120001/storage/browser/blob/blob_data_handle.cc File storage/browser/blob/blob_data_handle.cc (right): https://codereview.chromium.org/1337153002/diff/120001/storage/browser/blob/blob_data_handle.cc#newcode56 storage/browser/blob/blob_data_handle.cc:56: FileSystemContext* file_system_context_; On 2015/09/17 at 00:45:37, michaeln wrote: > ...
5 years, 3 months ago (2015-09-19 00:33:44 UTC) #8
michaeln
i noticed a couple small things to take a look at, otherwise lgtm!! https://codereview.chromium.org/1337153002/diff/200001/content/browser/fileapi/blob_reader_unittest.cc File ...
5 years, 3 months ago (2015-09-23 18:52:46 UTC) #9
dmurph
https://codereview.chromium.org/1337153002/diff/200001/content/browser/fileapi/blob_reader_unittest.cc File content/browser/fileapi/blob_reader_unittest.cc (right): https://codereview.chromium.org/1337153002/diff/200001/content/browser/fileapi/blob_reader_unittest.cc#newcode233 content/browser/fileapi/blob_reader_unittest.cc:233: return GetLengthImpl(net::Int64CompletionCallback()); On 2015/09/23 at 18:52:45, michaeln wrote: > ...
5 years, 2 months ago (2015-09-25 17:11:44 UTC) #10
dmurph
Kinuko: Can you please take a look? It's been a week or so. I need ...
5 years, 2 months ago (2015-09-25 17:58:15 UTC) #11
kinuko
Sorry for really slow review, tokyo was having a very long weekend. Really glad to ...
5 years, 2 months ago (2015-09-26 15:14:26 UTC) #12
dmurph
https://codereview.chromium.org/1337153002/diff/220001/content/browser/fileapi/blob_reader_unittest.cc File content/browser/fileapi/blob_reader_unittest.cc (right): https://codereview.chromium.org/1337153002/diff/220001/content/browser/fileapi/blob_reader_unittest.cc#newcode198 content/browser/fileapi/blob_reader_unittest.cc:198: } On 2015/09/26 at 15:14:26, kinuko wrote: > nit: ...
5 years, 2 months ago (2015-09-28 19:40:02 UTC) #13
michaeln
still lgtm https://codereview.chromium.org/1337153002/diff/240001/content/browser/loader/upload_data_stream_builder.cc File content/browser/loader/upload_data_stream_builder.cc (right): https://codereview.chromium.org/1337153002/diff/240001/content/browser/loader/upload_data_stream_builder.cc#newcode104 content/browser/loader/upload_data_stream_builder.cc:104: // needed. The comment is a little ...
5 years, 2 months ago (2015-09-28 21:52:07 UTC) #14
kinuko
lgtm after michael's comment's addressed!
5 years, 2 months ago (2015-09-29 01:39:31 UTC) #15
kinuko
https://codereview.chromium.org/1337153002/diff/240001/storage/browser/blob/blob_reader.h File storage/browser/blob/blob_reader.h (right): https://codereview.chromium.org/1337153002/diff/240001/storage/browser/blob/blob_reader.h#newcode168 storage/browser/blob/blob_reader.h:168: int net_error_; nit: this could be also initialized here
5 years, 2 months ago (2015-09-29 01:57:56 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1337153002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1337153002/260001
5 years, 2 months ago (2015-09-29 21:20:50 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/47063)
5 years, 2 months ago (2015-09-29 21:25:20 UTC) #21
dmurph
https://codereview.chromium.org/1337153002/diff/240001/content/browser/loader/upload_data_stream_builder.cc File content/browser/loader/upload_data_stream_builder.cc (right): https://codereview.chromium.org/1337153002/diff/240001/content/browser/loader/upload_data_stream_builder.cc#newcode104 content/browser/loader/upload_data_stream_builder.cc:104: // needed. On 2015/09/28 at 21:52:07, michaeln wrote: > ...
5 years, 2 months ago (2015-09-29 21:29:22 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1337153002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1337153002/280001
5 years, 2 months ago (2015-09-29 22:03:09 UTC) #25
commit-bot: I haz the power
Committed patchset #15 (id:280001)
5 years, 2 months ago (2015-09-30 02:03:43 UTC) #26
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/02561552a57ed8792a8ebb2676bad485e1d99605 Cr-Commit-Position: refs/heads/master@{#351470}
5 years, 2 months ago (2015-09-30 02:04:35 UTC) #27
Lei Zhang
There's a failure here, FYI: http://build.chromium.org/p/chromium.linux/builders/Cast%20Linux/builds/8769
5 years, 2 months ago (2015-09-30 02:46:44 UTC) #28
ukai
On 2015/09/30 02:46:44, Lei Zhang wrote: > There's a failure here, FYI: > http://build.chromium.org/p/chromium.linux/builders/Cast%20Linux/builds/8769 http://build.chromium.org/p/chromium.linux/builders/Linux%20Tests/builds/31768
5 years, 2 months ago (2015-09-30 03:37:19 UTC) #29
kinuko
On 2015/09/30 03:37:19, ukai wrote: > On 2015/09/30 02:46:44, Lei Zhang wrote: > > There's ...
5 years, 2 months ago (2015-09-30 03:53:47 UTC) #30
kinuko
A revert of this CL (patchset #15 id:280001) has been created in https://codereview.chromium.org/1376123002/ by kinuko@chromium.org. ...
5 years, 2 months ago (2015-09-30 03:54:36 UTC) #31
dmurph
Fixed issue with DCHECK not causing death in release builds, removed dcheck and I just ...
5 years, 2 months ago (2015-09-30 06:23:46 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1337153002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1337153002/300001
5 years, 2 months ago (2015-09-30 06:24:01 UTC) #35
phoglund_chromium
On 2015/09/30 06:24:01, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
5 years, 2 months ago (2015-09-30 07:25:54 UTC) #36
dmurph
On 2015/09/30 at 07:25:54, phoglund wrote: > On 2015/09/30 06:24:01, commit-bot: I haz the power ...
5 years, 2 months ago (2015-09-30 07:26:32 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/75594)
5 years, 2 months ago (2015-09-30 11:19:00 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1337153002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1337153002/300001
5 years, 2 months ago (2015-09-30 17:38:30 UTC) #41
commit-bot: I haz the power
Committed patchset #16 (id:300001)
5 years, 2 months ago (2015-09-30 18:49:10 UTC) #42
commit-bot: I haz the power
5 years, 2 months ago (2015-09-30 18:50:10 UTC) #43
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/164f0b76c3a8156b95c36f17c95c452e8f3b9765
Cr-Commit-Position: refs/heads/master@{#351611}

Powered by Google App Engine
This is Rietveld 408576698