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

Issue 10065011: Use LocalFileReader in FileSystemURLRequestJob (Closed)

Created:
8 years, 8 months ago by kinuko
Modified:
8 years, 8 months ago
Reviewers:
michaeln, adamk
CC:
chromium-reviews, kinuko+watch, darin-cc_chromium.org
Visibility:
Public.

Description

Use LocalFileReader in FileSystemURLRequestJob - to avoid file access on IO thread - to remove duplicated code - for further FileSystem stream related refactoring BUG=113300, 114999 TEST=FileSystemURLRequestJobTest.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=132134

Patch Set 1 #

Total comments: 8

Patch Set 2 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -75 lines) Patch
M webkit/blob/blob_url_request_job.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M webkit/blob/local_file_reader.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M webkit/blob/local_file_reader.cc View 1 chunk +1 line, -1 line 0 comments Download
M webkit/fileapi/file_system_url_request_job.h View 2 chunks +2 lines, -5 lines 0 comments Download
M webkit/fileapi/file_system_url_request_job.cc View 1 9 chunks +16 lines, -64 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
kinuko
8 years, 8 months ago (2012-04-12 10:28:39 UTC) #1
adamk
lgtm with a few nits to fix before submission. Nice cleanup! http://codereview.chromium.org/10065011/diff/1/webkit/blob/local_file_reader.h File webkit/blob/local_file_reader.h (right): ...
8 years, 8 months ago (2012-04-12 16:04:15 UTC) #2
michaeln
lgtm2 :)
8 years, 8 months ago (2012-04-12 18:39:58 UTC) #3
kinuko
8 years, 8 months ago (2012-04-13 03:06:28 UTC) #4
Thanks, addressed comments.  Submitting this...

http://codereview.chromium.org/10065011/diff/1/webkit/blob/local_file_reader.h
File webkit/blob/local_file_reader.h (right):

http://codereview.chromium.org/10065011/diff/1/webkit/blob/local_file_reader....
webkit/blob/local_file_reader.h:37: // should start.  If the given offset is out
of the file ragnge any
On 2012/04/12 16:04:15, adamk wrote:
> Typo: s/ragnge/range/

Done.

http://codereview.chromium.org/10065011/diff/1/webkit/blob/local_file_reader....
webkit/blob/local_file_reader.h:38: // succeeding read operation may error out
with
On 2012/04/12 16:04:15, adamk wrote:
> "succeeding" is confusing in context, I think you can just leave it out and
the
> comment still makes sense.

Done.

http://codereview.chromium.org/10065011/diff/1/webkit/fileapi/file_system_url...
File webkit/fileapi/file_system_url_request_job.cc (left):

http://codereview.chromium.org/10065011/diff/1/webkit/fileapi/file_system_url...
webkit/fileapi/file_system_url_request_job.cc:7: #include <vector>
On 2012/04/12 16:04:15, adamk wrote:
> Why remove this? It's still referenced in this file.

Done.

http://codereview.chromium.org/10065011/diff/1/webkit/fileapi/file_system_url...
webkit/fileapi/file_system_url_request_job.cc:152: if (ranges.size() == 1) {
On 2012/04/12 16:04:15, adamk wrote:
> Nit: I think the Chromium style is to leave these in, even though in WebKit
code
> we'd remove 'em. Might as well leave them anyway since you're not touching
this
> code.

Done.

Powered by Google App Engine
This is Rietveld 408576698