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

Issue 9384: UploadDataStream::Reset should call FillBuf to return... (Closed)

Created:
12 years, 1 month ago by wtc
Modified:
9 years, 7 months ago
Reviewers:
jungshik, darin (slow to review), eroman
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Remove the UploadDataStream::Reset method. Instead, rewind an UploadDataStream by recreating the object. Fix a bug in MockTCPClientSocket::Write. It needs to increment write_index_. Add two DCHECKs to simulate the DCHECKS in SSLClientSocketWin::DoPayloadEncrypt. Add a unit test. R=darin,eroman BUG=4062 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=4819

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -22 lines) Patch
M net/base/upload_data_stream.h View 1 2 3 4 2 chunks +1 line, -4 lines 0 comments Download
M net/base/upload_data_stream.cc View 1 2 3 4 3 chunks +7 lines, -12 lines 0 comments Download
M net/http/http_network_transaction.cc View 2 3 4 1 chunk +6 lines, -2 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 2 3 4 6 chunks +95 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
wtc
I verified that the only callers of UploadDataStream::Reset are the UploadDataStream constructor and HttpNetworkTransaction::ShouldResendRequest. So ...
12 years, 1 month ago (2008-11-05 01:44:37 UTC) #1
wtc
Darin wrote: > Maybe we should just remove the Reset function and instead > create ...
12 years, 1 month ago (2008-11-05 01:52:41 UTC) #2
wtc
I implemented Darin's suggestion. Please review Patch Set 3.
12 years, 1 month ago (2008-11-05 18:57:32 UTC) #3
darin (slow to review)
LGTM !
12 years, 1 month ago (2008-11-05 19:02:05 UTC) #4
eroman
12 years, 1 month ago (2008-11-05 19:20:20 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld 408576698