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

Issue 10823180: net: Make UploadDataStream::Init() asynchronous. (Closed)

Created:
8 years, 4 months ago by hashimoto
Modified:
8 years, 4 months ago
CC:
chromium-reviews, grt+watch_chromium.org, amit, robertshield, cbentzel+watch_chromium.org, darin-cc_chromium.org, satorux1, eroman
Visibility:
Public.

Description

net: Make UploadDataStream::Init() asynchronous. Rename the existing synchronous version to InitSync() and add a new asynchronous version, Init(). However, the new asynchronous version is not used yet. The existing code is changed to use the synchronous version. ScopedAllowIO used in UploadData::Element::ResetOffset() is removed since it is always called on an IO allowed thread. BUG=72001, 113669 TEST=net_unittests

Patch Set 1 : _ #

Patch Set 2 : rebase #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -64 lines) Patch
M chrome_frame/urlmon_upload_data_stream.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/upload_data.cc View 1 chunk +0 lines, -2 lines 2 comments Download
M net/base/upload_data_stream.h View 4 chunks +28 lines, -7 lines 0 comments Download
M net/base/upload_data_stream.cc View 3 chunks +81 lines, -31 lines 3 comments Download
M net/base/upload_data_stream_unittest.cc View 6 chunks +6 lines, -6 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_stream_parser_unittest.cc View 6 chunks +6 lines, -6 lines 0 comments Download
M net/spdy/spdy_http_stream_spdy2_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_http_stream_spdy3_unittest.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M net/spdy/spdy_network_transaction_spdy2_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_network_transaction_spdy3_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
hashimoto
willchan, Could you review this?
8 years, 4 months ago (2012-08-06 08:47:00 UTC) #1
hashimoto
This change is originally satorux's. http://codereview.chromium.org/9350060/ I took over the issues from him.
8 years, 4 months ago (2012-08-06 08:52:42 UTC) #2
hashimoto
Eric, could you review this change?
8 years, 4 months ago (2012-08-08 03:29:42 UTC) #3
eroman
http://codereview.chromium.org/10823180/diff/4003/net/base/upload_data.cc File net/base/upload_data.cc (left): http://codereview.chromium.org/10823180/diff/4003/net/base/upload_data.cc#oldcode124 net/base/upload_data.cc:124: base::ThreadRestrictions::ScopedAllowIO allow_io; This removal seems unrelated to this changelist ...
8 years, 4 months ago (2012-08-09 05:29:33 UTC) #4
hashimoto
http://codereview.chromium.org/10823180/diff/4003/net/base/upload_data.cc File net/base/upload_data.cc (left): http://codereview.chromium.org/10823180/diff/4003/net/base/upload_data.cc#oldcode124 net/base/upload_data.cc:124: base::ThreadRestrictions::ScopedAllowIO allow_io; On 2012/08/09 05:29:33, eroman wrote: > This ...
8 years, 4 months ago (2012-08-09 13:35:02 UTC) #5
hashimoto
On 2012/08/09 13:35:02, hashimoto wrote: > http://codereview.chromium.org/10823180/diff/4003/net/base/upload_data.cc > File net/base/upload_data.cc (left): > > http://codereview.chromium.org/10823180/diff/4003/net/base/upload_data.cc#oldcode124 > ...
8 years, 4 months ago (2012-08-14 00:34:29 UTC) #6
eroman
Sorry for the delay, I have been overwhelmed with some other stuff! I will try ...
8 years, 4 months ago (2012-08-15 18:23:10 UTC) #7
eroman
Relying on callers invoking it just one at at time seems too fragile. It is ...
8 years, 4 months ago (2012-08-21 00:51:18 UTC) #8
willchan no longer on Chromium
8 years, 4 months ago (2012-08-21 02:55:45 UTC) #9
Doh! I thought you were going to take care of this for me so I didn't have
to review it! I'll take a look, hopefully tomorrow.


On Mon, Aug 20, 2012 at 5:51 PM, <eroman@chromium.org> wrote:

> Relying on callers invoking it just one at at time seems too fragile. It
> is also
> hard to guarantee this with a refcounted class + cancellation (maybe for
> instance someone cancels this job, but the worker thread keeps running, and
> simultaneously another user starts another worker thread to touch
> uploaddata).
>
> I am not really familiar enough with the current state of these classes to
> give
> a better suggestion.
>
> Perhaps willchan/satorux/kinuko can offer better advice regarding using
> UploadData from a worker thread and how to split this off!
>
>
http://codereview.chromium.**org/10823180/<http://codereview.chromium.org/108...
>

Powered by Google App Engine
This is Rietveld 408576698