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

Issue 15555003: [SPDY] Remove SpdyStream::Delegate::OnSendBody()'s return value (Closed)

Created:
7 years, 7 months ago by akalin
Modified:
7 years, 7 months ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org
Visibility:
Public.

Description

[SPDY] Remove SpdyStream::Delegate::OnSendBody()'s return value Add comment explaining semantics of OnSendBody(). Audit SpdyStream::Delegate implementations to either comply with those semantics or CHECK-fail. Strengthen some related checks in SpdyHttpStream. Fix typo in spdy_stream_spdy3_unittest.cc. BUG=242288 R=rch@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201622

Patch Set 1 #

Patch Set 2 : Remove return value #

Total comments: 15

Patch Set 3 : Address comments #

Patch Set 4 : Fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -97 lines) Patch
M net/spdy/spdy_http_stream.h View 1 2 chunks +12 lines, -6 lines 0 comments Download
M net/spdy/spdy_http_stream.cc View 1 4 chunks +52 lines, -54 lines 0 comments Download
M net/spdy/spdy_proxy_client_socket.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_proxy_client_socket.cc View 1 1 chunk +5 lines, -6 lines 0 comments Download
M net/spdy/spdy_session_spdy3_unittest.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M net/spdy/spdy_stream.h View 1 2 1 chunk +8 lines, -4 lines 0 comments Download
M net/spdy/spdy_stream.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M net/spdy/spdy_stream_spdy3_unittest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_stream_test_util.h View 1 2 5 chunks +5 lines, -5 lines 0 comments Download
M net/spdy/spdy_stream_test_util.cc View 1 2 4 chunks +8 lines, -8 lines 0 comments Download
M net/spdy/spdy_websocket_stream.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_websocket_stream.cc View 1 1 chunk +3 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
akalin
+rch for review
7 years, 7 months ago (2013-05-22 00:27:11 UTC) #1
akalin
Incidentally, I remember you mentioning a possible latent bug with flow control and SpdyHttpStream::OnSendBody() if ...
7 years, 7 months ago (2013-05-22 00:29:09 UTC) #2
Ryan Hamilton
https://chromiumcodereview.appspot.com/15555003/diff/2001/net/spdy/spdy_http_stream.cc File net/spdy/spdy_http_stream.cc (right): https://chromiumcodereview.appspot.com/15555003/diff/2001/net/spdy/spdy_http_stream.cc#newcode465 net/spdy/spdy_http_stream.cc:465: CHECK_GE(request_body_buf_->BytesRemaining(), 0); Alternatively: CHECK_GE(request_body_buf_->BytesRemaining(), eof ? 0 : 1); ...
7 years, 7 months ago (2013-05-22 03:17:30 UTC) #3
akalin
Comments addressed, PTAL. https://codereview.chromium.org/15555003/diff/2001/net/spdy/spdy_http_stream.cc File net/spdy/spdy_http_stream.cc (right): https://codereview.chromium.org/15555003/diff/2001/net/spdy/spdy_http_stream.cc#newcode465 net/spdy/spdy_http_stream.cc:465: CHECK_GE(request_body_buf_->BytesRemaining(), 0); On 2013/05/22 03:17:30, Ryan ...
7 years, 7 months ago (2013-05-22 08:40:05 UTC) #4
Ryan Hamilton
lgtm
7 years, 7 months ago (2013-05-22 18:41:36 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/15555003/15001
7 years, 7 months ago (2013-05-22 18:59:45 UTC) #6
akalin
7 years, 7 months ago (2013-05-22 22:35:22 UTC) #7
Message was sent while issue was closed.
Committed patchset #4 manually as r201622 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698