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

Issue 1314783007: Added and implemented HttpStream::GetTotalSentBytes for basic streams. (Closed)

Created:
5 years, 3 months ago by sclittle
Modified:
5 years, 3 months ago
Reviewers:
Bence, bengr, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added and implemented HttpStream::GetTotalSentBytes for basic streams. Added HttpStream::GetTotalSentBytes, which counts the number of bytes sent over the network, similar to HttpStream::GetTotalReceivedBytes. This CL implements this method for basic HTTP streams; implementations for SPDY and QUIC streams will be added in later CLs. BUG=518897 Committed: https://crrev.com/be1ccf63461b881b8542975e086a0e682600e2b2 Cr-Commit-Position: refs/heads/master@{#346996}

Patch Set 1 #

Total comments: 17

Patch Set 2 : Addressed mmenke comments #

Total comments: 6

Patch Set 3 : Rebased on master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+331 lines, -1 line) Patch
M net/http/http_basic_stream.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M net/http/http_basic_stream.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 2 3 chunks +12 lines, -0 lines 0 comments Download
M net/http/http_response_body_drainer_unittest.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M net/http/http_stream.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_unittest.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M net/http/http_stream_parser.h View 1 2 3 chunks +7 lines, -0 lines 0 comments Download
M net/http/http_stream_parser.cc View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M net/http/http_stream_parser_unittest.cc View 1 11 chunks +233 lines, -1 line 0 comments Download
M net/http/proxy_connect_redirect_http_stream.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M net/http/proxy_connect_redirect_http_stream.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M net/quic/quic_http_stream.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M net/quic/quic_http_stream.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M net/socket/socket_test_util.h View 1 2 chunks +8 lines, -0 lines 0 comments Download
M net/socket/socket_test_util.cc View 1 1 chunk +14 lines, -0 lines 0 comments Download
M net/spdy/spdy_http_stream.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M net/spdy/spdy_http_stream.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M net/url_request/url_request_http_job_unittest.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M net/websockets/websocket_basic_handshake_stream.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M net/websockets/websocket_basic_handshake_stream.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (4 generated)
sclittle
bengr, mmenke: * Thanks in advance!
5 years, 3 months ago (2015-08-31 22:00:56 UTC) #2
mmenke
Thanks for splitting this up! I'll get to this tomorrow.
5 years, 3 months ago (2015-08-31 22:03:30 UTC) #3
mmenke
First pass comments, want to think a bit more about tests. I think this looks ...
5 years, 3 months ago (2015-08-31 22:23:13 UTC) #4
sclittle
https://codereview.chromium.org/1314783007/diff/1/net/http/http_basic_stream.cc File net/http/http_basic_stream.cc (right): https://codereview.chromium.org/1314783007/diff/1/net/http/http_basic_stream.cc#newcode91 net/http/http_basic_stream.cc:91: if (parser()) On 2015/08/31 22:23:13, mmenke wrote: > This ...
5 years, 3 months ago (2015-09-01 01:21:48 UTC) #5
Bence
LGTM modulo comments. Optional nit in description: title can be "Implement..." instead of "Add and ...
5 years, 3 months ago (2015-09-01 13:45:30 UTC) #7
mmenke
https://codereview.chromium.org/1314783007/diff/1/net/http/http_basic_stream.cc File net/http/http_basic_stream.cc (right): https://codereview.chromium.org/1314783007/diff/1/net/http/http_basic_stream.cc#newcode91 net/http/http_basic_stream.cc:91: if (parser()) On 2015/09/01 01:21:47, sclittle wrote: > On ...
5 years, 3 months ago (2015-09-01 17:39:43 UTC) #8
sclittle
https://codereview.chromium.org/1314783007/diff/1/net/http/http_basic_stream.cc File net/http/http_basic_stream.cc (right): https://codereview.chromium.org/1314783007/diff/1/net/http/http_basic_stream.cc#newcode91 net/http/http_basic_stream.cc:91: if (parser()) On 2015/09/01 17:39:43, mmenke wrote: > On ...
5 years, 3 months ago (2015-09-01 20:03:00 UTC) #9
mmenke
https://codereview.chromium.org/1314783007/diff/20001/net/http/http_basic_stream.h File net/http/http_basic_stream.h (right): https://codereview.chromium.org/1314783007/diff/20001/net/http/http_basic_stream.h#newcode71 net/http/http_basic_stream.h:71: int64_t GetTotalSentBytes() const override; On 2015/09/01 20:03:00, sclittle wrote: ...
5 years, 3 months ago (2015-09-01 20:09:07 UTC) #10
bengr
https://codereview.chromium.org/1314783007/diff/20001/net/http/http_basic_stream.cc File net/http/http_basic_stream.cc (right): https://codereview.chromium.org/1314783007/diff/20001/net/http/http_basic_stream.cc#newcode91 net/http/http_basic_stream.cc:91: if (parser()) For both Sent and Received, is there ...
5 years, 3 months ago (2015-09-01 23:48:26 UTC) #11
sclittle
https://codereview.chromium.org/1314783007/diff/20001/net/http/http_basic_stream.cc File net/http/http_basic_stream.cc (right): https://codereview.chromium.org/1314783007/diff/20001/net/http/http_basic_stream.cc#newcode91 net/http/http_basic_stream.cc:91: if (parser()) On 2015/09/01 23:48:26, bengr wrote: > For ...
5 years, 3 months ago (2015-09-01 23:57:23 UTC) #12
Bence
> Sure. Do you mind if I keep GetTotalSentBytes as int64_t in this CL, and ...
5 years, 3 months ago (2015-09-02 12:37:22 UTC) #13
mmenke
LGTM https://codereview.chromium.org/1314783007/diff/1/net/http/http_basic_stream.cc File net/http/http_basic_stream.cc (right): https://codereview.chromium.org/1314783007/diff/1/net/http/http_basic_stream.cc#newcode91 net/http/http_basic_stream.cc:91: if (parser()) On 2015/09/01 20:03:00, sclittle wrote: > ...
5 years, 3 months ago (2015-09-02 17:36:54 UTC) #14
sclittle
https://codereview.chromium.org/1314783007/diff/1/net/http/http_basic_stream.cc File net/http/http_basic_stream.cc (right): https://codereview.chromium.org/1314783007/diff/1/net/http/http_basic_stream.cc#newcode91 net/http/http_basic_stream.cc:91: if (parser()) On 2015/09/02 17:36:54, mmenke wrote: > On ...
5 years, 3 months ago (2015-09-02 18:32:37 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1314783007/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1314783007/40001
5 years, 3 months ago (2015-09-02 18:33:24 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 3 months ago (2015-09-02 19:40:43 UTC) #19
commit-bot: I haz the power
5 years, 3 months ago (2015-09-02 19:41:16 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/be1ccf63461b881b8542975e086a0e682600e2b2
Cr-Commit-Position: refs/heads/master@{#346996}

Powered by Google App Engine
This is Rietveld 408576698