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

Issue 189393002: net: Update FileStream to use base::File instead of PlatformFile. (Closed)

Created:
6 years, 9 months ago by rvargas (doing something else)
Modified:
6 years, 9 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, erikwright+watch_chromium.org
Visibility:
Public.

Description

net: Update FileStream to use base::File instead of PlatformFile. As collateral damage, OpenContentUriForRead is now returning File instead of a plain file descriptor. BUG=322664 TEST=net_unittests R=willchan@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=258472

Patch Set 1 : #

Patch Set 2 : Allow async for posix files. #

Patch Set 3 : Rebase #

Total comments: 7

Patch Set 4 : Back to struct #

Patch Set 5 : Use OPEN_ALWAYS on the async unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+378 lines, -407 lines) Patch
M base/android/content_uri_utils.h View 2 chunks +2 lines, -1 line 0 comments Download
M base/android/content_uri_utils.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M base/file_util_posix.cc View 1 2 3 chunks +5 lines, -12 lines 0 comments Download
M base/file_util_unittest.cc View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M base/files/file.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M base/files/file_posix.cc View 1 2 3 2 chunks +9 lines, -8 lines 0 comments Download
M base/files/file_unittest.cc View 1 2 3 4 9 chunks +28 lines, -10 lines 0 comments Download
M net/base/file_stream.h View 1 3 chunks +15 lines, -9 lines 0 comments Download
M net/base/file_stream.cc View 1 15 chunks +39 lines, -41 lines 0 comments Download
M net/base/file_stream_context.h View 1 2 3 7 chunks +24 lines, -10 lines 0 comments Download
M net/base/file_stream_context.cc View 9 chunks +71 lines, -37 lines 0 comments Download
M net/base/file_stream_context_posix.cc View 7 chunks +24 lines, -19 lines 0 comments Download
M net/base/file_stream_context_win.cc View 11 chunks +34 lines, -25 lines 0 comments Download
M net/base/file_stream_unittest.cc View 1 34 chunks +108 lines, -217 lines 0 comments Download
M net/base/upload_file_element_reader.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/url_request/url_fetcher_response_writer.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M net/url_request/url_request_file_job.cc View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
rvargas (doing something else)
PTAL
6 years, 9 months ago (2014-03-12 18:59:49 UTC) #1
willchan no longer on Chromium
Hey Ricardo, I'm just returning from vacation and will be backlogged next week. If you ...
6 years, 9 months ago (2014-03-14 21:50:13 UTC) #2
rvargas (doing something else)
On 2014/03/14 21:50:13, willchan wrote: > Hey Ricardo, I'm just returning from vacation and will ...
6 years, 9 months ago (2014-03-18 19:13:30 UTC) #3
willchan no longer on Chromium
https://codereview.chromium.org/189393002/diff/180001/net/base/file_stream.cc File net/base/file_stream.cc (left): https://codereview.chromium.org/189393002/diff/180001/net/base/file_stream.cc#oldcode60 net/base/file_stream.cc:60: base::ThreadRestrictions::AssertIOAllowed(); Shouldn't we keep the ThreadRestrictions in the sync ...
6 years, 9 months ago (2014-03-18 20:36:55 UTC) #4
rvargas (doing something else)
https://codereview.chromium.org/189393002/diff/180001/net/base/file_stream.cc File net/base/file_stream.cc (left): https://codereview.chromium.org/189393002/diff/180001/net/base/file_stream.cc#oldcode60 net/base/file_stream.cc:60: base::ThreadRestrictions::AssertIOAllowed(); On 2014/03/18 20:36:56, willchan wrote: > Shouldn't we ...
6 years, 9 months ago (2014-03-19 01:03:18 UTC) #5
rvargas (doing something else)
https://codereview.chromium.org/189393002/diff/180001/net/base/file_stream_context.h File net/base/file_stream_context.h (right): https://codereview.chromium.org/189393002/diff/180001/net/base/file_stream_context.h#newcode144 net/base/file_stream_context.h:144: class OpenResult { Tentatively back to struct
6 years, 9 months ago (2014-03-19 19:01:47 UTC) #6
willchan no longer on Chromium
lgtm https://codereview.chromium.org/189393002/diff/180001/net/base/file_stream.cc File net/base/file_stream.cc (left): https://codereview.chromium.org/189393002/diff/180001/net/base/file_stream.cc#oldcode60 net/base/file_stream.cc:60: base::ThreadRestrictions::AssertIOAllowed(); On 2014/03/19 01:03:18, rvargas wrote: > On ...
6 years, 9 months ago (2014-03-19 22:36:35 UTC) #7
rvargas (doing something else)
The CQ bit was checked by rvargas@chromium.org
6 years, 9 months ago (2014-03-19 23:00:04 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rvargas@chromium.org/189393002/200001
6 years, 9 months ago (2014-03-19 23:01:56 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-20 00:16:58 UTC) #10
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) base_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_simulator&number=134060
6 years, 9 months ago (2014-03-20 00:16:59 UTC) #11
rvargas (doing something else)
The CQ bit was checked by rvargas@chromium.org
6 years, 9 months ago (2014-03-20 21:03:29 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rvargas@chromium.org/189393002/220001
6 years, 9 months ago (2014-03-20 21:04:53 UTC) #13
commit-bot: I haz the power
6 years, 9 months ago (2014-03-21 00:41:34 UTC) #14
Message was sent while issue was closed.
Change committed as 258472

Powered by Google App Engine
This is Rietveld 408576698