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

Issue 11103027: Support filesystem files from BlobURLRequestJob (Closed)

Created:
8 years, 2 months ago by hashimoto
Modified:
8 years, 2 months ago
Reviewers:
kinuko, jam
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, tzik+watch_chromium.org, jam, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, pam+watch_chromium.org, kinuko+watch
Visibility:
Public.

Description

Support filesystem files from BlobURLRequestJob BlobURLRequestJob's ctor takes FileSystemContext to create FileSystemFileStreamReader. BUG=141835 TEST=content_unittests --gtest_filter="BlobURLRequestJobTest.*" TBR=jam@chromium.org for content change Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=163245

Patch Set 1 #

Patch Set 2 : Tests passing except time change #

Patch Set 3 : _ #

Patch Set 4 : rebase #

Patch Set 5 : _ #

Total comments: 20

Patch Set 6 : Address comments #

Total comments: 6

Patch Set 7 : Setup filesystem only when necessary, use ScopedNestableTaskAllower to make async operation work #

Patch Set 8 : Fix win,mac build #

Total comments: 4

Patch Set 9 : Fix nits #

Patch Set 10 : Run tests on the main thread to satisfy Win bot #

Total comments: 4

Patch Set 11 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+364 lines, -285 lines) Patch
M chrome/browser/extensions/api/downloads/downloads_api_unittest.cc View 1 2 3 chunks +11 lines, -5 lines 0 comments Download
M content/browser/storage_partition_impl_map.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M webkit/blob/blob_url_request_job.h View 1 2 3 4 6 chunks +12 lines, -6 lines 0 comments Download
M webkit/blob/blob_url_request_job.cc View 1 2 3 4 5 6 7 8 9 chunks +49 lines, -26 lines 0 comments Download
M webkit/blob/blob_url_request_job_factory.h View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -3 lines 0 comments Download
M webkit/blob/blob_url_request_job_factory.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M webkit/blob/blob_url_request_job_unittest.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +255 lines, -236 lines 0 comments Download
M webkit/blob/mock_blob_url_request_context.h View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M webkit/blob/mock_blob_url_request_context.cc View 1 2 3 4 2 chunks +10 lines, -4 lines 0 comments Download
M webkit/fileapi/local_file_system_operation_write_unittest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M webkit/fileapi/syncable/local_file_change_tracker_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M webkit/fileapi/syncable/syncable_file_operation_runner_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M webkit/tools/test_shell/test_shell_request_context.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
hashimoto
Please review
8 years, 2 months ago (2012-10-18 10:39:34 UTC) #1
kinuko
http://codereview.chromium.org/11103027/diff/15001/webkit/blob/blob_url_request_job.cc File webkit/blob/blob_url_request_job.cc (right): http://codereview.chromium.org/11103027/diff/15001/webkit/blob/blob_url_request_job.cc#newcode26 webkit/blob/blob_url_request_job.cc:26: #include "webkit/fileapi/file_system_file_stream_reader.h" not needed? http://codereview.chromium.org/11103027/diff/15001/webkit/blob/blob_url_request_job.cc#newcode315 webkit/blob/blob_url_request_job.cc:315: switch (item.type()) { ...
8 years, 2 months ago (2012-10-18 11:57:53 UTC) #2
hashimoto
http://codereview.chromium.org/11103027/diff/15001/webkit/blob/blob_url_request_job.cc File webkit/blob/blob_url_request_job.cc (right): http://codereview.chromium.org/11103027/diff/15001/webkit/blob/blob_url_request_job.cc#newcode26 webkit/blob/blob_url_request_job.cc:26: #include "webkit/fileapi/file_system_file_stream_reader.h" On 2012/10/18 11:57:54, kinuko wrote: > not ...
8 years, 2 months ago (2012-10-18 13:38:13 UTC) #3
kinuko
looking good http://codereview.chromium.org/11103027/diff/15001/webkit/blob/blob_url_request_job_unittest.cc File webkit/blob/blob_url_request_job_unittest.cc (right): http://codereview.chromium.org/11103027/diff/15001/webkit/blob/blob_url_request_job_unittest.cc#newcode199 webkit/blob/blob_url_request_job_unittest.cc:199: sandbox_provider()->GetFileUtil(fileapi::kFileSystemTypeTemporary); On 2012/10/18 13:38:13, hashimoto wrote: > ...
8 years, 2 months ago (2012-10-19 04:07:19 UTC) #4
hashimoto
New patch set which replaces the existing hand-made task scheduling system with base::RunLoop. PTAL. http://codereview.chromium.org/11103027/diff/25001/webkit/blob/blob_url_request_job_unittest.cc ...
8 years, 2 months ago (2012-10-19 07:07:45 UTC) #5
kinuko
lgtm! Thanks for cleaning up the task running part, which was making the code hard ...
8 years, 2 months ago (2012-10-19 11:18:36 UTC) #6
hashimoto
http://codereview.chromium.org/11103027/diff/23019/webkit/blob/blob_url_request_job.cc File webkit/blob/blob_url_request_job.cc (right): http://codereview.chromium.org/11103027/diff/23019/webkit/blob/blob_url_request_job.cc#newcode320 webkit/blob/blob_url_request_job.cc:320: } else { On 2012/10/19 11:18:36, kinuko wrote: > ...
8 years, 2 months ago (2012-10-19 14:59:07 UTC) #7
hashimoto
On 2012/10/19 11:18:36, kinuko wrote: > lgtm! > > Thanks for cleaning up the task ...
8 years, 2 months ago (2012-10-19 15:06:17 UTC) #8
hashimoto
TBR-ing jam@ for content change
8 years, 2 months ago (2012-10-19 15:08:22 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/11103027/35001
8 years, 2 months ago (2012-10-19 15:08:42 UTC) #10
jam
lgtm
8 years, 2 months ago (2012-10-19 16:49:01 UTC) #11
commit-bot: I haz the power
Retried try job too often for step(s) content_unittests
8 years, 2 months ago (2012-10-19 18:12:05 UTC) #12
hashimoto
New patch set which stops creating IO thread for BlobURLRequestJobTest because win bots do not ...
8 years, 2 months ago (2012-10-22 03:52:10 UTC) #13
kinuko
It's getting much simpler now.. :) http://codereview.chromium.org/11103027/diff/16050/webkit/blob/blob_url_request_job_unittest.cc File webkit/blob/blob_url_request_job_unittest.cc (right): http://codereview.chromium.org/11103027/diff/16050/webkit/blob/blob_url_request_job_unittest.cc#newcode154 webkit/blob/blob_url_request_job_unittest.cc:154: BlobURLRequestJobTest() nit: To ...
8 years, 2 months ago (2012-10-22 05:29:59 UTC) #14
hashimoto
http://codereview.chromium.org/11103027/diff/16050/webkit/blob/blob_url_request_job_unittest.cc File webkit/blob/blob_url_request_job_unittest.cc (right): http://codereview.chromium.org/11103027/diff/16050/webkit/blob/blob_url_request_job_unittest.cc#newcode154 webkit/blob/blob_url_request_job_unittest.cc:154: BlobURLRequestJobTest() On 2012/10/22 05:29:59, kinuko wrote: > nit: To ...
8 years, 2 months ago (2012-10-22 06:29:03 UTC) #15
kinuko
lgtm
8 years, 2 months ago (2012-10-22 06:38:22 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/11103027/39005
8 years, 2 months ago (2012-10-22 06:41:16 UTC) #17
commit-bot: I haz the power
8 years, 2 months ago (2012-10-22 09:24:34 UTC) #18
Change committed as 163245

Powered by Google App Engine
This is Rietveld 408576698