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

Issue 9949011: Make FileStream::Seek async and add FileStream::SeekSync for sync operation (Closed)

Created:
8 years, 8 months ago by kinuko
Modified:
8 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, jam, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, rdsmith+dwatch_chromium.org, kinuko+watch
Visibility:
Public.

Description

Make FileStream::Seek async and add FileStream::SeekSync for sync operation BUG=75548, 113300 TEST=existing tests should pass Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=131732

Patch Set 1 : '' #

Total comments: 9

Patch Set 2 : addressed comments + added tests #

Total comments: 4

Patch Set 3 : addressed comments #

Total comments: 1

Patch Set 4 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+418 lines, -186 lines) Patch
M content/browser/download/base_file.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/completion_callback.h View 1 chunk +4 lines, -0 lines 0 comments Download
M net/base/file_stream.h View 1 chunk +14 lines, -5 lines 0 comments Download
M net/base/file_stream.cc View 1 chunk +7 lines, -2 lines 0 comments Download
M net/base/file_stream_posix.h View 1 5 chunks +12 lines, -8 lines 0 comments Download
M net/base/file_stream_posix.cc View 1 13 chunks +106 lines, -47 lines 0 comments Download
M net/base/file_stream_unittest.cc View 1 14 chunks +63 lines, -18 lines 0 comments Download
M net/base/file_stream_win.h View 1 4 chunks +19 lines, -5 lines 0 comments Download
M net/base/file_stream_win.cc View 1 2 3 14 chunks +95 lines, -60 lines 0 comments Download
M net/base/mock_file_stream.h View 1 chunk +3 lines, -1 line 0 comments Download
M net/base/mock_file_stream.cc View 1 chunk +7 lines, -2 lines 0 comments Download
M net/base/test_completion_callback.h View 1 2 3 chunks +59 lines, -9 lines 0 comments Download
M net/base/test_completion_callback.cc View 1 2 3 3 chunks +17 lines, -19 lines 0 comments Download
M net/base/upload_data.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/entry_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_cache_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_file_job.cc View 1 chunk +1 line, -1 line 0 comments Download
M webkit/blob/blob_url_request_job.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/fileapi/file_system_url_request_job.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M webkit/fileapi/file_writer_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M webkit/glue/webfileutilities_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M webkit/media/webmediaplayer_impl.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
kinuko
A new cut for Seek. PTL thanks!
8 years, 8 months ago (2012-04-05 13:00:08 UTC) #1
willchan no longer on Chromium
First set of comments. Some of my comments in the posix implementation apply to the ...
8 years, 8 months ago (2012-04-05 15:12:28 UTC) #2
scherkus (not reviewing)
(preemptive LGTM for webkit/media/)
8 years, 8 months ago (2012-04-05 18:05:02 UTC) #3
kinuko
Thanks, updated the patch. http://codereview.chromium.org/9949011/diff/3003/net/base/file_stream_posix.cc File net/base/file_stream_posix.cc (left): http://codereview.chromium.org/9949011/diff/3003/net/base/file_stream_posix.cc#oldcode260 net/base/file_stream_posix.cc:260: DCHECK(callback_.is_null()); On 2012/04/05 15:12:28, willchan ...
8 years, 8 months ago (2012-04-06 12:42:37 UTC) #4
willchan no longer on Chromium
Looks like there's a crash in net_unittests on Windows. Probably a regression, you should check ...
8 years, 8 months ago (2012-04-09 12:33:57 UTC) #5
kinuko
Fixed net_unittests on Windows. http://codereview.chromium.org/9949011/diff/4024/net/base/test_completion_callback.h File net/base/test_completion_callback.h (right): http://codereview.chromium.org/9949011/diff/4024/net/base/test_completion_callback.h#newcode26 net/base/test_completion_callback.h:26: namespace internal { On 2012/04/09 ...
8 years, 8 months ago (2012-04-09 17:04:36 UTC) #6
willchan no longer on Chromium
8 years, 8 months ago (2012-04-10 06:48:33 UTC) #7
lgtm

http://codereview.chromium.org/9949011/diff/10005/net/base/file_stream_win.cc
File net/base/file_stream_win.cc (right):

http://codereview.chromium.org/9949011/diff/10005/net/base/file_stream_win.cc...
net/base/file_stream_win.cc:393: // Unretained should be fine as we wait signal
on
Nit: s/we wait signal on/we wait for a signal on/

Powered by Google App Engine
This is Rietveld 408576698