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

Issue 9402014: net: FileStream::Read/Write() to take IOBuffer* instead of char* (Closed)

Created:
8 years, 10 months ago by satorux1
Modified:
8 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

net: FileStream::Read/Write() to take IOBuffer* instead of char* This will make it easier to use these functions. BUG=72001 TEST=try bots Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=122267

Patch Set 1 #

Patch Set 2 : more #

Patch Set 3 : add win code #

Patch Set 4 : fix win build #

Patch Set 5 : fix tests #

Patch Set 6 : polish #

Patch Set 7 : rebased #

Total comments: 6

Patch Set 8 : address comments #

Patch Set 9 : address comments #

Patch Set 10 : fix RedirectToFileResourceHandler #

Patch Set 11 : rebased #

Patch Set 12 : move back DCHECKs #

Patch Set 13 : fix redirect_to_file_resource_handler.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -191 lines) Patch
M content/browser/renderer_host/redirect_to_file_resource_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +13 lines, -2 lines 0 comments Download
M net/base/file_stream.h View 1 2 6 chunks +5 lines, -14 lines 0 comments Download
M net/base/file_stream_posix.cc View 1 2 3 4 9 chunks +53 lines, -45 lines 0 comments Download
M net/base/file_stream_unittest.cc View 1 2 3 4 5 22 chunks +68 lines, -40 lines 0 comments Download
M net/base/file_stream_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 chunks +89 lines, -56 lines 0 comments Download
M net/base/mock_file_stream.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M net/base/mock_file_stream.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_file_job.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webkit/blob/blob_url_request_job.h View 1 2 chunks +3 lines, -4 lines 0 comments Download
M webkit/blob/blob_url_request_job.cc View 1 2 3 4 5 7 chunks +13 lines, -22 lines 0 comments Download
M webkit/fileapi/file_system_url_request_job.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webkit/fileapi/file_writer_delegate.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M webkit/fileapi/file_writer_delegate.cc View 1 2 3 4 5 4 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
satorux1
8 years, 10 months ago (2012-02-15 21:12:44 UTC) #1
satorux1
jam@ for content changes kinuko@ for webkit changes.
8 years, 10 months ago (2012-02-15 22:32:57 UTC) #2
willchan no longer on Chromium
http://codereview.chromium.org/9402014/diff/9003/net/base/file_stream.h File net/base/file_stream.h (right): http://codereview.chromium.org/9402014/diff/9003/net/base/file_stream.h#newcode111 net/base/file_stream.h:111: virtual int ReadSync(char* buf, int buf_len); How about the ...
8 years, 10 months ago (2012-02-15 23:24:00 UTC) #3
satorux1
http://codereview.chromium.org/9402014/diff/9003/net/base/file_stream.h File net/base/file_stream.h (right): http://codereview.chromium.org/9402014/diff/9003/net/base/file_stream.h#newcode111 net/base/file_stream.h:111: virtual int ReadSync(char* buf, int buf_len); On 2012/02/15 23:24:00, ...
8 years, 10 months ago (2012-02-15 23:32:00 UTC) #4
willchan no longer on Chromium
LGTM http://codereview.chromium.org/9402014/diff/9003/net/base/file_stream_win.cc File net/base/file_stream_win.cc (right): http://codereview.chromium.org/9402014/diff/9003/net/base/file_stream_win.cc#newcode336 net/base/file_stream_win.cc:336: base::ThreadRestrictions::AssertIOAllowed(); Can this move up higher? http://codereview.chromium.org/9402014/diff/9003/net/base/file_stream_win.cc#newcode426 net/base/file_stream_win.cc:426: ...
8 years, 10 months ago (2012-02-15 23:37:49 UTC) #5
jam
lgtm
8 years, 10 months ago (2012-02-16 00:07:05 UTC) #6
satorux1
Turned out PAITest.* are failing. Now looking... http://codereview.chromium.org/9402014/diff/9003/net/base/file_stream_win.cc File net/base/file_stream_win.cc (right): http://codereview.chromium.org/9402014/diff/9003/net/base/file_stream_win.cc#newcode336 net/base/file_stream_win.cc:336: base::ThreadRestrictions::AssertIOAllowed(); On ...
8 years, 10 months ago (2012-02-16 00:11:57 UTC) #7
satorux1
PAITest.* failures are now fixed. There was a subtle regression in redirect_to_file_resource_handler.cc. Glad tests caught ...
8 years, 10 months ago (2012-02-16 01:47:04 UTC) #8
satorux1
adding michaeln@. forgot kinuko was ooo.
8 years, 10 months ago (2012-02-16 03:13:12 UTC) #9
kinuko
On 2012/02/16 03:13:12, satorux1 wrote: > adding michaeln@. forgot kinuko was ooo. webkit/fileapi lgtm
8 years, 10 months ago (2012-02-16 04:42:13 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/satorux@chromium.org/9402014/13006
8 years, 10 months ago (2012-02-16 08:25:11 UTC) #11
commit-bot: I haz the power
8 years, 10 months ago (2012-02-16 09:59:21 UTC) #12
Change committed as 122267

Powered by Google App Engine
This is Rietveld 408576698